Skip to content

Commit

Permalink
Fix install and probe bugs (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
willmostly authored May 23, 2024
1 parent c00dc26 commit 2b423b1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions helm/trino-gateway/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 2b423b1

Please sign in to comment.