Skip to content

Commit

Permalink
[super-agent-deployment] Redeploy super-agent on configmap changes (N…
Browse files Browse the repository at this point in the history
…R-182327) (#1217)

#### Is this a new chart

No

#### What this PR does / why we need it:

This allows the super-agent to redeploy when configuration changes. 

#### Special notes for your reviewer:

#### Checklist
- [x] Chart Version bumped
- [ ] Variables are documented in the README.md
- [x] Title of the PR starts with chart name (e.g. `[mychartname]`)
  • Loading branch information
kilokang authored Dec 14, 2023
1 parent c46b025 commit be1c001
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/super-agent-deployment/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: super-agent-deployment
description: A Helm chart to install New Relic Super agent on Kubernetes

type: application
version: 0.0.3-beta
version: 0.0.4-beta
appVersion: nightly # TODO: Change this with a proper version of the image.

dependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ spec:
{{- include "newrelic.common.labels.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
checksum/agent-config: {{ include (print $.Template.BasePath "/configmap-superagent-config.yaml") . | sha256sum }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
labels:
{{- include "newrelic.common.labels.podLabels" . | nindent 8 }}
spec:
Expand Down
3 changes: 3 additions & 0 deletions charts/super-agent-deployment/tests/securityContext_test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
suite: test securityContext
templates:
- templates/deployment-superagent.yaml
- templates/configmap-superagent-config.yaml
tests:
- it: securityContext.runAsUser is populated with defaults
set:
cluster: test
asserts:
- equal:
path: spec.template.spec.containers[0].securityContext.runAsUser
Expand Down

0 comments on commit be1c001

Please sign in to comment.