Skip to content

Commit

Permalink
feat: compute config checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Sekamanya authored and Michael Sekamanya committed Jun 3, 2023
1 parent 4bba317 commit 9bd1d1c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: cloud-agent
description: A Helm chart for Ametnes Cloud Agent
type: application
version: 0.1.33
version: 0.1.34
appVersion: 0.3.2731
dependencies:
- name: memcached
Expand Down
5 changes: 4 additions & 1 deletion charts/agent/templates/agent-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ spec:
{{- end }}
template:
metadata:
{{- with .podAnnotations }}
annotations:
{{- if .config }}
checksum/config: {{ sha256sum (toYaml .config) }}
{{- end }}
{{- with .podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
Expand Down
3 changes: 1 addition & 2 deletions charts/agent/templates/agent-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ $ReleaseName }}-{{ .Values.agent.name }}
namespace: {{ $ReleaseNamespace }}
name: {{ $ReleaseNamespace }}-{{ $ReleaseName }}
labels:
{{- with .Values.agent.labels }}
{{- toYaml . | nindent 4 }}
Expand Down

0 comments on commit 9bd1d1c

Please sign in to comment.