Skip to content

Commit 4d4f9b3

Browse files
authored
fix: Make CRD Synced Column type string (#402)
Closes: aws-controllers-k8s/community#1659 Description of changes: Change CRD type from `boolean` to `string` for `SYNCED` column.
1 parent ef77501 commit 4d4f9b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/apis/crd.go.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ type {{ .CRD.Kind }}Status struct {
5555
// +kubebuilder:printcolumn:name="{{$column.Name}}",type={{$column.Type}},priority={{$column.Priority}},JSONPath=`{{$column.JSONPath}}`
5656
{{- end }}
5757
{{- if .CRD.PrintSyncedColumn }}
58-
// +kubebuilder:printcolumn:name="Synced",type="boolean",priority=0,JSONPath=".status.conditions[?(@.type==\"ACK.ResourceSynced\")].status"
58+
// +kubebuilder:printcolumn:name="Synced",type="string",priority=0,JSONPath=".status.conditions[?(@.type==\"ACK.ResourceSynced\")].status"
5959
{{- end }}
6060
{{- if .CRD.PrintAgeColumn }}
6161
// +kubebuilder:printcolumn:name="Age",type="date",priority=0,JSONPath=".metadata.creationTimestamp"

0 commit comments

Comments
 (0)