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+:: {
|
kubePrometheus+:: {
|
||||||
namespace: k.core.v1.namespace.new($._config.namespace),
|
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+:: {
|
grafana+:: {
|
||||||
dashboardDefinitions: configMapList.new(super.dashboardDefinitions),
|
dashboardDefinitions: configMapList.new(super.dashboardDefinitions),
|
||||||
serviceMonitor: {
|
serviceMonitor: {
|
||||||
|
@ -12,7 +12,6 @@ spec:
|
|||||||
listKind: AlertmanagerList
|
listKind: AlertmanagerList
|
||||||
plural: alertmanagers
|
plural: alertmanagers
|
||||||
singular: alertmanager
|
singular: alertmanager
|
||||||
preserveUnknownFields: false
|
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
validation:
|
validation:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
|
@ -12,7 +12,6 @@ spec:
|
|||||||
listKind: PodMonitorList
|
listKind: PodMonitorList
|
||||||
plural: podmonitors
|
plural: podmonitors
|
||||||
singular: podmonitor
|
singular: podmonitor
|
||||||
preserveUnknownFields: false
|
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
validation:
|
validation:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
|
@ -12,7 +12,6 @@ spec:
|
|||||||
listKind: PrometheusList
|
listKind: PrometheusList
|
||||||
plural: prometheuses
|
plural: prometheuses
|
||||||
singular: prometheus
|
singular: prometheus
|
||||||
preserveUnknownFields: false
|
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
validation:
|
validation:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
|
@ -12,7 +12,6 @@ spec:
|
|||||||
listKind: PrometheusRuleList
|
listKind: PrometheusRuleList
|
||||||
plural: prometheusrules
|
plural: prometheusrules
|
||||||
singular: prometheusrule
|
singular: prometheusrule
|
||||||
preserveUnknownFields: false
|
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
validation:
|
validation:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
|
@ -12,7 +12,6 @@ spec:
|
|||||||
listKind: ServiceMonitorList
|
listKind: ServiceMonitorList
|
||||||
plural: servicemonitors
|
plural: servicemonitors
|
||||||
singular: servicemonitor
|
singular: servicemonitor
|
||||||
preserveUnknownFields: false
|
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
validation:
|
validation:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user