Skip to content

Commit

Permalink
chore(ci): remove prefixes on values call
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtieReus committed Oct 24, 2024
1 parent 33e99cc commit f6c6141
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 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.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 }}
"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 }}
}
10 changes: 5 additions & 5 deletions charts/dashboard/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
matchLabels:
app: dashboard
revisionHistoryLimit: 3
replicas: "{{ required ".Values.dashboard.replicas missing" .Values.dashboard.replicas }}
replicas: "{{ required ".Values.replicas missing" .Values.replicas }}
strategy:
type: RollingUpdate
rollingUpdate:
Expand All @@ -26,15 +26,15 @@ spec:
app: dashboard
annotations:
checksum/props-cm: {{ include (print $.Template.BasePath "/dashboard-props-cm.yaml") . | sha256sum }}
imageDigest: {{ .Values.dashboard.image.digest | quote }}
imageDigest: {{ .Values.image.digest | quote }}
spec:
# The preStop hook below sleeps 30 seconds, extend the gracePeriod accordingly
terminationGracePeriodSeconds: 60
containers:
- name: dashboard
image: "{{ required ".Values.dashboard.image.repository missing" .Values.dashboard.image.repository }}:{{ required ".Values.dashboard.image.tag missing" .Values.dashboard.image.tag }}"
# image: "{{ required ".Values.dashboard.image.repository missing" .Values.dashboard.image.repository }}@{{ .Values.image.digest }}"
imagePullPolicy: {{ required ".Values.dashboard.image.pullPolicy missing" .Values.dashboard.image.pullPolicy }}
image: "{{ required ".Values.image.repository missing" .Values.image.repository }}:{{ required ".Values.image.tag missing" .Values.image.tag }}"
# image: "{{ required ".Values.image.repository missing" .Values.image.repository }}@{{ .Values.image.digest }}"
imagePullPolicy: {{ required ".Values.image.pullPolicy missing" .Values.image.pullPolicy }}
ports:
- name: dashboard
containerPort: 80
Expand Down
8 changes: 4 additions & 4 deletions charts/dashboard/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
spec:
ingressClassName: {{ required ".Values.ingress.className missing" .Values.ingress.className }}
rules:
- host: "test-{{ required ".Values.dashboard.host missing" .Values.dashboard.host }}"
- host: "test-{{ required ".Values.host missing" .Values.host }}"
http:
paths:
- path: /
Expand All @@ -22,7 +22,7 @@ spec:
name: {{ .Release.Name }}-dashboard
port:
number: 80
- host: "*.test-{{ required ".Values.dashboard.host missing" .Values.dashboard.host }}"
- host: "*.test-{{ required ".Values.host missing" .Values.host }}"
http:
paths:
- path: /
Expand All @@ -35,6 +35,6 @@ spec:

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

0 comments on commit f6c6141

Please sign in to comment.