Skip to content

Commit 94065d2

Browse files
authored
[helm actions-runner-controller] Use namespaceSelector.matchExpression instead of matchLabels (#2830)
1 parent b1cc4da commit 94065d2

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

charts/actions-runner-controller/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.23.3
18+
version: 0.23.4
1919

2020
# Used as the default manager tag value when no tag property is provided in the values.yaml
2121
appVersion: 0.27.4

charts/actions-runner-controller/templates/webhook_configs.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ webhooks:
1919
{{- if .Values.scope.singleNamespace }}
2020
namespaceSelector:
2121
matchLabels:
22-
name: {{ default .Release.Namespace .Values.scope.watchNamespace }}
22+
kubernetes.io/metadata.name: {{ default .Release.Namespace .Values.scope.watchNamespace }}
2323
{{- end }}
2424
clientConfig:
2525
{{- if .Values.admissionWebHooks.caBundle }}
@@ -50,7 +50,7 @@ webhooks:
5050
{{- if .Values.scope.singleNamespace }}
5151
namespaceSelector:
5252
matchLabels:
53-
name: {{ default .Release.Namespace .Values.scope.watchNamespace }}
53+
kubernetes.io/metadata.name: {{ default .Release.Namespace .Values.scope.watchNamespace }}
5454
{{- end }}
5555
clientConfig:
5656
{{- if .Values.admissionWebHooks.caBundle }}
@@ -81,7 +81,7 @@ webhooks:
8181
{{- if .Values.scope.singleNamespace }}
8282
namespaceSelector:
8383
matchLabels:
84-
name: {{ default .Release.Namespace .Values.scope.watchNamespace }}
84+
kubernetes.io/metadata.name: {{ default .Release.Namespace .Values.scope.watchNamespace }}
8585
{{- end }}
8686
clientConfig:
8787
{{- if .Values.admissionWebHooks.caBundle }}
@@ -112,7 +112,7 @@ webhooks:
112112
{{- if .Values.scope.singleNamespace }}
113113
namespaceSelector:
114114
matchLabels:
115-
name: {{ default .Release.Namespace .Values.scope.watchNamespace }}
115+
kubernetes.io/metadata.name: {{ default .Release.Namespace .Values.scope.watchNamespace }}
116116
{{- end }}
117117
clientConfig:
118118
{{- if .Values.admissionWebHooks.caBundle }}
@@ -156,7 +156,7 @@ webhooks:
156156
{{- if .Values.scope.singleNamespace }}
157157
namespaceSelector:
158158
matchLabels:
159-
name: {{ default .Release.Namespace .Values.scope.watchNamespace }}
159+
kubernetes.io/metadata.name: {{ default .Release.Namespace .Values.scope.watchNamespace }}
160160
{{- end }}
161161
clientConfig:
162162
{{- if .Values.admissionWebHooks.caBundle }}
@@ -187,7 +187,7 @@ webhooks:
187187
{{- if .Values.scope.singleNamespace }}
188188
namespaceSelector:
189189
matchLabels:
190-
name: {{ default .Release.Namespace .Values.scope.watchNamespace }}
190+
kubernetes.io/metadata.name: {{ default .Release.Namespace .Values.scope.watchNamespace }}
191191
{{- end }}
192192
clientConfig:
193193
{{- if .Values.admissionWebHooks.caBundle }}
@@ -218,7 +218,7 @@ webhooks:
218218
{{- if .Values.scope.singleNamespace }}
219219
namespaceSelector:
220220
matchLabels:
221-
name: {{ default .Release.Namespace .Values.scope.watchNamespace }}
221+
kubernetes.io/metadata.name: {{ default .Release.Namespace .Values.scope.watchNamespace }}
222222
{{- end }}
223223
clientConfig:
224224
{{- if .Values.admissionWebHooks.caBundle }}

0 commit comments

Comments
 (0)