Skip to content
Snippets Groups Projects
Verified Commit f80dbd89 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

ci(keycloak): Update keycloak helm-chart unit-tests

parent 35013b19
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,8 @@ should match snapshot: ...@@ -18,6 +18,8 @@ should match snapshot:
app.kubernetes.io/name: keycloak app.kubernetes.io/name: keycloak
template: template:
metadata: metadata:
annotations:
checksum/config: 59795d176ed09e400ded93da25c6d22200033cdb1859c4c32b6993333ac410c3
labels: labels:
app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: keycloak app.kubernetes.io/name: keycloak
...@@ -25,15 +27,38 @@ should match snapshot: ...@@ -25,15 +27,38 @@ should match snapshot:
containers: containers:
- args: - args:
- start - start
- --cache-stack - --cache=ispn
- kubernetes - --cache-config-file=cache-ispn.xml
- --cache-stack=kubernetes
- --proxy - --proxy
- edge - edge
- --features
- ""
env: env:
- name: KC_HEALTH_ENABLED - name: KC_HEALTH_ENABLED
value: "true" value: "true"
- name: KC_HOSTNAME
value: keycloak.example.com
- name: JAVA_OPTS_APPEND
value: -Djgroups.dns.query=RELEASE-NAME-keycloak-headless.NAMESPACE.svc.cluster.local
- name: KC_DB
value: postgres
- name: KC_DB_USERNAME
valueFrom:
secretKeyRef:
key: database-username
name: RELEASE-NAME-keycloak
optional: false
- name: KC_DB_PASSWORD
valueFrom:
secretKeyRef:
key: database-password
name: RELEASE-NAME-keycloak
optional: false
- name: KC_DB_URL
valueFrom:
secretKeyRef:
key: database-url
name: RELEASE-NAME-keycloak
optional: false
image: quay.io/keycloak/keycloak:4.5.6 image: quay.io/keycloak/keycloak:4.5.6
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
livenessProbe: livenessProbe:
...@@ -57,6 +82,7 @@ should match snapshot: ...@@ -57,6 +82,7 @@ should match snapshot:
cpu: 100m cpu: 100m
memory: 1Gi memory: 1Gi
securityContext: securityContext:
allowPrivilegeEscalation: false
capabilities: capabilities:
drop: drop:
- ALL - ALL
...@@ -67,17 +93,17 @@ should match snapshot: ...@@ -67,17 +93,17 @@ should match snapshot:
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
app.kubernetes.io/instance: RELEASE-NAME labels:
app.kubernetes.io/managed-by: Helm app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: keycloak app.kubernetes.io/managed-by: Helm
app.kubernetes.io/version: 4.5.6 app.kubernetes.io/name: keycloak
helm.sh/chart: keycloak-1.2.3 app.kubernetes.io/version: 4.5.6
labels: null helm.sh/chart: keycloak-1.2.3
name: RELEASE-NAME-keycloak name: RELEASE-NAME-keycloak
stringData: stringData:
database-password: null database-password: example-db-password
database-url: null database-url: example-db-url
database-username: null database-username: example-db-user
type: Opaque type: Opaque
3: | 3: |
apiVersion: v1 apiVersion: v1
...@@ -101,6 +127,27 @@ should match snapshot: ...@@ -101,6 +127,27 @@ should match snapshot:
app.kubernetes.io/name: keycloak app.kubernetes.io/name: keycloak
type: ClusterIP type: ClusterIP
4: | 4: |
apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: keycloak
app.kubernetes.io/version: 4.5.6
helm.sh/chart: keycloak-1.2.3
name: RELEASE-NAME-keycloak-headless
spec:
clusterIP: None
ports:
- name: ping
port: 7800
protocol: TCP
targetPort: 7800
selector:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: keycloak
5: |
apiVersion: v1 apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
......
...@@ -6,6 +6,12 @@ templates: ...@@ -6,6 +6,12 @@ templates:
- serviceaccount.yaml - serviceaccount.yaml
tests: tests:
- it: should match snapshot - it: should match snapshot
set:
keycloak:
database:
username: example-db-user
password: example-db-password
url: example-db-url
chart: chart:
version: 1.2.3 version: 1.2.3
appVersion: 4.5.6 appVersion: 4.5.6
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment