Remove field preserveUnknownFields from CRDs

This allows compatiblity with kubernetes v1.14 and earlier.
This commit is contained in:
Paul Gier
2020-02-07 14:40:51 -06:00
parent 8550ac35bf
commit cdaaf3d51c
6 changed files with 28 additions and 5 deletions

View File

@@ -17,6 +17,34 @@ local configMapList = k3.core.v1.configMapList;
kubePrometheus+:: {
namespace: k.core.v1.namespace.new($._config.namespace),
},
prometheusOperator+::
{
'0alertmanagerCustomResourceDefinition'+: {
spec: std.mergePatch(super.spec, {
preserveUnknownFields: null,
}),
},
'0prometheusCustomResourceDefinition'+: {
spec: std.mergePatch(super.spec, {
preserveUnknownFields: null,
}),
},
'0servicemonitorCustomResourceDefinition'+: {
spec: std.mergePatch(super.spec, {
preserveUnknownFields: null,
}),
},
'0podmonitorCustomResourceDefinition'+: {
spec: std.mergePatch(super.spec, {
preserveUnknownFields: null,
}),
},
'0prometheusruleCustomResourceDefinition'+: {
spec: std.mergePatch(super.spec, {
preserveUnknownFields: null,
}),
},
},
grafana+:: {
dashboardDefinitions: configMapList.new(super.dashboardDefinitions),
serviceMonitor: {