Skip to content

Commit

Permalink
fix: deployment graphql-engine checksum annotations (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvidal-sysadmin authored Sep 30, 2024
1 parent 3307c01 commit c13c617
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 14 deletions.
4 changes: 0 additions & 4 deletions charts/graphql-engine/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ kind: ConfigMap
metadata:
name: {{ template "common.configMapName" $ }}
namespace: {{ template "common.namespace" $ }}
annotations:
{{- if not $.Values.disableAnnotationTimestamp }}
deployment-timestamp: "{{ date "20060102150405" now }}"
{{- end }}
data:
HASURA_GRAPHQL_ENABLE_CONSOLE: {{ coalesce .enableConsole false | quote }}
{{- range $key, $value := (coalesce .extraConfigs .additionalConfigs) }}
Expand Down
5 changes: 3 additions & 2 deletions charts/graphql-engine/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ spec:
template:
metadata:
annotations:
{{- if not .Values.disableAnnotationTimestamp }}
deployment-timestamp: "{{ date "20060102150405" now }}"
{{- if or .Values.secret.enabled .Values.postgres.enabled }}
checksum/secret: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
{{- end }}
checksum/configmap: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- if .Values.annotations }}
{{- toYaml .Values.annotations | nindent 8 }}
{{- end }}
Expand Down
4 changes: 0 additions & 4 deletions charts/graphql-engine/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ kind: Secret
metadata:
name: {{ template "common.secretsName" $ }}
namespace: {{ template "common.namespace" $ }}
annotations:
{{- if not $.Values.disableAnnotationTimestamp }}
deployment-timestamp: "{{ date "20060102150405" now }}"
{{- end }}
data:
{{- if coalesce .metadataDbUrl ($.Values.config).metadataOnly }}
HASURA_GRAPHQL_METADATA_DATABASE_URL: {{ include "db.url" $ | b64enc | quote }}
Expand Down
4 changes: 0 additions & 4 deletions charts/graphql-engine/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,6 @@ serviceAccount:
##
annotations: {}

## Disable the deploy timestamp annotation to skip force rollout
##
disableAnnotationTimestamp: false

## The deployment strategy to use to replace existing pods with new ones.
## DeploymentStrategy describes how to replace existing pods with new ones.
strategy: {}
Expand Down

0 comments on commit c13c617

Please sign in to comment.