Revert "Remove field preserveUnknownFields from CRDs"
This reverts commit cdaaf3d51c.
This commit is contained in:
@@ -18,38 +18,7 @@ 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,
|
||||
}),
|
||||
},
|
||||
'0thanosrulerCustomResourceDefinition'+: {
|
||||
spec: std.mergePatch(super.spec, {
|
||||
preserveUnknownFields: null,
|
||||
}),
|
||||
},
|
||||
prometheusOperator+:: {
|
||||
service+: {
|
||||
spec+: {
|
||||
ports: [
|
||||
|
||||
@@ -24,6 +24,7 @@ spec:
|
||||
listKind: AlertmanagerList
|
||||
plural: alertmanagers
|
||||
singular: alertmanager
|
||||
preserveUnknownFields: false
|
||||
scope: Namespaced
|
||||
subresources: {}
|
||||
validation:
|
||||
|
||||
@@ -12,6 +12,7 @@ spec:
|
||||
listKind: PodMonitorList
|
||||
plural: podmonitors
|
||||
singular: podmonitor
|
||||
preserveUnknownFields: false
|
||||
scope: Namespaced
|
||||
validation:
|
||||
openAPIV3Schema:
|
||||
|
||||
@@ -24,6 +24,7 @@ spec:
|
||||
listKind: PrometheusList
|
||||
plural: prometheuses
|
||||
singular: prometheus
|
||||
preserveUnknownFields: false
|
||||
scope: Namespaced
|
||||
subresources: {}
|
||||
validation:
|
||||
|
||||
@@ -12,6 +12,7 @@ spec:
|
||||
listKind: PrometheusRuleList
|
||||
plural: prometheusrules
|
||||
singular: prometheusrule
|
||||
preserveUnknownFields: false
|
||||
scope: Namespaced
|
||||
validation:
|
||||
openAPIV3Schema:
|
||||
|
||||
@@ -12,6 +12,7 @@ spec:
|
||||
listKind: ServiceMonitorList
|
||||
plural: servicemonitors
|
||||
singular: servicemonitor
|
||||
preserveUnknownFields: false
|
||||
scope: Namespaced
|
||||
validation:
|
||||
openAPIV3Schema:
|
||||
|
||||
@@ -12,6 +12,7 @@ spec:
|
||||
listKind: ThanosRulerList
|
||||
plural: thanosrulers
|
||||
singular: thanosruler
|
||||
preserveUnknownFields: false
|
||||
scope: Namespaced
|
||||
validation:
|
||||
openAPIV3Schema:
|
||||
|
||||
Reference in New Issue
Block a user