Skip to content

Commit

Permalink
Merge pull request #79 from steadybit/refa/helm-no-hardcoded-uid
Browse files Browse the repository at this point in the history
refa: avoid hard-coded uid in helm chart
  • Loading branch information
joshiste authored Dec 6, 2024
2 parents 3e705e9 + 3f89582 commit ab73aa6
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 37 deletions.
2 changes: 1 addition & 1 deletion charts/steadybit-extension-postman/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: steadybit-extension-postman
description: Steadybit Postman extension Helm chart for Kubernetes.
version: 1.7.9
version: 1.7.10
appVersion: v2.0.7
home: https://www.steadybit.com/
icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png
Expand Down
11 changes: 3 additions & 8 deletions charts/steadybit-extension-postman/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,10 @@ spec:
httpGet:
path: /health/readiness
port: 8087
{{- with .Values.containerSecurityContext }}
securityContext:
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 10000
runAsGroup: 10000
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
{{- toYaml . | nindent 12 }}
{{- end }}
volumes:
- name: tmp-dir
emptyDir: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,13 @@ manifest should match snapshot using podAnnotations and Labels:
drop:
- ALL
readOnlyRootFilesystem: true
runAsGroup: 10000
runAsNonRoot: true
runAsUser: 10000
volumeMounts:
- mountPath: /tmp
name: tmp-dir
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
serviceAccountName: steadybit-extension-postman
volumes:
- emptyDir: {}
Expand Down Expand Up @@ -156,15 +157,16 @@ manifest should match snapshot with TLS:
drop:
- ALL
readOnlyRootFilesystem: true
runAsGroup: 10000
runAsNonRoot: true
runAsUser: 10000
volumeMounts:
- mountPath: /tmp
name: tmp-dir
- mountPath: /etc/extension/certificates/server-cert
name: certificate-server-cert
readOnly: true
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
serviceAccountName: steadybit-extension-postman
volumes:
- emptyDir: {}
Expand Down Expand Up @@ -251,12 +253,13 @@ manifest should match snapshot with extra env vars:
drop:
- ALL
readOnlyRootFilesystem: true
runAsGroup: 10000
runAsNonRoot: true
runAsUser: 10000
volumeMounts:
- mountPath: /tmp
name: tmp-dir
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
serviceAccountName: steadybit-extension-postman
volumes:
- emptyDir: {}
Expand Down Expand Up @@ -334,12 +337,13 @@ manifest should match snapshot with extra labels:
drop:
- ALL
readOnlyRootFilesystem: true
runAsGroup: 10000
runAsNonRoot: true
runAsUser: 10000
volumeMounts:
- mountPath: /tmp
name: tmp-dir
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
serviceAccountName: steadybit-extension-postman
volumes:
- emptyDir: {}
Expand Down Expand Up @@ -421,9 +425,6 @@ manifest should match snapshot with mutual TLS:
drop:
- ALL
readOnlyRootFilesystem: true
runAsGroup: 10000
runAsNonRoot: true
runAsUser: 10000
volumeMounts:
- mountPath: /tmp
name: tmp-dir
Expand All @@ -433,6 +434,10 @@ manifest should match snapshot with mutual TLS:
- mountPath: /etc/extension/certificates/server-cert
name: certificate-server-cert
readOnly: true
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
serviceAccountName: steadybit-extension-postman
volumes:
- emptyDir: {}
Expand Down Expand Up @@ -522,12 +527,13 @@ manifest should match snapshot with mutual TLS using containerPaths:
drop:
- ALL
readOnlyRootFilesystem: true
runAsGroup: 10000
runAsNonRoot: true
runAsUser: 10000
volumeMounts:
- mountPath: /tmp
name: tmp-dir
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
serviceAccountName: steadybit-extension-postman
volumes:
- emptyDir: {}
Expand Down Expand Up @@ -603,14 +609,14 @@ manifest should match snapshot with podSecurityContext:
drop:
- ALL
readOnlyRootFilesystem: true
runAsGroup: 10000
runAsNonRoot: true
runAsUser: 10000
volumeMounts:
- mountPath: /tmp
name: tmp-dir
securityContext:
runAsNonRoot: true
runAsUser: 2222
seccompProfile:
type: RuntimeDefault
serviceAccountName: steadybit-extension-postman
volumes:
- emptyDir: {}
Expand Down Expand Up @@ -686,13 +692,14 @@ manifest should match snapshot with priority class:
drop:
- ALL
readOnlyRootFilesystem: true
runAsGroup: 10000
runAsNonRoot: true
runAsUser: 10000
volumeMounts:
- mountPath: /tmp
name: tmp-dir
priorityClassName: my-priority-class
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
serviceAccountName: steadybit-extension-postman
volumes:
- emptyDir: {}
Expand Down Expand Up @@ -768,12 +775,13 @@ manifest should match snapshot without TLS:
drop:
- ALL
readOnlyRootFilesystem: true
runAsGroup: 10000
runAsNonRoot: true
runAsUser: 10000
volumeMounts:
- mountPath: /tmp
name: tmp-dir
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
serviceAccountName: steadybit-extension-postman
volumes:
- emptyDir: {}
Expand Down
13 changes: 12 additions & 1 deletion charts/steadybit-extension-postman/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,18 @@ affinity: {}
priorityClassName: null

# podSecurityContext -- SecurityContext to apply to the pod.
podSecurityContext: {}
podSecurityContext:
seccompProfile:
type: RuntimeDefault
runAsNonRoot: true

# containerSecurityContext -- SecurityContext to apply to the container.
containerSecurityContext:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL

# extraEnv -- Array with extra environment variables to add to the container
# e.g:
Expand Down

0 comments on commit ab73aa6

Please sign in to comment.