Skip to content

Commit

Permalink
Update deployment-worker.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
luismacosta authored Feb 4, 2025
1 parent 72e54d4 commit 575493c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/trino/templates/deployment-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
template:
metadata:
annotations:
{{- if or .Values.catalogs .Values.additionalCatalogs (and (kindIs "slice" .Values.catalogsSecrets) (gt (len .Values.catalogsSecrets) 0)) }}
{{- if or .Values.catalogs .Values.additionalCatalogs (and (.Values.catalogs) (gt (len .Values.catalogs) 0)) }}
checksum/catalog-config: {{ include (print $.Template.BasePath "/configmap-catalog.yaml") . | sha256sum }}
{{- end }}
checksum/worker-config: {{ include (print $.Template.BasePath "/configmap-worker.yaml") . | sha256sum }}
Expand Down Expand Up @@ -59,7 +59,7 @@ spec:
- name: config-volume
configMap:
name: {{ template "trino.worker" . }}
{{- if or .Values.catalogs .Values.additionalCatalogs (and (kindIs "slice" .Values.catalogsSecrets) (gt (len .Values.catalogsSecrets) 0)) }}
{{- if or .Values.catalogs .Values.additionalCatalogs (and (.Values.catalogs) (gt (len .Values.catalogs) 0)) }}
- name: catalog-volume
configMap:
name: {{ template "trino.catalog" . }}
Expand Down Expand Up @@ -126,7 +126,7 @@ spec:
volumeMounts:
- mountPath: {{ .Values.server.config.path }}
name: config-volume
{{- if or .Values.catalogs .Values.additionalCatalogs (and (kindIs "slice" .Values.catalogsSecrets) (gt (len .Values.catalogsSecrets) 0)) }}
{{- if or .Values.catalogs .Values.additionalCatalogs (and (.Values.catalogs) (gt (len .Values.catalogs) 0)) }}
- mountPath: {{ .Values.server.config.path }}/catalog
name: catalog-volume
{{- end }}
Expand Down

0 comments on commit 575493c

Please sign in to comment.