Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add role and rolebindings to manage cost-management operator #5694

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions components/cost-management/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ resources:
- costmanagement-metrics-operator.yaml
- costmanagement-metrics-config.yaml
- external-service-account-secret.yaml
- rbac

commonAnnotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
24 changes: 24 additions & 0 deletions components/cost-management/base/rbac/cost-management-admin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: cost-management-access
namespace: costmanagement-metrics-operator
rules:
- apiGroups: [""]
resources: ["*"]
verbs: ["*"]
---

apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: cost-management-access
namespace: openshift-logging
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: konflux-cost-management-admins
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: cost-management-access
4 changes: 4 additions & 0 deletions components/cost-management/base/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- cost-management-admin.yaml