mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-08-26 17:01:50 +02:00
Remove field preserveUnknownFields from CRDs
This allows compatiblity with kubernetes v1.14 and earlier.
This commit is contained in:
parent
8550ac35bf
commit
cdaaf3d51c
@ -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: {
|
||||
|
@ -12,7 +12,6 @@ spec:
|
||||
listKind: AlertmanagerList
|
||||
plural: alertmanagers
|
||||
singular: alertmanager
|
||||
preserveUnknownFields: false
|
||||
scope: Namespaced
|
||||
validation:
|
||||
openAPIV3Schema:
|
||||
|
@ -12,7 +12,6 @@ spec:
|
||||
listKind: PodMonitorList
|
||||
plural: podmonitors
|
||||
singular: podmonitor
|
||||
preserveUnknownFields: false
|
||||
scope: Namespaced
|
||||
validation:
|
||||
openAPIV3Schema:
|
||||
|
@ -12,7 +12,6 @@ spec:
|
||||
listKind: PrometheusList
|
||||
plural: prometheuses
|
||||
singular: prometheus
|
||||
preserveUnknownFields: false
|
||||
scope: Namespaced
|
||||
validation:
|
||||
openAPIV3Schema:
|
||||
|
@ -12,7 +12,6 @@ spec:
|
||||
listKind: PrometheusRuleList
|
||||
plural: prometheusrules
|
||||
singular: prometheusrule
|
||||
preserveUnknownFields: false
|
||||
scope: Namespaced
|
||||
validation:
|
||||
openAPIV3Schema:
|
||||
|
@ -12,7 +12,6 @@ spec:
|
||||
listKind: ServiceMonitorList
|
||||
plural: servicemonitors
|
||||
singular: servicemonitor
|
||||
preserveUnknownFields: false
|
||||
scope: Namespaced
|
||||
validation:
|
||||
openAPIV3Schema:
|
||||
|
Loading…
x
Reference in New Issue
Block a user