Closed ccremer closed 2 years ago
In order to actually test this feature in local cluster, in https://github.com/vshn/appcat-service-postgresql/blob/c267a0eade0ec65e7d7547080fd694d2f05c2d1f/apis/postgresql/v1alpha1/postgresql_standalone_types.go#L24
add ;v15
after v14
and run make generate
.
Then run make local-install install-samples
.
To trigger the error, run kubectl edit postgresqlstandalone my-instance
, change v14
to v15
and try to safe/apply the resource.
Without adding another value to the Enum in the kubebuilder comment, the apply fails before it's sent to the webhook, because the Schema isn't valid in the first place.
Summary
.spec.forInstance.majorVersion
immutable via webhook.Checklist
bug
,enhancement
,documentation
,change
,breaking
,dependency
as they show up in the changelogarea:operator
charts/
directory.