Skip to content

Commit

Permalink
update helm
Browse files Browse the repository at this point in the history
Signed-off-by: wanjunlei <[email protected]>
  • Loading branch information
wanjunlei committed Dec 15, 2023
1 parent 6dcf2d4 commit 348a592
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 18 deletions.
4 changes: 3 additions & 1 deletion helm/templates/clusterrolebindings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ subjects:
name: notification-manager-sa
namespace: {{ .Release.Namespace }}

{{- if eq .Values.kubesphere true }}
{{- if .Values.kubesphere.enabled }}
{{- if or (eq .Values.kubesphere.version "v3.1.0") (eq .Values.kubesphere.version "v3.2.0") }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand All @@ -40,3 +41,4 @@ subjects:
name: notification-manager-sa
namespace: {{ .Release.Namespace }}
{{- end}}
{{- end}}
4 changes: 3 additions & 1 deletion helm/templates/clusterroles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ rules:
verbs:
- create

{{- if eq .Values.kubesphere true }}
{{- if .Values.kubesphere.enabled }}
{{- if or (eq .Values.kubesphere.version "v3.1.0") (eq .Values.kubesphere.version "v3.2.0") }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down Expand Up @@ -148,4 +149,5 @@ rules:
- list
- watch
{{- end}}
{{- end}}

6 changes: 3 additions & 3 deletions helm/templates/notificationmanagers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ spec:
{{- toYaml .Values.notificationmanager.volumes | nindent 4 }}
defaultSecretNamespace:
{{- toYaml .Values.notificationmanager.defaultSecretNamespace | nindent 4 }}
{{- if eq .Values.kubesphere true }}
{{- if .Values.kubesphere.enabled }}
sidecars:
tenant:
image: kubesphere/notification-tenant-sidecar:v3.2.0
image: kubesphere/notification-tenant-sidecar:{{ .Values.kubesphere.version }}
name: tenant
type: kubesphere
{{- end}}
{{- end }}
template:
{{- toYaml .Values.notificationmanager.template | nindent 4 }}
groupLabels:
Expand Down
17 changes: 4 additions & 13 deletions helm/values.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
# Whether Notification manager is running at the kubesphere.
kubesphere: false

hook:
postInstall:
image:
repo: kubesphere/kubectl
tag: v1.22.0
pullPolicy: IfNotPresent
backoffLimit: 1

# Set timezone to be injected into containers
# timezone: "America/Toronto"
kubesphere:
enabled: fase
# supported version: v3.1.0, v3.2.0
version: v3.2.0

# value of notification-manager-operator
operator:
Expand Down

0 comments on commit 348a592

Please sign in to comment.