Skip to content

Commit aa127fa

Browse files
committed
Update CoreDNS template to match upstream template
This commit updates the CoreDNS template managed by the component to match the template present in the vcluster v0.14.1 Helm chart. This should fix the sync issues we've observed recently. Fixes #75
1 parent c238827 commit aa127fa

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

component/coredns.libsonnet

+2-1
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,9 @@ local corednsConfigMap =
159159
name: metrics
160160
protocol: TCP
161161
securityContext:
162+
runAsNonRoot: true
162163
runAsUser: {{.RUN_AS_USER}}
163-
runAsNonRoot: {{.RUN_AS_NON_ROOT}}
164+
runAsGroup: {{.RUN_AS_GROUP}}
164165
allowPrivilegeEscalation: false
165166
capabilities:
166167
drop:

tests/golden/defaults/defaults/defaults/10_cluster.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,9 @@ data:
439439
name: metrics
440440
protocol: TCP
441441
securityContext:
442+
runAsNonRoot: true
442443
runAsUser: {{.RUN_AS_USER}}
443-
runAsNonRoot: {{.RUN_AS_NON_ROOT}}
444+
runAsGroup: {{.RUN_AS_GROUP}}
444445
allowPrivilegeEscalation: false
445446
capabilities:
446447
drop:

tests/golden/oidc/oidc/oidc/10_cluster.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,9 @@ data:
446446
name: metrics
447447
protocol: TCP
448448
securityContext:
449+
runAsNonRoot: true
449450
runAsUser: {{.RUN_AS_USER}}
450-
runAsNonRoot: {{.RUN_AS_NON_ROOT}}
451+
runAsGroup: {{.RUN_AS_GROUP}}
451452
allowPrivilegeEscalation: false
452453
capabilities:
453454
drop:

tests/golden/openshift/openshift/openshift/10_cluster.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,9 @@ data:
482482
name: metrics
483483
protocol: TCP
484484
securityContext:
485+
runAsNonRoot: true
485486
runAsUser: {{.RUN_AS_USER}}
486-
runAsNonRoot: {{.RUN_AS_NON_ROOT}}
487+
runAsGroup: {{.RUN_AS_GROUP}}
487488
allowPrivilegeEscalation: false
488489
capabilities:
489490
drop:

0 commit comments

Comments
 (0)