Skip to content

Commit 2834566

Browse files
committed
Bump to 0.6.0, change chart name
1 parent a107f73 commit 2834566

14 files changed

+38
-38
lines changed
File renamed without changes.

charts/inventory-agent/Chart.yaml renamed to charts/nhi-explorer/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
apiVersion: v2
3-
name: inventory-agent
3+
name: nhi-explorer
44
description: A Helm chart for Kubernetes
55

66
# A chart can be either an 'application' or a 'library' chart.

charts/inventory-agent/templates/NOTES.txt renamed to charts/nhi-explorer/templates/NOTES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Thank you for installing {{ .Chart.Name }}.
22

33
Your release is named {{ .Release.Name }}.
44

5-
The agent will run with the following schedule: {{ .Values.inventory.schedule }}
5+
The container will run with the following schedule: {{ .Values.inventory.schedule }}
66

77
To learn more about the release, try:
88

charts/inventory-agent/templates/_helpers.tpl renamed to charts/nhi-explorer/templates/_helpers.tpl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{/*
22
Expand the name of the chart.
33
*/}}
4-
{{- define "inventory-agent.name" -}}
4+
{{- define "nhi-explorer.name" -}}
55
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
66
{{- end }}
77

@@ -10,7 +10,7 @@ Create a default fully qualified app name.
1010
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
1111
If release name contains chart name it will be used as a full name.
1212
*/}}
13-
{{- define "inventory-agent.fullname" -}}
13+
{{- define "nhi-explorer.fullname" -}}
1414
{{- if .Values.fullnameOverride }}
1515
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
1616
{{- else }}
@@ -26,16 +26,16 @@ If release name contains chart name it will be used as a full name.
2626
{{/*
2727
Create chart name and version as used by the chart label.
2828
*/}}
29-
{{- define "inventory-agent.chart" -}}
29+
{{- define "nhi-explorer.chart" -}}
3030
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
3131
{{- end }}
3232

3333
{{/*
3434
Common labels
3535
*/}}
36-
{{- define "inventory-agent.labels" -}}
37-
helm.sh/chart: {{ include "inventory-agent.chart" . }}
38-
{{ include "inventory-agent.selectorLabels" . }}
36+
{{- define "nhi-explorer.labels" -}}
37+
helm.sh/chart: {{ include "nhi-explorer.chart" . }}
38+
{{ include "nhi-explorer.selectorLabels" . }}
3939
{{- if .Chart.AppVersion }}
4040
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
4141
{{- end }}
@@ -45,17 +45,17 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
4545
{{/*
4646
Selector labels
4747
*/}}
48-
{{- define "inventory-agent.selectorLabels" -}}
49-
app.kubernetes.io/name: {{ include "inventory-agent.name" . }}
48+
{{- define "nhi-explorer.selectorLabels" -}}
49+
app.kubernetes.io/name: {{ include "nhi-explorer.name" . }}
5050
app.kubernetes.io/instance: {{ .Release.Name }}
5151
{{- end }}
5252

5353
{{/*
5454
Create the name of the service account to use
5555
*/}}
56-
{{- define "inventory-agent.serviceAccountName" -}}
56+
{{- define "nhi-explorer.serviceAccountName" -}}
5757
{{- if .Values.serviceAccount.create }}
58-
{{- default (include "inventory-agent.fullname" .) .Values.serviceAccount.name }}
58+
{{- default (include "nhi-explorer.fullname" .) .Values.serviceAccount.name }}
5959
{{- else }}
6060
{{- default "default" .Values.serviceAccount.name }}
6161
{{- end }}
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v1
22
kind: ConfigMap
33
metadata:
4-
name: {{ include "inventory-agent.fullname" . }}
4+
name: {{ include "nhi-explorer.fullname" . }}
55
labels:
6-
{{- include "inventory-agent.labels" . | nindent 4 }}
6+
{{- include "nhi-explorer.labels" . | nindent 4 }}
77
data:
88
config.yml: {{ toYaml .Values.inventory.config|quote }}

