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
We do not set spec.preserveUnknownFields and CRDs are generated with the default value set by controller-gen. Controller-gen sets this to false when CRDs v1 is used. In fact grep preserveUnknownFields bundle.yaml doesn't return any match.
Setting preserveUnknownFields=false is made explicit in #4221
What happened?
We had a running operator
bundle.yaml
at v0.39.0. When we applied the bundle from v0.49.0, we got an error:This occurred when attempting to apply the new
prometheuses.monitoring.coreos.com
CRD.We're running a GKE cluster at
v1.20.8-gke.900
. The previousprometheuses
CRD wasapiextensions.k8s.io/v1
, as is the new one.See a similar issue over at Calico: projectcalico/calico#4237
We'll probably try to re-apply after changing the field to
false
.Did you expect to see something different?
Expected the bundle to apply without error.
How to reproduce it (as minimally and precisely as possible):
Apply these upgrades on a similar cluster version?
Environment
Prometheus Operator version:
Upgrade from
v0.39.0
tov0.49.0
Kubernetes version information:
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.1", GitCommit:"206bcadf021e76c27513500ca24182692aabd17e", GitTreeState:"clean", BuildDate:"2020-09-09T11:26:42Z", GoVersion:"go1.15", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"20+", GitVersion:"v1.20.8-gke.900", GitCommit:"28ab8501be88ea42e897ca8514d7cd0b436253d9", GitTreeState:"clean", BuildDate:"2021-06-30T09:23:36Z", GoVersion:"go1.15.13b5", Compiler:"gc", Platform:"linux/amd64"}
Kubernetes cluster kind:
GKE
Manifests:
vanilla
bundle.yaml
from both versions with only namespaces changed via kustomize.This is a kubernetes API issue.
Anything else we need to know?:
The text was updated successfully, but these errors were encountered: