Merge pull request #519 from pgier/dont-remove-preserve-unknown-fields
Revert "Remove field preserveUnknownFields from CRDs"
This commit is contained in:
@@ -18,38 +18,7 @@ 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+::
|
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,
|
|
||||||
}),
|
|
||||||
},
|
|
||||||
service+: {
|
service+: {
|
||||||
spec+: {
|
spec+: {
|
||||||
ports: [
|
ports: [
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ spec:
|
|||||||
listKind: AlertmanagerList
|
listKind: AlertmanagerList
|
||||||
plural: alertmanagers
|
plural: alertmanagers
|
||||||
singular: alertmanager
|
singular: alertmanager
|
||||||
|
preserveUnknownFields: false
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
versions:
|
versions:
|
||||||
- additionalPrinterColumns:
|
- additionalPrinterColumns:
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ spec:
|
|||||||
listKind: PodMonitorList
|
listKind: PodMonitorList
|
||||||
plural: podmonitors
|
plural: podmonitors
|
||||||
singular: podmonitor
|
singular: podmonitor
|
||||||
|
preserveUnknownFields: false
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
versions:
|
versions:
|
||||||
- name: v1
|
- name: v1
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ spec:
|
|||||||
listKind: PrometheusList
|
listKind: PrometheusList
|
||||||
plural: prometheuses
|
plural: prometheuses
|
||||||
singular: prometheus
|
singular: prometheus
|
||||||
|
preserveUnknownFields: false
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
versions:
|
versions:
|
||||||
- additionalPrinterColumns:
|
- additionalPrinterColumns:
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ spec:
|
|||||||
listKind: PrometheusRuleList
|
listKind: PrometheusRuleList
|
||||||
plural: prometheusrules
|
plural: prometheusrules
|
||||||
singular: prometheusrule
|
singular: prometheusrule
|
||||||
|
preserveUnknownFields: false
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
versions:
|
versions:
|
||||||
- name: v1
|
- name: v1
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ spec:
|
|||||||
listKind: ServiceMonitorList
|
listKind: ServiceMonitorList
|
||||||
plural: servicemonitors
|
plural: servicemonitors
|
||||||
singular: servicemonitor
|
singular: servicemonitor
|
||||||
|
preserveUnknownFields: false
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
versions:
|
versions:
|
||||||
- name: v1
|
- name: v1
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ spec:
|
|||||||
listKind: ThanosRulerList
|
listKind: ThanosRulerList
|
||||||
plural: thanosrulers
|
plural: thanosrulers
|
||||||
singular: thanosruler
|
singular: thanosruler
|
||||||
|
preserveUnknownFields: false
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
versions:
|
versions:
|
||||||
- name: v1
|
- name: v1
|
||||||
|
|||||||
Reference in New Issue
Block a user