diff --git a/charts/steadybit-extension-debug/Chart.yaml b/charts/steadybit-extension-debug/Chart.yaml index 8680f81..011b0d2 100644 --- a/charts/steadybit-extension-debug/Chart.yaml +++ b/charts/steadybit-extension-debug/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v2 name: steadybit-extension-debug description: Steadybit debug extension Helm chart for Kubernetes. -version: 1.0.22 -appVersion: v1.0.13 # replace with your version +version: 1.0.24 +appVersion: v1.0.13 home: https://www.steadybit.com/ icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png maintainers: diff --git a/charts/steadybit-extension-debug/templates/deployment.yaml b/charts/steadybit-extension-debug/templates/deployment.yaml index 81d3221..0ecc3d6 100644 --- a/charts/steadybit-extension-debug/templates/deployment.yaml +++ b/charts/steadybit-extension-debug/templates/deployment.yaml @@ -36,7 +36,7 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} spec: - {{- with .Values.priorityClassName }} + {{- with (.Values.priorityClassName | default (dig "priorityClassName" nil (.Values.global | default dict))) }} priorityClassName: {{ . }} {{- end }} {{- with .Values.podSecurityContext }} diff --git a/charts/steadybit-extension-debug/tests/__snapshot__/deployment_test.yaml.snap b/charts/steadybit-extension-debug/tests/__snapshot__/deployment_test.yaml.snap index 71f3c58..2025c92 100644 --- a/charts/steadybit-extension-debug/tests/__snapshot__/deployment_test.yaml.snap +++ b/charts/steadybit-extension-debug/tests/__snapshot__/deployment_test.yaml.snap @@ -306,6 +306,80 @@ manifest should match snapshot with extra labels: volumes: - emptyDir: {} name: tmp-dir +manifest should match snapshot with global priority class: + 1: | + apiVersion: apps/v1 + kind: Deployment + metadata: + labels: + steadybit.com/discovery-disabled: "true" + steadybit.com/extension: "true" + name: RELEASE-NAME-steadybit-extension-debug + namespace: NAMESPACE + spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/instance: RELEASE-NAME + app.kubernetes.io/name: steadybit-extension-debug + template: + metadata: + annotations: + oneagent.dynatrace.com/injection: "false" + labels: + app.kubernetes.io/instance: RELEASE-NAME + app.kubernetes.io/name: steadybit-extension-debug + steadybit.com/discovery-disabled: "true" + steadybit.com/extension: "true" + spec: + automountServiceAccountToken: true + containers: + - env: null + image: ghcr.io/steadybit/extension-debug:v0.0.0 + imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 5 + httpGet: + path: /health/liveness + port: 8081 + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 + name: extension + readinessProbe: + failureThreshold: 3 + httpGet: + path: /health/readiness + port: 8081 + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 + resources: + limits: + cpu: 200m + memory: 256Mi + requests: + cpu: 50m + memory: 32Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + runAsGroup: 10000 + runAsNonRoot: true + runAsUser: 10000 + volumeMounts: + - mountPath: /tmp + name: tmp-dir + priorityClassName: my-global-priority-class + serviceAccountName: steadybit-extension-debug + volumes: + - emptyDir: {} + name: tmp-dir manifest should match snapshot with mutual TLS: 1: | apiVersion: apps/v1 diff --git a/charts/steadybit-extension-debug/tests/deployment_test.yaml b/charts/steadybit-extension-debug/tests/deployment_test.yaml index b6ae49f..f17193e 100644 --- a/charts/steadybit-extension-debug/tests/deployment_test.yaml +++ b/charts/steadybit-extension-debug/tests/deployment_test.yaml @@ -80,3 +80,11 @@ tests: priorityClassName: my-priority-class asserts: - matchSnapshot: {} + + - it: manifest should match snapshot with global priority class + set: + global: + priorityClassName: my-global-priority-class + asserts: + - matchSnapshot: {} + diff --git a/charts/steadybit-extension-debug/values.yaml b/charts/steadybit-extension-debug/values.yaml index 4dbc126..495ceda 100644 --- a/charts/steadybit-extension-debug/values.yaml +++ b/charts/steadybit-extension-debug/values.yaml @@ -129,4 +129,3 @@ extraEnv: [] # - secretRef: # name: env-secrets extraEnvFrom: [] -