Merge "Fixed conflict due role configuration"

This commit is contained in:
Zuul 2024-08-06 19:20:14 +00:00 committed by Gerrit Code Review
commit c64ab6ebeb
3 changed files with 14 additions and 12 deletions

View File

@ -1,16 +1,17 @@
{{/*
#
# Copyright (c) 2021-2022 Wind River Systems, Inc.
# Copyright (c) 2021-2024 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
*/}}
{{- if .Values.clusterRole.create }}
{{- if .Values.Role.create }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
kind: Role
metadata:
name: secret-observer-cr
namespace: "{{ .Values.namespace }}"
name: secret-observer-r
labels:
app: secret-observer
release: "{{ .Release.Name }}"

View File

@ -1,22 +1,23 @@
{{/*
#
# Copyright (c) 2021 Wind River Systems, Inc.
# Copyright (c) 2021-2024 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
*/}}
{{- if .Values.clusterRoleBinding.create }}
{{- if .Values.RoleBinding.create }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
kind: RoleBinding
metadata:
namespace: "{{ .Values.namespace }}"
labels:
release: "{{ .Release.Name }}"
name: secret-observer-crb
name: secret-observer-rb
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: secret-observer-cr
kind: Role
name: secret-observer-r
subjects:
- kind: ServiceAccount
name: secret-observer

View File

@ -8,10 +8,10 @@ image: docker.io/curlimages/curl
imageTag: 8.8.0
namespace: default
clusterRoleBinding:
RoleBinding:
create: true
clusterRole:
Role:
create: true
serviceAccount: