From 09e30c77a39e278063b8b20a19e87b8bd3158b7a Mon Sep 17 00:00:00 2001 From: Rokibul Hasan Date: Tue, 12 Nov 2024 13:34:23 +0600 Subject: [PATCH] Update cluster-profile-manager permission (#42) Signed-off-by: Rokibul Hasan --- catalog/imagelist.yaml | 4 ++-- charts/cluster-profile-manager/Chart.yaml | 4 ++-- charts/cluster-profile-manager/README.md | 10 +++++----- .../templates/k8s/cluster_role.yaml | 3 +++ 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/catalog/imagelist.yaml b/catalog/imagelist.yaml index ecae937..9161b7c 100644 --- a/catalog/imagelist.yaml +++ b/catalog/imagelist.yaml @@ -6,10 +6,10 @@ - ghcr.io/fluxcd/kustomize-controller - ghcr.io/fluxcd/notification-controller - ghcr.io/fluxcd/source-controller -- ghcr.io/kluster-manager/cluster-auth:v0.0.5 +- ghcr.io/kluster-manager/cluster-auth:v0.1.0 - ghcr.io/kluster-manager/cluster-gateway-manager:v1.9.1 - ghcr.io/kluster-manager/cluster-gateway:v1.9.1 -- ghcr.io/kluster-manager/cluster-profile:v0.0.2 +- ghcr.io/kluster-manager/cluster-profile:v0.3.0 - ghcr.io/kluster-manager/cluster-proxy:v0.5.0 - ghcr.io/kluster-manager/clusteradm:v0.9.0 - ghcr.io/kluster-manager/fluxcd-addon:v0.0.4 diff --git a/charts/cluster-profile-manager/Chart.yaml b/charts/cluster-profile-manager/Chart.yaml index 99c62a5..3ed054a 100644 --- a/charts/cluster-profile-manager/Chart.yaml +++ b/charts/cluster-profile-manager/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v1 description: Cluster Profile Manager name: cluster-profile-manager -version: v2024.10.17 -appVersion: v0.2.0 +version: v2024.11.18 +appVersion: v0.3.0 home: https://github.com/kluster-manager/cluster-profile icon: https://cdn.appscode.com/images/products/searchlight/icons/android-icon-192x192.png sources: diff --git a/charts/cluster-profile-manager/README.md b/charts/cluster-profile-manager/README.md index e30e30f..ec1f835 100644 --- a/charts/cluster-profile-manager/README.md +++ b/charts/cluster-profile-manager/README.md @@ -7,8 +7,8 @@ ```bash $ helm repo add appscode https://charts.appscode.com/stable $ helm repo update -$ helm search repo appscode/cluster-profile-manager --version=v2024.10.17 -$ helm upgrade -i cluster-profile-manager appscode/cluster-profile-manager -n open-cluster-management-addon --create-namespace --version=v2024.10.17 +$ helm search repo appscode/cluster-profile-manager --version=v2024.11.18 +$ helm upgrade -i cluster-profile-manager appscode/cluster-profile-manager -n open-cluster-management-addon --create-namespace --version=v2024.11.18 ``` ## Introduction @@ -24,7 +24,7 @@ This chart deploys an Cluster Profile Manager on a [Kubernetes](http://kubernete To install/upgrade the chart with the release name `cluster-profile-manager`: ```bash -$ helm upgrade -i cluster-profile-manager appscode/cluster-profile-manager -n open-cluster-management-addon --create-namespace --version=v2024.10.17 +$ helm upgrade -i cluster-profile-manager appscode/cluster-profile-manager -n open-cluster-management-addon --create-namespace --version=v2024.11.18 ``` The command deploys an Cluster Profile Manager on the Kubernetes cluster in the default configuration. The [configuration](#configuration) section lists the parameters that can be configured during installation. @@ -84,12 +84,12 @@ The following table lists the configurable parameters of the `cluster-profile-ma Specify each parameter using the `--set key=value[,key=value]` argument to `helm upgrade -i`. For example: ```bash -$ helm upgrade -i cluster-profile-manager appscode/cluster-profile-manager -n open-cluster-management-addon --create-namespace --version=v2024.10.17 --set manager.image=ghcr.io/kluster-manager/cluster-profile +$ helm upgrade -i cluster-profile-manager appscode/cluster-profile-manager -n open-cluster-management-addon --create-namespace --version=v2024.11.18 --set manager.image=ghcr.io/kluster-manager/cluster-profile ``` Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example: ```bash -$ helm upgrade -i cluster-profile-manager appscode/cluster-profile-manager -n open-cluster-management-addon --create-namespace --version=v2024.10.17 --values values.yaml +$ helm upgrade -i cluster-profile-manager appscode/cluster-profile-manager -n open-cluster-management-addon --create-namespace --version=v2024.11.18 --values values.yaml ``` diff --git a/charts/cluster-profile-manager/templates/k8s/cluster_role.yaml b/charts/cluster-profile-manager/templates/k8s/cluster_role.yaml index 125b73a..f916e7f 100644 --- a/charts/cluster-profile-manager/templates/k8s/cluster_role.yaml +++ b/charts/cluster-profile-manager/templates/k8s/cluster_role.yaml @@ -26,5 +26,8 @@ rules: - apiGroups: [""] resources: ["namespaces", "secrets"] verbs: ["get", "list", "watch"] + - apiGroups: [ "ui.k8s.appscode.com" ] + resources: [ "features", "featuresets" ] + verbs: [ "get", "list", "watch" ] {{- end }}