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