This repository has been archived by the owner on May 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[kibana] create a secret with es token (#1720)
* [kibana] create a secret with es token * fix pre-post-install jobs * fix clean command + optimize js script * fix upgrade test * fix a few bugs * Update kibana/templates/configmap-helm-scripts.yaml Co-authored-by: Rory Hunter <pugnascotia@users.noreply.github.com> * check if vars exist * handle both payload and extra status code * return promises * add a note to retrieve the kibana token * exit when catching an error * add more retries instead of sleep * fixup! add a note to retrieve the kibana token * Update kibana/templates/configmap-helm-scripts.yaml Co-authored-by: Rory Hunter <pugnascotia@users.noreply.github.com> * Update kibana/templates/configmap-helm-scripts.yaml Co-authored-by: Rory Hunter <pugnascotia@users.noreply.github.com> Co-authored-by: Rory Hunter <pugnascotia@users.noreply.github.com>
- Loading branch information
1 parent
8565b30
commit 90f59ef
Showing
11 changed files
with
349 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: post-delete-{{ template "kibana.fullname" . }} | ||
labels: {{ include "kibana.labels" . | nindent 4 }} | ||
annotations: | ||
"helm.sh/hook": post-delete | ||
"helm.sh/hook-delete-policy": hook-succeeded | ||
{{- if .Values.annotations }} | ||
{{- range $key, $value := .Values.annotations }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- end }} | ||
{{- end }} | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- secrets | ||
verbs: | ||
- delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: post-delete-{{ template "kibana.fullname" . }} | ||
labels: {{ include "kibana.labels" . | nindent 4 }} | ||
annotations: | ||
"helm.sh/hook": post-delete | ||
"helm.sh/hook-delete-policy": hook-succeeded | ||
{{- if .Values.annotations }} | ||
{{- range $key, $value := .Values.annotations }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- end }} | ||
{{- end }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: post-delete-{{ template "kibana.fullname" . }} | ||
namespace: {{ .Release.Namespace | quote }} | ||
roleRef: | ||
kind: Role | ||
name: post-delete-{{ template "kibana.fullname" . }} | ||
apiGroup: rbac.authorization.k8s.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: post-delete-{{ template "kibana.fullname" . }} | ||
labels: {{ include "kibana.labels" . | nindent 4 }} | ||
annotations: | ||
"helm.sh/hook": post-delete | ||
"helm.sh/hook-delete-policy": hook-succeeded | ||
{{- if .Values.annotations }} | ||
{{- range $key, $value := .Values.annotations }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- end }} | ||
{{- end }} |
Oops, something went wrong.