From 91510ebe941ced0084467e2c0f793efe8130e4df Mon Sep 17 00:00:00 2001 From: caradu Date: Wed, 25 Oct 2023 12:47:13 +0300 Subject: [PATCH] Add cluster roles & rolebindings (#84) * Add cluster roles and rolebindings * Bump chart version * Remove old files --- charts/cluster-registry-client/Chart.yaml | 2 +- charts/cluster-registry-client/README.md | 4 ++-- .../templates/{role.yaml => cluster-role.yaml} | 3 +-- .../templates/{rolebinding.yaml => cluster-rolebinding.yaml} | 5 ++--- 4 files changed, 6 insertions(+), 8 deletions(-) rename charts/cluster-registry-client/templates/{role.yaml => cluster-role.yaml} (92%) rename charts/cluster-registry-client/templates/{rolebinding.yaml => cluster-rolebinding.yaml} (85%) diff --git a/charts/cluster-registry-client/Chart.yaml b/charts/cluster-registry-client/Chart.yaml index 5d1c139c..55600af9 100644 --- a/charts/cluster-registry-client/Chart.yaml +++ b/charts/cluster-registry-client/Chart.yaml @@ -15,5 +15,5 @@ maintainers: - name: radu-catalina email: caradu@adobe.com -version: 0.1.5 +version: 0.1.6 appVersion: v1.4.2 diff --git a/charts/cluster-registry-client/README.md b/charts/cluster-registry-client/README.md index 96028d31..dd0a5cec 100644 --- a/charts/cluster-registry-client/README.md +++ b/charts/cluster-registry-client/README.md @@ -1,6 +1,6 @@ # cluster-registry-client -![Version: 0.1.5](https://img.shields.io/badge/Version-0.1.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.4.2](https://img.shields.io/badge/AppVersion-v1.4.2-informational?style=flat-square) +![Version: 0.1.6](https://img.shields.io/badge/Version-0.1.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.4.2](https://img.shields.io/badge/AppVersion-v1.4.2-informational?style=flat-square) Cluster Registry is a Rest API representing the source of record for all Kubernetes clusters in the infrastructure fleet. All clusters are automatically registered, and the information is accurately reflected in the Cluster Registry using a client-server architecture. @@ -54,4 +54,4 @@ Cluster Registry is a Rest API representing the source of record for all Kuberne | terminationGracePeriodSeconds | int | `10` | | ---------------------------------------------- -Autogenerated from chart metadata using [helm-docs v1.11.3](https://github.com/norwoodj/helm-docs/releases/v1.11.3) +Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0) diff --git a/charts/cluster-registry-client/templates/role.yaml b/charts/cluster-registry-client/templates/cluster-role.yaml similarity index 92% rename from charts/cluster-registry-client/templates/role.yaml rename to charts/cluster-registry-client/templates/cluster-role.yaml index 82d2566c..12201364 100644 --- a/charts/cluster-registry-client/templates/role.yaml +++ b/charts/cluster-registry-client/templates/cluster-role.yaml @@ -1,8 +1,7 @@ apiVersion: rbac.authorization.k8s.io/v1 -kind: Role +kind: ClusterRole metadata: name: cluster-registry-client - namespace: {{ .Release.Namespace }} labels: {{- include "cluster-registry-client.labels" . | nindent 4 }} rules: diff --git a/charts/cluster-registry-client/templates/rolebinding.yaml b/charts/cluster-registry-client/templates/cluster-rolebinding.yaml similarity index 85% rename from charts/cluster-registry-client/templates/rolebinding.yaml rename to charts/cluster-registry-client/templates/cluster-rolebinding.yaml index b506dd03..42fac0a4 100644 --- a/charts/cluster-registry-client/templates/rolebinding.yaml +++ b/charts/cluster-registry-client/templates/cluster-rolebinding.yaml @@ -1,13 +1,12 @@ apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding +kind: ClusterRoleBinding metadata: name: cluster-registry-client-rolebinding - namespace: {{ .Release.Namespace }} labels: {{- include "cluster-registry-client.labels" . | nindent 4 }} roleRef: apiGroup: rbac.authorization.k8s.io - kind: Role + kind: ClusterRole name: cluster-registry-client subjects: - kind: ServiceAccount