Skip to content

Commit

Permalink
feat(helm): add service-account features to egress and ingress
Browse files Browse the repository at this point in the history
Add features that existed for the CP but not ingress/egress:

- imagePullSecrets (for egress)
- serviceAccountAnnotations
- automountServiceAccountToken

Fix #7824

Signed-off-by: Charly Molter <[email protected]>
  • Loading branch information
lahabana committed Sep 26, 2023
1 parent eac74dc commit a941541
Show file tree
Hide file tree
Showing 17 changed files with 1,319 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,12 @@ ingress:

# -- Security context at the container level for ingress
containerSecurityContext:
readOnlyRootFilesystem: true
readOnlyRootFilesystem: true

# -- Annotations to add for Control Plane's Service Account
serviceAccountAnnotations: { }
# -- Whether to automountServiceAccountToken for cp. Optionally set to false
automountServiceAccountToken: true

egress:
# -- If true, it deploys Egress for cross cluster communication
Expand Down Expand Up @@ -602,7 +607,12 @@ egress:

# -- Security context at the container level for egress
containerSecurityContext:
readOnlyRootFilesystem: true
readOnlyRootFilesystem: true

# -- Annotations to add for Control Plane's Service Account
serviceAccountAnnotations: { }
# -- Whether to automountServiceAccountToken for cp. Optionally set to false
automountServiceAccountToken: true

kumactl:
image:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ spec:
runAsNonRoot: true
runAsUser: 5678
serviceAccountName: kuma-egress
automountServiceAccountToken: true
nodeSelector:

kubernetes.io/os: linux
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6659,6 +6659,7 @@ spec:
runAsNonRoot: true
runAsUser: 5678
serviceAccountName: kuma-egress
automountServiceAccountToken: true
nodeSelector:

kubernetes.io/os: linux
Expand Down Expand Up @@ -6789,6 +6790,7 @@ spec:
runAsNonRoot: true
runAsUser: 5678
serviceAccountName: kuma-ingress
automountServiceAccountToken: true
nodeSelector:

kubernetes.io/os: linux
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,7 @@ spec:
runAsNonRoot: true
runAsUser: 5678
serviceAccountName: kuma-ingress
automountServiceAccountToken: true
nodeSelector:

kubernetes.io/os: linux
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@ spec:
runAsNonRoot: true
runAsUser: 5678
serviceAccountName: kuma-ingress
automountServiceAccountToken: true
nodeSelector:

kubernetes.io/os: linux
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,7 @@ spec:
runAsNonRoot: true
runAsUser: 5678
serviceAccountName: kuma-egress
automountServiceAccountToken: true
nodeSelector:

kubernetes.io/os: linux
Expand Down Expand Up @@ -972,6 +973,7 @@ spec:
runAsNonRoot: true
runAsUser: 5678
serviceAccountName: kuma-ingress
automountServiceAccountToken: true
nodeSelector:

kubernetes.io/os: linux
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ spec:
runAsNonRoot: true
runAsUser: 5678
serviceAccountName: kuma-egress
automountServiceAccountToken: true
nodeSelector:

kubernetes.io/os: linux
Expand Down Expand Up @@ -741,6 +742,7 @@ spec:
runAsNonRoot: true
runAsUser: 5678
serviceAccountName: kuma-ingress
automountServiceAccountToken: true
nodeSelector:

kubernetes.io/os: linux
Expand Down
Loading

0 comments on commit a941541

Please sign in to comment.