Skip to content

Commit 3681593

Browse files
authored
fix(helm): fix default securitycontext for job (#998)
Signed-off-by: sandert-k8s <sandert98@gmail.com>
1 parent 3cad974 commit 3681593

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

charts/capsule-proxy/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ annotations:
3333
- name: Documentation
3434
url: https://projectcapsule.dev/docs/proxy/
3535
artifacthub.io/changes: |
36-
- kind: added
37-
description: added toggles for podSecurityContexts and securityContexts
36+
- kind: fixed
37+
description: fixed default securityContext toggles for kubectl job

charts/capsule-proxy/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ If you only need to make minor customizations, you can specify them on the comma
115115
| global.jobs.kubectl.nodeSelector | object | `{}` | Set the node selector |
116116
| global.jobs.kubectl.podAnnotations | object | `{}` | Annotations to add to the job pod |
117117
| global.jobs.kubectl.podLabels | object | `{}` | Labels to add to the job pod |
118-
| global.jobs.kubectl.podSecurityContext | object | `{"enabled":false,"seccompProfile":{"type":"RuntimeDefault"}}` | Security context for the job pods. |
118+
| global.jobs.kubectl.podSecurityContext | object | `{"enabled":true,"seccompProfile":{"type":"RuntimeDefault"}}` | Security context for the job pods. |
119119
| global.jobs.kubectl.priorityClassName | string | `""` | Set a pod priorityClassName |
120120
| global.jobs.kubectl.resources | object | `{}` | Job resources |
121121
| global.jobs.kubectl.restartPolicy | string | `"Never"` | Set the restartPolicy |
122-
| global.jobs.kubectl.securityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"enabled":false,"readOnlyRootFilesystem":true,"runAsGroup":1002,"runAsNonRoot":true,"runAsUser":1002}` | Security context for the job containers. |
122+
| global.jobs.kubectl.securityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"enabled":true,"readOnlyRootFilesystem":true,"runAsGroup":1002,"runAsNonRoot":true,"runAsUser":1002}` | Security context for the job containers. |
123123
| global.jobs.kubectl.tolerations | list | `[]` | Set list of tolerations |
124124
| global.jobs.kubectl.topologySpreadConstraints | list | `[]` | Set Topology Spread Constraints |
125125
| global.jobs.kubectl.ttlSecondsAfterFinished | int | `60` | Sets the ttl in seconds after a finished certgen job is deleted. Set to -1 to never delete. |

charts/capsule-proxy/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ global:
3131
ttlSecondsAfterFinished: 60
3232
# -- Security context for the job pods.
3333
podSecurityContext:
34-
enabled: false
34+
enabled: true
3535
seccompProfile:
3636
type: "RuntimeDefault"
3737
# -- Security context for the job containers.
3838
securityContext:
39-
enabled: false
39+
enabled: true
4040
allowPrivilegeEscalation: false
4141
capabilities:
4242
drop:

0 commit comments

Comments
 (0)