Skip to content

Commit 85931a9

Browse files
authored
test: add global priorityClassName test case (#762)
* test: add global priorityClassName test case * chore: bump chart version
1 parent 015e3eb commit 85931a9

3 files changed

Lines changed: 85 additions & 1 deletion

File tree

charts/steadybit-extension-aws/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: steadybit-extension-aws
33
description: Steadybit AWS extension Helm chart for Kubernetes.
4-
version: 2.2.12
4+
version: 2.2.13
55
appVersion: v2.4.9
66
home: https://www.steadybit.com/
77
icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png

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

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,82 @@ manifest should match snapshot with extra labels:
520520
type: RuntimeDefault
521521
serviceAccountName: steadybit-extension-aws
522522
volumes: null
523+
manifest should match snapshot with global priority class:
524+
1: |
525+
apiVersion: apps/v1
526+
kind: Deployment
527+
metadata:
528+
labels:
529+
steadybit.com/discovery-disabled: "true"
530+
steadybit.com/extension: "true"
531+
name: RELEASE-NAME-steadybit-extension-aws
532+
namespace: NAMESPACE
533+
spec:
534+
replicas: 1
535+
selector:
536+
matchLabels:
537+
app.kubernetes.io/instance: RELEASE-NAME
538+
app.kubernetes.io/name: steadybit-extension-aws
539+
template:
540+
metadata:
541+
annotations:
542+
oneagent.dynatrace.com/injection: "false"
543+
labels:
544+
app.kubernetes.io/instance: RELEASE-NAME
545+
app.kubernetes.io/name: steadybit-extension-aws
546+
steadybit.com/discovery-disabled: "true"
547+
steadybit.com/extension: "true"
548+
spec:
549+
containers:
550+
- env:
551+
- name: STEADYBIT_LOG_LEVEL
552+
value: INFO
553+
- name: STEADYBIT_LOG_FORMAT
554+
value: text
555+
image: ghcr.io/steadybit/extension-aws:v0.0.0
556+
imagePullPolicy: Always
557+
livenessProbe:
558+
failureThreshold: 5
559+
httpGet:
560+
path: /health/liveness
561+
port: 8086
562+
initialDelaySeconds: 10
563+
periodSeconds: 10
564+
successThreshold: 1
565+
timeoutSeconds: 5
566+
name: extension
567+
ports:
568+
- containerPort: 8085
569+
readinessProbe:
570+
failureThreshold: 3
571+
httpGet:
572+
path: /health/readiness
573+
port: 8086
574+
initialDelaySeconds: 10
575+
periodSeconds: 10
576+
successThreshold: 1
577+
timeoutSeconds: 1
578+
resources:
579+
limits:
580+
cpu: 200m
581+
memory: 32Mi
582+
requests:
583+
cpu: 50m
584+
memory: 16Mi
585+
securityContext:
586+
allowPrivilegeEscalation: false
587+
capabilities:
588+
drop:
589+
- ALL
590+
readOnlyRootFilesystem: true
591+
volumeMounts: null
592+
priorityClassName: my-global-priority-class
593+
securityContext:
594+
runAsNonRoot: true
595+
seccompProfile:
596+
type: RuntimeDefault
597+
serviceAccountName: steadybit-extension-aws
598+
volumes: null
523599
manifest should match snapshot with mutual TLS:
524600
1: |
525601
apiVersion: apps/v1

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,11 @@ tests:
158158
priorityClassName: my-priority-class
159159
asserts:
160160
- matchSnapshot: {}
161+
162+
- it: manifest should match snapshot with global priority class
163+
set:
164+
global:
165+
priorityClassName: my-global-priority-class
166+
asserts:
167+
- matchSnapshot: {}
168+

0 commit comments

Comments
 (0)