From 694a4a4f4e1da2bb8f46ec81b72d36f166258728 Mon Sep 17 00:00:00 2001 From: raffis Date: Tue, 12 Dec 2023 14:27:49 +0100 Subject: [PATCH] fix(chart): clusterrole specs (#2) --- README.md | 2 ++ chart/cloud-autoscale-controller/templates/clusterrole.yaml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 38502a0..b7877a3 100755 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ a grace period of 5 minutes. **Note**: If no grace period is set the instance will be terminated immediately after the condition ScaledToZero is set to `True`. ```yaml +apiVersion: cloudautoscale.infra.doodle.com/v1beta1 kind: AWSRDSInstance metadata: name: rds-myname @@ -60,6 +61,7 @@ If no pods are running matching either `app: backend` or `app: another-mongodb-c a grace period of 5 minutes. ```yaml +apiVersion: cloudautoscale.infra.doodle.com/v1beta1 kind: MongoDBAtlasCluster metadata: name: atlas-myname diff --git a/chart/cloud-autoscale-controller/templates/clusterrole.yaml b/chart/cloud-autoscale-controller/templates/clusterrole.yaml index c3c36a2..2f7304b 100644 --- a/chart/cloud-autoscale-controller/templates/clusterrole.yaml +++ b/chart/cloud-autoscale-controller/templates/clusterrole.yaml @@ -14,8 +14,8 @@ rules: - apiGroups: - "cloudautoscale.infra.doodle.com" resources: - - awsrdsinstances/status - - mongodbatlasclusters/status + - awsrdsinstances + - mongodbatlasclusters verbs: - create - delete