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