Skip to content

Commit

Permalink
Merge pull request #13 from esgf2-us/update-v1.1.1
Browse files Browse the repository at this point in the history
Update chart for metagrid v1.1.1
  • Loading branch information
jasonb5 authored Jul 8, 2024
2 parents 63169c6 + 196d323 commit 6960553
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
chart/charts
**/.cr-release-packages/**
temp/
2 changes: 1 addition & 1 deletion chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ Django CORS_ORIGIN_WHITELIST
{{- with .affinity }}
affinity:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end -}}
containers:
- name: {{ .name }}
{{- with .args }}
Expand Down
10 changes: 10 additions & 0 deletions chart/templates/django/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ metadata:
labels:
{{- include "metagrid.labels" . | nindent 4 }}
app.kubernetes.io/component: django
{{- with .Values.django.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
annotations:
{{- $configmap := include (print $.Template.BasePath "/django/configmap.yaml") . }}
{{- $secret := include (print $.Template.BasePath "/django/secret.yaml") . }}
checksum/config: {{ print $configmap $secret | sha256sum }}
{{- with .Values.django.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if not .Values.django.autoscaling.enabled }}
replicas: {{ .Values.django.replicaCount }}
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/django/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
app.kubernetes.io/component: django
data:
{{- if eq .Values.authType "globus" }}
GLOBUS_CLIENT_SECRET: {{ .Values.globus.backend.clientSecret | b64enc }}
GLOBUS_CLIENT_SECRET: {{ default "" .Values.globus.backend.clientSecret | b64enc }}
{{- end }}
DJANGO_SECRET_KEY: {{ default (randBytes 50) .Values.django.secretKey | b64enc }}
DATABASE_URL: {{ include "metagrid.pg_uri" . | b64enc }}
Expand Down
8 changes: 8 additions & 0 deletions chart/templates/react/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ metadata:
labels:
{{- include "metagrid.labels" . | nindent 4 }}
app.kubernetes.io/component: react
{{- with .Values.react.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/react/configmap.yaml") . | sha256sum }}
{{- with .Values.react.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if not .Values.react.autoscaling.enabled }}
replicas: {{ .Values.react.replicaCount }}
Expand Down
18 changes: 15 additions & 3 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,17 @@ react:
# -- Container pull policy
pullPolicy: Always
# -- Container tag
tag: latest
tag: v1.1.1-pre

nameOverride: ""
fullnameOverride: ""

# -- Extra labels
labels: {}

# -- Extra annotations
annotations: {}

# -- Extra pod annotations
podAnnotations: {}

Expand Down Expand Up @@ -186,11 +192,17 @@ django:
# -- Image pull policy
pullPolicy: Always
# -- Container tag
tag: latest
tag: v1.1.1-pre

nameOverride: ""
fullnameOverride: ""


# -- Extra labels
labels: {}

# -- Extra annotations
annotations: {}

# -- Extra pod annotations
podAnnotations: {}

Expand Down

0 comments on commit 6960553

Please sign in to comment.