Skip to content

Commit

Permalink
Revise hub-cluster-robot chart
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Aug 22, 2024
1 parent c6d491d commit 318c357
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
kind: Role
metadata:
name: open-cluster-management:hub-cluster-robot:cluster-auth
namespace: open-cluster-management-cluster-auth
rules:
- apiGroups: [""]
resources: ["secrets", "serviceaccounts"]
Expand Down
6 changes: 3 additions & 3 deletions charts/hub-cluster-robot/common/rbac/role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ metadata:
namespace: open-cluster-management-cluster-auth
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: open-cluster-management:hub-cluster-robot
kind: Role
name: open-cluster-management:hub-cluster-robot:cluster-auth
subjects:
- kind: ServiceAccount
name: hub-cluster-robot
namespace: {{ .Release.Namespace }}
namespace: {{ include "hub-cluster-robot.namespace" . }}
2 changes: 1 addition & 1 deletion charts/hub-cluster-robot/common/rbac/service_account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: hub-cluster-robot
namespace: {{ .Release.Namespace }}
namespace: {{ include "hub-cluster-robot.namespace" . }}
2 changes: 1 addition & 1 deletion charts/hub-cluster-robot/templates/k8s/addon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{- $restpl := $.Files.Get "common/rbac/service_account.yaml" }}
{{ tpl $restpl $ }}
---
{{- $restpl := $.Files.Get "common/rbac/cluster_role.yaml" }}
{{- $restpl := $.Files.Get "common/rbac/role.yaml" }}
{{ tpl $restpl $ }}
---
{{- $restpl := $.Files.Get "common/rbac/role_binding.yaml" }}
Expand Down
2 changes: 1 addition & 1 deletion charts/hub-cluster-robot/templates/ocm-mc/addon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
{{- $restpl := $.Files.Get "common/rbac/service_account.yaml" -}}
{{- tpl $restpl $ | nindent 14 }}
---
{{- $restpl := $.Files.Get "common/rbac/cluster_role.yaml" -}}
{{- $restpl := $.Files.Get "common/rbac/role.yaml" -}}
{{- tpl $restpl $ | nindent 14 }}
---
{{- $restpl := $.Files.Get "common/rbac/role_binding.yaml" -}}
Expand Down
2 changes: 1 addition & 1 deletion charts/hub-cluster-robot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ nameOverride: ""
fullnameOverride: ""

kubeconfigSecretName: ""
addonManagerNamespace: open-cluster-management-cluster-auth
addonManagerNamespace: open-cluster-management

kubectl:
image: ghcr.io/appscode/kubectl-nonroot:1.25

0 comments on commit 318c357

Please sign in to comment.