fix(pod,podMonitor,service): avoid error of immutable labels
This commit is contained in:
parent
79b61b0035
commit
80a8e8096d
@ -13,5 +13,5 @@
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- define "prometheus-postgres-exporter.pod.selectorLabels" -}}
|
{{- define "prometheus-postgres-exporter.pod.selectorLabels" -}}
|
||||||
{{ include "prometheus-postgres-exporter.pod.labels" . }}
|
{{ include "prometheus-postgres-exporter.selectorLabels" . }}
|
||||||
{{- end }}
|
{{- end }}
|
@ -90,10 +90,7 @@ tests:
|
|||||||
path: spec.selector.matchLabels
|
path: spec.selector.matchLabels
|
||||||
value:
|
value:
|
||||||
app.kubernetes.io/instance: prometheus-postgres-exporter-unittest
|
app.kubernetes.io/instance: prometheus-postgres-exporter-unittest
|
||||||
app.kubernetes.io/managed-by: Helm
|
|
||||||
app.kubernetes.io/name: prometheus-postgres-exporter
|
app.kubernetes.io/name: prometheus-postgres-exporter
|
||||||
app.kubernetes.io/version: 0.1.0
|
|
||||||
helm.sh/chart: prometheus-postgres-exporter-0.1.0
|
|
||||||
|
|
||||||
- it: Render podMonitor with custom annotations and labels.
|
- it: Render podMonitor with custom annotations and labels.
|
||||||
set:
|
set:
|
||||||
|
@ -63,10 +63,7 @@ tests:
|
|||||||
path: spec.selector
|
path: spec.selector
|
||||||
value:
|
value:
|
||||||
app.kubernetes.io/instance: prometheus-postgres-exporter-unittest
|
app.kubernetes.io/instance: prometheus-postgres-exporter-unittest
|
||||||
app.kubernetes.io/managed-by: Helm
|
|
||||||
app.kubernetes.io/name: prometheus-postgres-exporter
|
app.kubernetes.io/name: prometheus-postgres-exporter
|
||||||
app.kubernetes.io/version: 0.1.0
|
|
||||||
helm.sh/chart: prometheus-postgres-exporter-0.1.0
|
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.sessionAffinity
|
path: spec.sessionAffinity
|
||||||
value: None
|
value: None
|
||||||
|
Loading…
Reference in New Issue
Block a user