Skip to content

Commit 6c30d4d

Browse files
committed
feat: helm - add priorityClassName
1 parent ab2ad3e commit 6c30d4d

File tree

4 files changed

+139
-0
lines changed

4 files changed

+139
-0
lines changed

charts/steadybit-extension-http/templates/deployment.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ spec:
2929
{{- toYaml . | nindent 8 }}
3030
{{- end }}
3131
spec:
32+
{{- with .Values.priorityClassName }}
33+
priorityClassName: {{ . }}
34+
{{- end }}
3235
{{- with .Values.podSecurityContext }}
3336
securityContext:
3437
{{- toYaml . | nindent 8 }}

charts/steadybit-extension-http/tests/__snapshot__/deployment_test.yaml.snap

+121
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,127 @@ manifest should match snapshot with mutual TLS using containerPaths:
400400
volumeMounts: null
401401
serviceAccountName: steadybit-extension-http
402402
volumes: null
403+
manifest should match snapshot with podSecurityContext:
404+
1: |
405+
apiVersion: apps/v1
406+
kind: Deployment
407+
metadata:
408+
labels:
409+
steadybit.com/discovery-disabled: "true"
410+
name: RELEASE-NAME-steadybit-extension-http
411+
namespace: NAMESPACE
412+
spec:
413+
replicas: 1
414+
selector:
415+
matchLabels:
416+
app.kubernetes.io/instance: RELEASE-NAME
417+
app.kubernetes.io/name: steadybit-extension-http
418+
template:
419+
metadata:
420+
annotations: null
421+
labels:
422+
app.kubernetes.io/instance: RELEASE-NAME
423+
app.kubernetes.io/name: steadybit-extension-http
424+
steadybit.com/discovery-disabled: "true"
425+
spec:
426+
containers:
427+
- env:
428+
- name: STEADYBIT_LOG_LEVEL
429+
value: INFO
430+
- name: STEADYBIT_LOG_FORMAT
431+
value: text
432+
image: ghcr.io/steadybit/extension-http:latest
433+
imagePullPolicy: Always
434+
livenessProbe:
435+
httpGet:
436+
path: /health/liveness
437+
port: 8081
438+
name: extension
439+
readinessProbe:
440+
httpGet:
441+
path: /health/readiness
442+
port: 8081
443+
resources:
444+
limits:
445+
cpu: 200m
446+
memory: 128Mi
447+
requests:
448+
cpu: 50m
449+
memory: 32Mi
450+
securityContext:
451+
allowPrivilegeEscalation: false
452+
capabilities:
453+
drop:
454+
- ALL
455+
readOnlyRootFilesystem: true
456+
runAsGroup: 10000
457+
runAsNonRoot: true
458+
runAsUser: 10000
459+
volumeMounts: null
460+
securityContext:
461+
runAsUser: 2222
462+
serviceAccountName: steadybit-extension-http
463+
volumes: null
464+
manifest should match snapshot with priority class:
465+
1: |
466+
apiVersion: apps/v1
467+
kind: Deployment
468+
metadata:
469+
labels:
470+
steadybit.com/discovery-disabled: "true"
471+
name: RELEASE-NAME-steadybit-extension-http
472+
namespace: NAMESPACE
473+
spec:
474+
replicas: 1
475+
selector:
476+
matchLabels:
477+
app.kubernetes.io/instance: RELEASE-NAME
478+
app.kubernetes.io/name: steadybit-extension-http
479+
template:
480+
metadata:
481+
annotations: null
482+
labels:
483+
app.kubernetes.io/instance: RELEASE-NAME
484+
app.kubernetes.io/name: steadybit-extension-http
485+
steadybit.com/discovery-disabled: "true"
486+
spec:
487+
containers:
488+
- env:
489+
- name: STEADYBIT_LOG_LEVEL
490+
value: INFO
491+
- name: STEADYBIT_LOG_FORMAT
492+
value: text
493+
image: ghcr.io/steadybit/extension-http:latest
494+
imagePullPolicy: Always
495+
livenessProbe:
496+
httpGet:
497+
path: /health/liveness
498+
port: 8081
499+
name: extension
500+
readinessProbe:
501+
httpGet:
502+
path: /health/readiness
503+
port: 8081
504+
resources:
505+
limits:
506+
cpu: 200m
507+
memory: 128Mi
508+
requests:
509+
cpu: 50m
510+
memory: 32Mi
511+
securityContext:
512+
allowPrivilegeEscalation: false
513+
capabilities:
514+
drop:
515+
- ALL
516+
readOnlyRootFilesystem: true
517+
runAsGroup: 10000
518+
runAsNonRoot: true
519+
runAsUser: 10000
520+
volumeMounts: null
521+
priorityClassName: my-priority-class
522+
serviceAccountName: steadybit-extension-http
523+
volumes: null
403524
manifest should match snapshot without TLS:
404525
1: |
405526
apiVersion: apps/v1

charts/steadybit-extension-http/tests/deployment_test.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,15 @@ tests:
6666
tags.datadoghq.com/service: steadybit-extension
6767
asserts:
6868
- matchSnapshot: {}
69+
- it: manifest should match snapshot with podSecurityContext
70+
set:
71+
podSecurityContext:
72+
runAsUser: 2222
73+
asserts:
74+
- matchSnapshot: {}
75+
76+
- it: manifest should match snapshot with priority class
77+
set:
78+
priorityClassName: my-priority-class
79+
asserts:
80+
- matchSnapshot: {}

charts/steadybit-extension-http/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ topologySpreadConstraints: []
7676
# affinity -- Affinities to influence pod assignment.
7777
affinity: {}
7878

79+
# priorityClassName -- Priority class used to influence pod scheduling priority.
80+
priorityClassName: ""
81+
7982
# podSecurityContext -- SecurityContext to apply to the pod.
8083
podSecurityContext: {}
8184

0 commit comments

Comments
 (0)