Skip to content

Commit

Permalink
fix: namspace label key in selectors for netpol (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
y-eight authored Jun 3, 2024
1 parent c86ac70 commit 5d870b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/opencost/templates/networkpolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
{{- if ne .Values.networkPolicies.prometheus.namespace .Release.Namespace }}
namespaceSelector:
matchLabels:
name: {{ .Values.networkPolicies.prometheus.namespace }}
kubernetes.io/metadata.name: {{ .Values.networkPolicies.prometheus.namespace }}
{{- end }}
ports:
- port: 9003
Expand All @@ -38,7 +38,7 @@ spec:
{{- if ne .Values.networkPolicies.prometheus.namespace .Release.Namespace }}
namespaceSelector:
matchLabels:
name: {{ .Values.networkPolicies.prometheus.namespace }}
kubernetes.io/metadata.name: {{ .Values.networkPolicies.prometheus.namespace }}
{{- end }}
ports:
- port: {{ .Values.networkPolicies.prometheus.port }}
Expand Down

0 comments on commit 5d870b8

Please sign in to comment.