Skip to content
Snippets Groups Projects
Commit 9548495d authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4188 OZG-4555 fix helm units

parent 99276be2
Branches
Tags
No related merge requests found
{{ range $client := .Values.sso.keycloak_clients }}
---
{{- if $client.ozgcloudOperator }}
apiVersion: api.ozgcloud-stack.de/v1
kind: OzgcloudKeycloakClient
{{- if $client.kopOperator }}
apiVersion: api.kop-stack.de/v1
kind: KopKeycloakClient
{{- else }}
apiVersion: operator.ozgcloud.de/v1
kind: OzgKeycloakClient
......
......@@ -59,15 +59,15 @@ tests:
kopOperator: true
asserts:
- isAPIVersion:
of: api.ozgcloud-stack.de/v1
of: api.kop-stack.de/v1
- isKind:
of: OzgcloudKeycloakClient
- it: should have annotations for ozgcloudOperator
of: KopKeycloakClient
- it: should have annotations for kopOperator
set:
sso:
keycloak_clients:
- client_name: alfa
ozgcloudOperator: true
kopOperator: true
asserts:
- equal:
path: metadata.annotations.[helm.sh/resource-policy]
......
......@@ -545,12 +545,12 @@ tests:
kopOperator: true
asserts:
- isAPIVersion:
of: api.ozgcloud-stack.de/v1
of: api.kop-stack.de/v1
- isKind:
of: OzgcloudKeycloakUser
of: KopKeycloakUser
- equal:
path: spec.keycloak_user.username
value: ozgcloud
value: kop
- equal:
path: metadata.annotations.[helm.sh/resource-policy]
value: keep
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment