Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandr Zimin <[email protected]>
  • Loading branch information
AleksZimin committed Jun 29, 2024
1 parent 3d4de2a commit 16c384c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 22 deletions.
10 changes: 5 additions & 5 deletions templates/controller/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ spec:
privileged: false
env:
- name: LOG_LEVEL
{{- if eq .Values.csiCeph.logLevel "ERROR" }}
{{- if eq .Values.csiHuawei.logLevel "ERROR" }}
value: "0"
{{- else if eq .Values.csiCeph.logLevel "WARN" }}
{{- else if eq .Values.csiHuawei.logLevel "WARN" }}
value: "1"
{{- else if eq .Values.csiCeph.logLevel "INFO" }}
{{- else if eq .Values.csiHuawei.logLevel "INFO" }}
value: "2"
{{- else if eq .Values.csiCeph.logLevel "DEBUG" }}
{{- else if eq .Values.csiHuawei.logLevel "DEBUG" }}
value: "3"
{{- else if eq .Values.csiCeph.logLevel "TRACE" }}
{{- else if eq .Values.csiHuawei.logLevel "TRACE" }}
value: "4"
{{- end }}
- name: CONTROLLER_NAMESPACE
Expand Down
31 changes: 14 additions & 17 deletions templates/controller/rbac-for-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ rules:
resources:
- secrets
- configmaps
- storagebackendclaims
verbs:
- get
- list
Expand Down Expand Up @@ -55,29 +56,25 @@ rules:
- apiGroups:
- storage.deckhouse.io
resources:
- cephstorageclasses
- cephstorageclasses/status
- cephclusterconnections
- cephclusterconnections/status
- cephclusterauthentications
- cephclusterauthentications/status
- huaweistorageconnections
- huaweistorageconnections/status
verbs:
- get
- list
- create
- watch
- update
- apiGroups:
- storage.k8s.io
resources:
- storageclasses
verbs:
- create
- delete
- list
- get
- watch
- update
# - apiGroups:
# - storage.k8s.io
# resources:
# - storageclasses
# verbs:
# - create
# - delete
# - list
# - get
# - watch
# - update
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down

0 comments on commit 16c384c

Please sign in to comment.