-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Frontend font support and font deployment (#2493)
Co-authored-by: Jim Grady <[email protected]>
- Loading branch information
1 parent
6d85b1f
commit 98784f8
Showing
62 changed files
with
1,697 additions
and
375 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
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 |
---|---|---|
|
@@ -22,7 +22,7 @@ awsEcr: | |
cronJobName: ecr-cred-helper-cron | ||
dockerEmail: [email protected] | ||
image: sillsdev/aws-kubectl | ||
imageTag: "0.2.1" | ||
imageTag: "0.3.0" | ||
jobName: ecr-cred-helper | ||
schedule: "0 */8 * * *" | ||
secretsName: aws-ecr-credentials | ||
|
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
49 changes: 49 additions & 0 deletions
49
deploy/helm/thecombine/charts/maintenance/templates/cronjob-weekly-get-fonts.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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{{- if empty .Values.updateFontsSchedule | not }} | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
name: update-fonts | ||
namespace: {{ .Release.Namespace | quote }} | ||
spec: | ||
concurrencyPolicy: Allow | ||
failedJobsHistoryLimit: 1 | ||
jobTemplate: | ||
metadata: | ||
creationTimestamp: null | ||
spec: | ||
ttlSecondsAfterFinished: 86400 | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
spec: | ||
serviceAccountName: {{ .Values.serviceAccount.name }} | ||
containers: | ||
- image: sillsdev/aws-kubectl:0.3.0 | ||
imagePullPolicy: Always | ||
name: update-fonts | ||
command: | ||
- kubectl | ||
args: | ||
- -n | ||
- thecombine | ||
- exec | ||
- deployment/maintenance | ||
- -- | ||
- get-fonts.sh | ||
resources: {} | ||
securityContext: | ||
capabilities: {} | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
{{- if ne .Values.global.pullSecretName "None" }} | ||
imagePullSecrets: | ||
- name: {{ .Values.global.pullSecretName }} | ||
{{- end }} | ||
dnsPolicy: ClusterFirst | ||
restartPolicy: Never | ||
schedulerName: default-scheduler | ||
terminationGracePeriodSeconds: 30 | ||
schedule: {{ .Values.updateFontsSchedule }} | ||
successfulJobsHistoryLimit: 1 | ||
suspend: false | ||
{{- 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
55 changes: 55 additions & 0 deletions
55
deploy/helm/thecombine/charts/maintenance/templates/get-fonts-hook.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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: "install-fonts" | ||
namespace: {{ .Release.Namespace | quote }} | ||
labels: | ||
app.kubernetes.io/managed-by: {{ .Release.Service | quote }} | ||
app.kubernetes.io/instance: {{ .Release.Name | quote }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion }} | ||
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
annotations: | ||
# This is what defines this resource as a hook. Without this line, the | ||
# job is considered part of the release. | ||
"helm.sh/hook": post-install, post-upgrade | ||
"helm.sh/hook-delete-policy": before-hook-creation | ||
spec: | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
name: "{{ .Release.Name }}" | ||
labels: | ||
app.kubernetes.io/managed-by: {{ .Release.Service | quote }} | ||
app.kubernetes.io/instance: {{ .Release.Name | quote }} | ||
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
spec: | ||
serviceAccountName: {{ .Values.serviceAccount.name }} | ||
containers: | ||
- image: sillsdev/aws-kubectl:0.3.0 | ||
imagePullPolicy: Always | ||
name: "install-fonts" | ||
command: | ||
- kubectl | ||
args: | ||
- -n | ||
- thecombine | ||
- exec | ||
- deployment/maintenance | ||
- -- | ||
- /usr/bin/python3 | ||
- /home/user/.local/bin/get_fonts.py | ||
{{- if .Values.localLangList }} | ||
- --langs | ||
{{- range $lang := .Values.localLangList }} | ||
- {{ $lang | quote }} | ||
{{- end }} | ||
{{- end }} | ||
resources: {} | ||
securityContext: | ||
capabilities: {} | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
dnsPolicy: Default | ||
restartPolicy: Never | ||
schedulerName: default-scheduler | ||
terminationGracePeriodSeconds: 30 |
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
13 changes: 13 additions & 0 deletions
13
deploy/helm/thecombine/templates/font-storage-persistent-volume-claim.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
creationTimestamp: null | ||
name: font-data | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
accessModes: | ||
- {{ .Values.global.fontStorageAccessMode }} | ||
resources: | ||
requests: | ||
storage: {{ .Values.global.fontStorageSize | quote }} | ||
status: {} |
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
Oops, something went wrong.