Skip to content

Commit

Permalink
improve quote usage
Browse files Browse the repository at this point in the history
  • Loading branch information
acelinkio authored and zoriya committed Oct 7, 2024
1 parent 3c22637 commit a33fbe5
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 38 deletions.
4 changes: 2 additions & 2 deletions chart/templates/autosync/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ spec:
{{- end }}
env:
- name: RABBITMQ_HOST
value: {{ .Values.global.rabbitmq.host }}
value: {{ .Values.global.rabbitmq.host | quote }}
- name: RABBITMQ_PORT
value: "{{ .Values.global.rabbitmq.port }}"
value: {{ .Values.global.rabbitmq.port | quote }}
- name: RABBITMQ_DEFAULT_USER
valueFrom:
secretKeyRef:
Expand Down
32 changes: 16 additions & 16 deletions chart/templates/back/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ spec:
{{- end }}
env:
- name: TRANSCODER_URL
value: http://{{ include "kyoo.transcoder.fullname" . }}:7666
value: "http://{{ include "kyoo.transcoder.fullname" . }}:7666"
- name: PUBLIC_URL
value: {{ .Values.kyoo.address }}
value: {{ .Values.kyoo.address | quote }}
- name: REQUIRE_ACCOUNT_VERIFICATION
value: "{{ .Values.kyoo.requireAccountVerification }}"
value: {{ .Values.kyoo.requireAccountVerification | quote }}
- name: DEFAULT_PERMISSIONS
value: {{ .Values.kyoo.defaultPermissions }}
value: {{ .Values.kyoo.defaultPermissions | quote }}
- name: UNLOGGED_PERMISSIONS
value: "{{ .Values.kyoo.unloggedPermissions }}"
value: {{ .Values.kyoo.unloggedPermissions | quote}}
- name: KYOO_APIKEYS
valueFrom:
secretKeyRef:
Expand All @@ -103,9 +103,9 @@ spec:
- name: POSTGRES_DB
value: {{ .Values.global.postgres.kyoo_back.database }}
- name: POSTGRES_SERVER
value: {{ .Values.global.postgres.kyoo_back.host }}
value: {{ .Values.global.postgres.kyoo_back.host | quote }}
- name: POSTGRES_PORT
value: "{{ .Values.global.postgres.kyoo_back.port }}"
value: {{ .Values.global.postgres.kyoo_back.port | quote }}
- name: RABBITMQ_DEFAULT_USER
valueFrom:
secretKeyRef:
Expand All @@ -117,9 +117,9 @@ spec:
key: {{ .Values.global.rabbitmq.kyoo_back.passwordKey }}
name: {{ .Values.global.rabbitmq.kyoo_back.existingSecret }}
- name: RABBITMQ_HOST
value: {{ .Values.global.rabbitmq.host }}
value: {{ .Values.global.rabbitmq.host | quote }}
- name: RABBITMQ_PORT
value: "{{ .Values.global.rabbitmq.port }}"
value: {{ .Values.global.rabbitmq.port | quote }}
- name: MEILI_HOST
value: "{{ .Values.global.meilisearch.proto }}://{{ .Values.global.meilisearch.host }}:{{ .Values.global.meilisearch.port }}"
- name: MEILI_MASTER_KEY
Expand All @@ -129,9 +129,9 @@ spec:
name: {{ .Values.global.meilisearch.kyoo_back.existingSecret }}
{{- if .Values.kyoo.oidc.enabled }}
- name: OIDC_SERVICE_NAME
value: {{ .Values.kyoo.oidc.name }}
value: {{ .Values.kyoo.oidc.name | quote }}
- name: OIDC_SERVICE_LOGO
value: {{ .Values.kyoo.oidc.logo }}
value: {{ .Values.kyoo.oidc.logo | quote }}
- name: OIDC_SERVICE_CLIENTID
valueFrom:
secretKeyRef:
Expand All @@ -143,15 +143,15 @@ spec:
key: {{ .Values.kyoo.oidc.clientSecretKey }}
name: {{ .Values.kyoo.oidc.existingSecret }}
- name: OIDC_SERVICE_AUTHORIZATION
value: {{ .Values.kyoo.oidc.authorizationAddress }}
value: {{ .Values.kyoo.oidc.authorizationAddress | quote }}
- name: OIDC_SERVICE_TOKEN
value: {{ .Values.kyoo.oidc.tokenAddress }}
value: {{ .Values.kyoo.oidc.tokenAddress | quote }}
- name: OIDC_SERVICE_PROFILE
value: {{ .Values.kyoo.oidc.profileAddress }}
value: {{ .Values.kyoo.oidc.profileAddress | quote }}
- name: OIDC_SERVICE_SCOPE
value: {{ .Values.kyoo.oidc.scope }}
value: {{ .Values.kyoo.oidc.scope | quote }}
- name: OIDC_SERVICE_AUTHMETHOD
value: {{ .Values.kyoo.oidc.authMethod }}
value: {{ .Values.kyoo.oidc.authMethod | quote }}
{{- end }}
{{- with (concat .Values.global.extraEnv .Values.back.kyoo_back.extraEnv) }}
{{- toYaml . | nindent 12 }}
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/front/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
{{- end }}
env:
- name: KYOO_URL
value: http://{{ include "kyoo.back.fullname" . }}:5000
value: "http://{{ include "kyoo.back.fullname" . }}:5000"
{{- with (concat .Values.global.extraEnv .Values.front.kyoo_front.extraEnv) }}
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
8 changes: 4 additions & 4 deletions chart/templates/matcher/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ spec:
key: {{ .Values.kyoo.apikey.apikeyKey }}
name: {{ .Values.kyoo.apikey.existingSecret }}
- name: KYOO_URL
value: http://{{ include "kyoo.back.fullname" . }}:5000
value: "http://{{ include "kyoo.back.fullname" . }}:5000"
- name: LIBRARY_LANGUAGES
value: {{ .Values.kyoo.languages }}
value: {{ .Values.kyoo.languages | quote }}
- name: THEMOVIEDB_APIKEY
valueFrom:
secretKeyRef:
Expand All @@ -72,9 +72,9 @@ spec:
key: {{ .Values.contentdatabase.tvdb.pinKey }}
name: {{ .Values.contentdatabase.tvdb.existingSecret }}
- name: RABBITMQ_HOST
value: {{ .Values.global.rabbitmq.host }}
value: {{ .Values.global.rabbitmq.host | quote }}
- name: RABBITMQ_PORT
value: "{{ .Values.global.rabbitmq.port }}"
value: {{ .Values.global.rabbitmq.port | quote }}
- name: RABBITMQ_DEFAULT_USER
valueFrom:
secretKeyRef:
Expand Down
10 changes: 5 additions & 5 deletions chart/templates/scanner/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,20 @@ spec:
- name: SCANNER_LIBRARY_ROOT
value: /data
- name: LIBRARY_IGNORE_PATTERN
value: "{{ .Values.kyoo.libraryIgnorePattern }}"
value: {{ .Values.kyoo.libraryIgnorePattern | quote }}
- name: KYOO_APIKEYS
valueFrom:
secretKeyRef:
key: {{ .Values.kyoo.apikey.apikeyKey }}
name: {{ .Values.kyoo.apikey.existingSecret }}
- name: KYOO_URL
value: http://{{ include "kyoo.back.fullname" . }}:5000
value: "http://{{ include "kyoo.back.fullname" . }}:5000"
- name: LIBRARY_LANGUAGES
value: {{ .Values.kyoo.languages }}
value: {{ .Values.kyoo.languages | quote }}
- name: RABBITMQ_HOST
value: {{ .Values.global.rabbitmq.host }}
value: {{ .Values.global.rabbitmq.host | quote }}
- name: RABBITMQ_PORT
value: "{{ .Values.global.rabbitmq.port }}"
value: {{ .Values.global.rabbitmq.port | quote }}
- name: RABBITMQ_DEFAULT_USER
valueFrom:
secretKeyRef:
Expand Down
20 changes: 10 additions & 10 deletions chart/templates/transcoder/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ spec:
{{- end }}
env:
- name: GOCODER_HWACCEL
value: {{ .Values.kyoo.transcoderAcceleration }}
value: {{ .Values.kyoo.transcoderAcceleration | quote }}
- name: GOCODER_PRESET
value: {{ .Values.kyoo.transcoderPreset }}
value: {{ .Values.kyoo.transcoderPreset | quote }}
- name: GOCODER_CACHE_ROOT
value: /cache
value: "/cache"
- name: GOCODER_METADATA_ROOT
value: /metadata
value: "/metadata"
- name: GOCODER_PREFIX
value: /video
value: "/video"
- name: GOCODER_SAFE_PATH
value: /data
value: "/data"
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
Expand All @@ -70,13 +70,13 @@ spec:
key: {{ .Values.global.postgres.kyoo_transcoder.kyoo_transcoder.passwordKey }}
name: {{ .Values.global.postgres.kyoo_transcoder.kyoo_transcoder.existingSecret }}
- name: POSTGRES_DB
value: {{ .Values.global.postgres.kyoo_transcoder.database }}
value: {{ .Values.global.postgres.kyoo_transcoder.database | quote }}
- name: POSTGRES_SERVER
value: {{ .Values.global.postgres.kyoo_transcoder.host }}
value: {{ .Values.global.postgres.kyoo_transcoder.host | quote }}
- name: POSTGRES_PORT
value: "{{ .Values.global.postgres.kyoo_transcoder.port }}"
value: {{ .Values.global.postgres.kyoo_transcoder.port | quote }}
- name: POSTGRES_SCHEMA
value: "{{ .Values.global.postgres.kyoo_transcoder.schema }}"
value: {{ .Values.global.postgres.kyoo_transcoder.schema | quote }}
{{- with (concat .Values.global.extraEnv .Values.transcoder.kyoo_transcoder.extraEnv) }}
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down

0 comments on commit a33fbe5

Please sign in to comment.