Skip to content

Commit

Permalink
chore(ci): adds dashboard scope to the values
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtieReus committed Oct 24, 2024
1 parent 5858836 commit 193f904
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions charts/dashboard/templates/dashboard-props-cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ metadata:
data:
appProps.json: |
{
"authIssuerUrl": {{ required ".Values.oidcIssuerUrl" .Values.oidcIssuerUrl | quote }},
"authClientId": {{ required ".Values.oidcClientId" .Values.oidcClientId | quote }},
"currentHost": {{ required ".Values.juno.assetServerURL missing" .Values.juno.assetServerURL | quote}},
"apiEndpoint": {{ required ".Values.k8sApiEndpoint" .Values.k8sApiEndpoint | quote }},
"environment": {{ required ".Values.environment" .Values.environment | quote }},
"demoUserToken": {{ required ".Values.demoUser.token" .Values.demoUser.token | quote }}
"authIssuerUrl": {{ required ".Values.dashboard.oidcIssuerUrl" .Values.dashboard.oidcIssuerUrl | quote }},
"authClientId": {{ required ".Values.dashboard.oidcClientId" .Values.dashboard.oidcClientId | quote }},
"currentHost": {{ required ".Values.dashboard.juno.assetServerURL missing" .Values.dashboard.juno.assetServerURL | quote}},
"apiEndpoint": {{ required ".Values.dashboard.k8sApiEndpoint" .Values.dashboard.k8sApiEndpoint | quote }},
"environment": {{ required ".Values.dashboard.environment" .Values.dashboard.environment | quote }},
"demoUserToken": {{ required ".Values.dashboard.demoUser.token" .Values.dashboard.demoUser.token | quote }}
}
4 changes: 2 additions & 2 deletions charts/dashboard/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ spec:
terminationGracePeriodSeconds: 60
containers:
- name: dashboard
image: "{{ required ".Values.image.repository missing" .Values.image.repository }}:{{ required ".Values.image.tag missing" .Values.image.tag }}"
imagePullPolicy: {{ required ".Values.image.pullPolicy missing" .Values.image.pullPolicy }}
image: "{{ required ".Values.dashboard.image.repository missing" .Values.dashboard.image.repository }}:{{ required ".Values.dashboard.image.tag missing" .Values.dashboard.image.tag }}"
imagePullPolicy: {{ required ".Values.dashboard.image.pullPolicy missing" .Values.dashboard.image.pullPolicy }}
ports:
- name: dashboard
containerPort: 80
Expand Down
10 changes: 5 additions & 5 deletions charts/dashboard/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ metadata:
annotations:
kubernetes.io/tls-acme: "true"
spec:
ingressClassName: {{ required ".Values.ingress.className missing" .Values.ingress.className }}
ingressClassName: {{ required ".Values.dashboard.ingress.className missing" .Values.dashboard.ingress.className }}
rules:
- host: "test-{{ required ".Values.host missing" .Values.host }}"
- host: "test-{{ required ".Values.dashboard.host missing" .Values.dashboard.host }}"
http:
paths:
- path: /
Expand All @@ -22,7 +22,7 @@ spec:
name: {{ .Release.Name }}-dashboard
port:
number: 80
- host: "*.{{ required ".Values.host missing" .Values.host }}"
- host: "*.{{ required ".Values.dashboard.host missing" .Values.dashboard.host }}"
http:
paths:
- path: /
Expand All @@ -35,6 +35,6 @@ spec:

tls:
- hosts:
- "{{ required ".Values.host missing" .Values.host }}"
- "*.{{ required ".Values.host missing" .Values.host }}"
- "{{ required ".Values.dashboard.host missing" .Values.dashboard.host }}"
- "*.{{ required ".Values.dashboard.host missing" .Values.dashboard.host }}"
secretName: "tls-{{ .Release.Name }}-dashboard"

0 comments on commit 193f904

Please sign in to comment.