Skip to content

Commit

Permalink
chart: rename kubelet- to kubelet-node-
Browse files Browse the repository at this point in the history
  • Loading branch information
roobre committed May 24, 2022
1 parent ac60f40 commit bc0d448
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/newrelic-infrastructure/templates/kubelet/_naming.tpl
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{{- /* Naming helpers*/ -}}
{{- define "nriKubernetes.kubelet.fullname" -}}
{{- include "newrelic.common.naming.truncateToDNSWithSuffix" (dict "name" (include "nriKubernetes.naming.fullname" .) "suffix" "kubelet-scraper") -}}
{{- include "newrelic.common.naming.truncateToDNSWithSuffix" (dict "name" (include "nriKubernetes.naming.fullname" .) "suffix" "kubelet-node-scraper") -}}
{{- end -}}

{{- define "nriKubernetes.kubelet.fullname.agent" -}}
{{- include "newrelic.common.naming.truncateToDNSWithSuffix" (dict "name" (include "nriKubernetes.naming.fullname" .) "suffix" "kubelet-agent") -}}
{{- include "newrelic.common.naming.truncateToDNSWithSuffix" (dict "name" (include "nriKubernetes.naming.fullname" .) "suffix" "kubelet-node-agent") -}}
{{- end -}}

{{- define "nriKubernetes.kubelet.fullname.integrations" -}}
Expand Down
4 changes: 2 additions & 2 deletions charts/newrelic-infrastructure/tests/podName_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ tests:
template: templates/controlplane/daemonset.yaml
- equal:
path: metadata.name
value: RELEASE-NAME-nrk8s-kubelet-scraper
value: RELEASE-NAME-nrk8s-kubelet-node-scraper
template: templates/kubelet/daemonset.yaml
- it: name is overridden as expected
set:
Expand All @@ -46,5 +46,5 @@ tests:
template: templates/controlplane/daemonset.yaml
- equal:
path: metadata.name
value: fno-kubelet-scraper
value: fno-kubelet-node-scraper
template: templates/kubelet/daemonset.yaml

0 comments on commit bc0d448

Please sign in to comment.