diff --git a/helm/trino-gateway/templates/deployment.yaml b/helm/trino-gateway/templates/deployment.yaml index 03b8945b5..59dc2d7f4 100644 --- a/helm/trino-gateway/templates/deployment.yaml +++ b/helm/trino-gateway/templates/deployment.yaml @@ -17,7 +17,7 @@ spec: # Include the version of trino-gateway-configuration as an input to the deployment checksum. This causes pods to restart on helm update # whether the chart `config` is updated or if one of the configuration secrets is updated. Helm template must be run with the # --dry-run=server option to prevent a nil pointer - checksum/config: {{ (lookup "v1" "Secret" .Release.Namespace "trino-gateway-configuration").metadata.resourceVersion | sha256sum}} + checksum/config: {{ (coalesce (lookup "v1" "Secret" .Release.Namespace "trino-gateway-configuration").metadata (dict "resourceVersion" "0")).resourceVersion | sha256sum}} {{- with .Values.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} @@ -68,18 +68,18 @@ spec: httpGet: path: / port: {{ (index .Values.config.server.adminConnectors 0).port}} - initialDelaySeconds: .Values.livenessProbe.initialDelaySeconds - periodSeconds: .Values.livenessProbe.periodSeconds - failureThreshold: .Values.livenessProbe.failureThreshold - timeoutSeconds: .Values.livenessProbe.timeoutSeconds + initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.livenessProbe.periodSeconds }} + failureThreshold: {{ .Values.livenessProbe.failureThreshold }} + timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} readinessProbe: httpGet: path: / port: {{ (index .Values.config.server.adminConnectors 0).port}} - initialDelaySeconds: .Values.readinessProbe.initialDelaySeconds - periodSeconds: .Values.readinessProbe.periodSeconds - failureThreshold: .Values.readinessProbe.failureThreshold - timeoutSeconds: .Values.readinessProbe.timeoutSeconds + initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.readinessProbe.periodSeconds }} + failureThreshold: {{ .Values.readinessProbe.failureThreshold }} + timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} resources: {{- toYaml .Values.resources | nindent 12 }} volumeMounts: