-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create application chart instead that create openshift artifacts
- Loading branch information
Showing
8 changed files
with
67 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 27 additions & 15 deletions
42
helm/nginx-sidecar-lib/templates/_deployment-container.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,33 @@ | ||
{{- /* | ||
This template is meant to be injected inside a deployment object, as an additional container | ||
These template are meant to be injected inside a deployment object, as an additional container | ||
*/}} | ||
|
||
{{- define "nginx-sidecar-lib.deployment-container.tpl" -}} | ||
name: {{ .Chart.Name }}-nginx | ||
image: "{{ .Values.nginxSidecar.image.repository }}:{{ .Values.nginxSidecar.image.tag }}" | ||
imagePullPolicy: {{ .Values.nginxSidecar.image.pullPolicy }} | ||
ports: | ||
- containerPort: {{ .Values.nginxSidecar.port }} | ||
volumeMounts: | ||
- name: nginx-configs | ||
mountPath: /etc/nginx/conf.d | ||
- mountPath: /home/.acme.sh | ||
name: acme-home | ||
- mountPath: /home/.well-known/acme-challenge | ||
name: acme-challenge | ||
- name: {{ .Chart.Name }}-nginx | ||
image: "{{ .Values.nginxSidecar.image.repository }}:{{ .Values.nginxSidecar.image.tag }}" | ||
imagePullPolicy: {{ .Values.nginxSidecar.image.pullPolicy }} | ||
ports: | ||
- containerPort: {{ .Values.nginxSidecar.port }} | ||
volumeMounts: | ||
- name: nginx-configs | ||
mountPath: /etc/nginx/conf.d | ||
{{ include "nginx-sidecar-lib.deployment-mounts.tpl" . | indent 4 }} | ||
{{- end -}} | ||
{{- define "nginx-sidecar-lib.deployment-container" -}} | ||
{{- include "nginx-sidecar-lib.util.merge" (append . "nginx-sidecar-lib.deployment-container.tpl") -}} | ||
|
||
|
||
{{- define "nginx-sidecar-lib.deployment-mounts.tpl" -}} | ||
- mountPath: /home/.acme.sh | ||
name: acme-home | ||
- mountPath: /home/.well-known/acme-challenge | ||
name: acme-challenge | ||
{{- end -}} | ||
|
||
|
||
{{- define "nginx-sidecar-lib.deployment-volumes.tpl" -}} | ||
- name: acme-home | ||
persistentVolumeClaim: | ||
claimName: {{ template "nginx-sidecar-lib.fullname" . }}-acme-home | ||
- name: acme-challenge | ||
persistentVolumeClaim: | ||
claimName: {{ template "nginx-sidecar-lib.fullname" . }}-acme-challenge | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
enable: false | ||
image: | ||
repository: gcr.io/ggl-cas-storage/cas-nginx | ||
tag: latest | ||
pullPolicy: Always | ||
# set to false to deploy the application with an insecure route, | ||
# and issue an SSL certificate using acme.sh | ||
sslTermination: true | ||
# If provided, the acme issue/renewal scripts will use a custom server | ||
# Otherwise it defaults to Let's Encrypt | ||
caServerSecret: ~ #pragma: allowlist secret | ||
caServerKey: ~ | ||
caAccountEmail: ggircs@gov.bc.ca | ||
storageClassName: netapp-file-standard | ||
renewalDays: 60 | ||
certTargetHost: "example-climate-action-secretariat.gov.bc.ca" |