charts/inventory-agent/templates/cronjob.yaml renamed to charts/nhi-explorer/templates/cronjob.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
apiVersion: batch/v1
22
kind: CronJob
33
metadata:
4-
name: {{ include "inventory-agent.fullname" . }}
4+
name: {{ include "nhi-explorer.fullname" . }}
55
labels:
6-
{{- include "inventory-agent.labels" . | nindent 4 }}
6+
{{- include "nhi-explorer.labels" . | nindent 4 }}
77
spec:
88
schedule: {{ toJson .Values.inventory.schedule }}
99
jobTemplate:
@@ -14,7 +14,7 @@ spec:
1414
annotations: {{- toJson . }}
1515
{{- end }}
1616
labels:
17-
{{- include "inventory-agent.labels" . | nindent 12 }}
17+
{{- include "nhi-explorer.labels" . | nindent 12 }}
1818
{{- with .Values.podLabels }}
1919
{{ toYaml . | nindent 12 }}
2020
{{- end }}
@@ -34,7 +34,7 @@ spec:
3434
{{- with .Values.imagePullSecrets }}
3535
imagePullSecrets: {{ toJson . }}
3636
{{- end }}
37-
serviceAccountName: {{ include "inventory-agent.serviceAccountName" . }}
37+
serviceAccountName: {{ include "nhi-explorer.serviceAccountName" . }}
3838
securityContext: {{ toJson .Values.podSecurityContext }}
3939
{{- with .Values.nodeSelector }}
4040
nodeSelector: {{ toJson . }}
@@ -52,4 +52,4 @@ spec:
5252
configMap:
5353
# Provide the name of the ConfigMap containing the files you want
5454
# to add to the container
55-
name: {{ include "inventory-agent.fullname" . }}
55+
name: {{ include "nhi-explorer.fullname" . }}

charts/inventory-agent/templates/serviceaccount.yaml renamed to charts/nhi-explorer/templates/serviceaccount.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
apiVersion: v1
33
kind: ServiceAccount
44
metadata:
5-
name: {{ include "inventory-agent.serviceAccountName" . }}
5+
name: {{ include "nhi-explorer.serviceAccountName" . }}
66
labels:
7-
{{- include "inventory-agent.labels" . | nindent 4 }}
7+
{{- include "nhi-explorer.labels" . | nindent 4 }}
88
{{- with .Values.serviceAccount.annotations }}
99
annotations:
1010
{{- toYaml . | nindent 4 }}

charts/inventory-agent/tests/configmap_test.yaml renamed to charts/nhi-explorer/tests/configmap_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ tests:
1616
of: ConfigMap
1717
- matchRegex:
1818
path: metadata.name
19-
pattern: -inventory-agent$
19+
pattern: -nhi-explorer$
2020
- equal:
2121
path: data["config.yml"]
2222
value: |-

charts/inventory-agent/tests/cronjob_test.yaml renamed to charts/nhi-explorer/tests/cronjob_test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ tests:
1414
of: CronJob
1515
- matchRegex:
1616
path: metadata.name
17-
pattern: -inventory-agent$
17+
pattern: -nhi-explorer$
1818
- equal:
1919
path: spec.jobTemplate.spec.template.spec.containers[0].image
20-
value: ghcr.io/gitguardian/gg-inventory-agent:latest
20+
value: ghcr.io/gitguardian/gg-nhi-explorer:latest
2121

2222
- it: should set schedule
2323
set:
@@ -70,7 +70,7 @@ tests:
7070
content:
7171
name: config
7272
configMap:
73-
name: RELEASE-NAME-inventory-agent
73+
name: RELEASE-NAME-nhi-explorer
7474
- contains:
7575
path: spec.jobTemplate.spec.template.spec.containers[0].env
7676
content:

0 commit comments

Comments
 (0)