remove preserveUnknownFields from thanos CRD

This keeps the CRD compatible with kubernetes v1.14 and earlier
This commit is contained in:
Paul Gier
2020-02-11 10:13:21 -06:00
parent bb0ca63533
commit 6a2cc72573
2 changed files with 5 additions and 1 deletions

View File

@@ -45,6 +45,11 @@ local configMapList = k3.core.v1.configMapList;
preserveUnknownFields: null,
}),
},
'0thanosrulerCustomResourceDefinition'+: {
spec: std.mergePatch(super.spec, {
preserveUnknownFields: null,
}),
},
},
grafana+:: {
dashboardDefinitions: configMapList.new(super.dashboardDefinitions),

View File

@@ -12,7 +12,6 @@ spec:
listKind: ThanosRulerList
plural: thanosrulers
singular: thanosruler
preserveUnknownFields: false
scope: Namespaced
validation:
openAPIV3Schema: