Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Infrastructure GitOps
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Shivering-Isles
Infrastructure GitOps
Commits
f80dbd89
Verified
Commit
f80dbd89
authored
2 years ago
by
Sheogorath
Browse files
Options
Downloads
Patches
Plain Diff
ci(keycloak): Update keycloak helm-chart unit-tests
parent
35013b19
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
charts/keycloak/tests/__snapshot__/snapshot_test.yaml.snap
+60
-13
60 additions, 13 deletions
charts/keycloak/tests/__snapshot__/snapshot_test.yaml.snap
charts/keycloak/tests/snapshot_test.yaml
+6
-0
6 additions, 0 deletions
charts/keycloak/tests/snapshot_test.yaml
with
66 additions
and
13 deletions
charts/keycloak/tests/__snapshot__/snapshot_test.yaml.snap
+
60
−
13
View file @
f80dbd89
...
@@ -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:
nul
l
database-url:
example-db-ur
l
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:
...
...
This diff is collapsed.
Click to expand it.
charts/keycloak/tests/snapshot_test.yaml
+
6
−
0
View file @
f80dbd89
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment