You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a marker does not have a default value, the marker should be marked as a required value. It should look like this in the apis/<GROUP>/<VERSION>_types.go generated file:
// +kubebuilder:validation:Required// Description of the service account goes here.ServiceAccountstring`json:"serviceAccount"`
The following from above is relevant:
The +kubebuilder:validation:Required should be added above the description.
The omitempty tag should be missing (on the serviceAccount line)
This should only apply to the end of a struct (e.g. google.serviceAccount is applicable google.serviceAccount.name is not applicable)
The text was updated successfully, but these errors were encountered:
If a marker does not have a default value, the marker should be marked as a required value. It should look like this in the
apis/<GROUP>/<VERSION>_types.go
generated file:The following from above is relevant:
+kubebuilder:validation:Required
should be added above the description.omitempty
tag should be missing (on theserviceAccount
line)google.serviceAccount
is applicablegoogle.serviceAccount.name
is not applicable)The text was updated successfully, but these errors were encountered: