Skip to content

Commit c7d9f6b

Browse files
authored
Add storageversion kubebuilder marker in Crossplane pipeline (#280)
Issue #, if available: Description of changes: For cases where we do not delete the old version, we need to mark the generated type with storage version. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 3f6e80a commit c7d9f6b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

templates/crossplane/apis/crd.go.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ type {{ .CRD.Kind }}Status struct {
6262
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
6363
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
6464
// +kubebuilder:subresource:status
65+
// +kubebuilder:storageversion
6566
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws}
6667
type {{ .CRD.Kind }} struct {
6768
metav1.TypeMeta `json:",inline"`

0 commit comments

Comments
 (0)