Skip to content

Commit

Permalink
Fix mysql provider config spec.tls kubebuilder validation enum (#138)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Recalde <[email protected]>
  • Loading branch information
alereca authored Aug 9, 2023
1 parent c6c358b commit bd9cd6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apis/mysql/v1alpha1/provider_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type ProviderConfigSpec struct {
// or use preferred to use TLS only when advertised by the server. This is similar
// to skip-verify, but additionally allows a fallback to a connection which is
// not encrypted. Neither skip-verify nor preferred add any reliable security.
// +kubebuilder:validation:Enum=true;skip-verify;preferred
// +kubebuilder:validation:Enum="true";skip-verify;preferred
// +optional
TLS *string `json:"tls"`
}
Expand Down
2 changes: 1 addition & 1 deletion package/crds/mysql.sql.crossplane.io_providerconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ spec:
allows a fallback to a connection which is not encrypted. Neither
skip-verify nor preferred add any reliable security.
enum:
- true
- "true"
- skip-verify
- preferred
type: string
Expand Down

0 comments on commit bd9cd6f

Please sign in to comment.