Skip to content

Commit

Permalink
make list atomic
Browse files Browse the repository at this point in the history
  • Loading branch information
Devtools committed Sep 17, 2024
1 parent b6153b2 commit dcf38c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/docs/apiref.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,7 @@ Supported condition types: ConditionReady + | |
| *`updates`* __xref:{anchor_prefix}-github-com-codeready-toolchain-api-api-v1alpha1-nstemplatetierhistory[$$NSTemplateTierHistory$$] array__ | Updates is an array of all NSTemplateTier updates + | |
| *`revisions`* __object (keys:string, values:string)__ | Revisions is a map of TierTemplate CR names (as the keys) and TierTemplateRevision CR names (as the values) +
The map represents the current content of the TierTemplate CRs combined with the parameters defined in the tier. +
Each of the referenced TierTemplateRevision CRs represents the content of the associated TierTemplate CR processed with the the parameters. +
Each of the referenced TierTemplateRevision CRs represents the content of the associated TierTemplate CR processed with the parameters. +
If the content of the already referenced TierTemplateRevision CR doesn't match the expected outcome of the processed TierTemplate CR, +
then a new TierTemplateRevision CR is created and the name here is updated. + | |
|===
Expand Down
6 changes: 3 additions & 3 deletions api/v1alpha1/nstemplatetier_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ type NSTemplateTierStatus struct {
Updates []NSTemplateTierHistory `json:"updates,omitempty" patchStrategy:"merge" patchMergeKey:"startTime"`

// Revisions is a map of TierTemplate CR names (as the keys) and TierTemplateRevision CR names (as the values)
// The map represents the current content of the TierTemplate CRs combined with the parameters defined in the tier.
// Each of the referenced TierTemplateRevision CRs represents the content of the associated TierTemplate CR processed with the the parameters.
// If the content of the already referenced TierTemplateRevision CR doesn't match the expected outcome of the processed TierTemplate CR,
// The map represents the current content of the TierTemplate CRs combined with the parameters defined in the tier.
// Each of the referenced TierTemplateRevision CRs represents the content of the associated TierTemplate CR processed with the parameters.
// If the content of the already referenced TierTemplateRevision CR doesn't match the expected outcome of the processed TierTemplate CR,
// then a new TierTemplateRevision CR is created and the name here is updated.
// +optional
// +mapType=atomic
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dcf38c6

Please sign in to comment.