Skip to content
Snippets Groups Projects
Commit 37687b9a authored by Kev Wang's avatar Kev Wang Committed by Derek Su
Browse files

Add common labels value and update uninstall for helm 3

parent a4c1f746
Branches
Tags
No related merge requests found
......@@ -43,7 +43,7 @@ The command deploys Local Path Provisioner on the Kubernetes cluster in the defa
To uninstall/delete the `local-path-storage` deployment:
```console
$ helm delete --purge local-path-storage
$ helm uninstall local-path-storage
```
The command removes all the Kubernetes components associated with the chart and deletes the release.
......@@ -55,6 +55,7 @@ default values.
| Parameter | Description | Default |
| ----------------------------------- | ------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| `commonLabels` | Custom labels to apply to all resources | `{}` |
| `image.repository` | Local Path Provisioner image name | `rancher/local-path-provisioner` |
| `image.tag` | Local Path Provisioner image tag | `master-head` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
......
......@@ -42,6 +42,9 @@ app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.commonLabels}}
{{ toYaml .Values.commonLabels }}
{{- end }}
{{- end -}}
{{/*
......
......@@ -20,6 +20,7 @@ spec:
labels:
app.kubernetes.io/name: {{ include "local-path-provisioner.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{ include "local-path-provisioner.labels" . | indent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
......
# Default values for local-path-provisioner.
replicaCount: 1
commonLabels: {}
image:
repository: rancher/local-path-provisioner
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment