Skip to content

Commit

Permalink
[stable/openebs]: remove pre-install hook from secret (helm#14162)
Browse files Browse the repository at this point in the history
- Updated README
- Updated chart version
- Updated values.yaml
- Update pod labels for deployments

`pre-install` hook: Executes after templates are rendered,
but before any resources are created in Kubernetes.

This hook has been added to the secret , will only be generated
on chart install, to prevent overriding the certs anytime we upgrade
the chart’s released instance.

Thus `pre-install hook` prevents the secret creation if someone uses
the older version of charts and upgraded to new version.

Signed-off-by: prateekpandey14 <[email protected]>
  • Loading branch information
prateekpandey14 authored and k8s-ci-robot committed May 31, 2019
1 parent 43e9ce9 commit d997932
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion stable/openebs/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
version: 0.9.1
version: 0.9.2
name: openebs
appVersion: 0.9.0
description: Containerized Storage for Containers
Expand Down
1 change: 1 addition & 0 deletions stable/openebs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ The following table lists the configurable parameters of the OpenEBS chart and t
| `ndm.sparse.count` | Number of sparse files to be created | `1` |
| `ndm.filters.excludeVendors` | Exclude devices with specified vendor | `CLOUDBYT,OpenEBS` |
| `ndm.filters.excludePaths` | Exclude devices with specified path patterns | `loop,fd0,sr0,/dev/ram,/dev/dm-,/dev/md` |
| `ndm.filters.includePaths` | Include devices with specified path patterns | `""` |
| `jiva.image` | Image for Jiva | `quay.io/openebs/jiva` |
| `jiva.imageTag` | Image Tag for Jiva | `0.9.0` |
| `jiva.replicas` | Number of Jiva Replicas | `3` |
Expand Down
2 changes: 1 addition & 1 deletion stable/openebs/templates/cm-node-disk-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ data:
- key: path-filter
name: path filter
state: true
include: ""
include: "{{ .Values.ndm.filters.includePaths }}"
exclude: "{{ .Values.ndm.filters.excludePaths }}"
---
3 changes: 2 additions & 1 deletion stable/openebs/templates/daemonset-ndm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
component: ndm
openebs.io/component-name: ndm
spec:
updateStrategy:
type: "RollingUpdate"
Expand All @@ -23,6 +22,8 @@ spec:
app: {{ template "openebs.name" . }}
release: {{ .Release.Name }}
component: ndm
openebs.io/component-name: ndm
name: openebs-ndm
openebs.io/version: {{ .Values.release.version }}
spec:
serviceAccountName: {{ template "openebs.serviceAccountName" . }}
Expand Down
4 changes: 2 additions & 2 deletions stable/openebs/templates/deployment-admission-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
component: admission-webhook
name: admission-webhook
openebs.io/component-name: maya-apiserver
spec:
replicas: {{ .Values.webhook.replicas }}
selector:
Expand All @@ -19,7 +17,9 @@ spec:
metadata:
labels:
app: admission-webhook
name: admission-webhook
openebs.io/version: {{ .Values.release.version }}
openebs.io/component-name: admission-webhook
spec:
{{- if .Values.webhook.nodeSelector }}
nodeSelector:
Expand Down
3 changes: 2 additions & 1 deletion stable/openebs/templates/deployment-local-provisioner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
component: localpv-provisioner
openebs.io/component-name: openebs-localpv-provisioner
spec:
replicas: {{ .Values.provisioner.replicas }}
selector:
Expand All @@ -21,7 +20,9 @@ spec:
app: {{ template "openebs.name" . }}
release: {{ .Release.Name }}
component: localpv-provisioner
name: openebs-localpv-provisioner
openebs.io/version: {{ .Values.release.version }}
openebs.io/component-name: openebs-localpv-provisioner
spec:
serviceAccountName: {{ template "openebs.serviceAccountName" . }}
containers:
Expand Down
2 changes: 1 addition & 1 deletion stable/openebs/templates/deployment-maya-apiserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ metadata:
heritage: {{ .Release.Service }}
component: apiserver
name: maya-apiserver
openebs.io/component-name: maya-apiserver
spec:
replicas: {{ .Values.apiserver.replicas }}
selector:
Expand All @@ -23,6 +22,7 @@ spec:
release: {{ .Release.Name }}
component: apiserver
name: maya-apiserver
openebs.io/component-name: maya-apiserver
openebs.io/version: {{ .Values.release.version }}
spec:
serviceAccountName: {{ template "openebs.serviceAccountName" . }}
Expand Down
3 changes: 2 additions & 1 deletion stable/openebs/templates/deployment-maya-provisioner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
component: provisioner
openebs.io/component-name: openebs-provisioner
spec:
replicas: {{ .Values.provisioner.replicas }}
selector:
Expand All @@ -21,6 +20,8 @@ spec:
app: {{ template "openebs.name" . }}
release: {{ .Release.Name }}
component: provisioner
name: openebs-provisioner
openebs.io/component-name: openebs-provisioner
openebs.io/version: {{ .Values.release.version }}
spec:
serviceAccountName: {{ template "openebs.serviceAccountName" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
component: snapshot-operator
openebs.io/component-name: openebs-snapshot-operator
spec:
replicas: {{ .Values.snapshotOperator.replicas }}
selector:
Expand All @@ -23,7 +22,9 @@ spec:
app: {{ template "openebs.name" . }}
release: {{ .Release.Name }}
component: snapshot-operator
name: openebs-snapshot-operator
openebs.io/version: {{ .Values.release.version }}
openebs.io/component-name: openebs-snapshot-operator
spec:
serviceAccountName: {{ template "openebs.serviceAccountName" . }}
containers:
Expand Down
7 changes: 0 additions & 7 deletions stable/openebs/templates/validationwebhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,6 @@ metadata:
chart: {{ template "openebs.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
# Helm hook annotations in order to ensure that the certs
# will only be generated on chart install. This will
# prevent overriding the certs anytime we upgrade the chart’s
# released instance.
annotations:
"helm.sh/hook": "pre-install"
"helm.sh/hook-delete-policy": "before-hook-creation"
type: Opaque
data:
{{- if .Values.webhook.generateTLS }}
Expand Down
1 change: 1 addition & 0 deletions stable/openebs/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ ndm:
count: "1"
filters:
excludeVendors: "CLOUDBYT,OpenEBS"
includePaths: ""
excludePaths: "loop,fd0,sr0,/dev/ram,/dev/dm-,/dev/md"
nodeSelector: {}
healthCheck:
Expand Down

0 comments on commit d997932

Please sign in to comment.