Skip to content

Commit 347c01f

Browse files
committed
check for role env var
1 parent 0ceaabb commit 347c01f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/templates/kuttl/smoke/10-install-opa.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ spec:
3939
logging:
4040
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
4141
envOverrides:
42-
SERVER_ROLE_LEVEL_ENV_VAR: "SERVER_ROLE_LEVEL_ENV_VAR"
42+
SERVER_ROLE_LEVEL_ENV_VAR: "SERVER_ROLE_LEVEL_ENV_VAR"
4343
roleGroups:
4444
default:
4545
envOverrides:

tests/templates/kuttl/smoke/32-assert.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ kind: TestAssert
44
metadata:
55
name: test-env-overrides
66
commands:
7+
# Role level env var
8+
- script: kubectl exec -n $NAMESPACE -c opa svc/test-opa-server -- env | grep SERVER_ROLE_LEVEL_ENV_VAR
9+
# RoleGroup level env var
710
- script: kubectl exec -n $NAMESPACE -c opa svc/test-opa-server -- env | grep SERVER_ROLE_GROUP_LEVEL_ENV_VAR

0 commit comments

Comments
 (0)