-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
Describe the bug
I can't use the recent feature scaleDown
, used in migration to Argo rollout, due to missing permission in clusterrole
in the helm chart in argo-rollout v2.36.1 https://github.com/argoproj/argo-helm/blob/main/charts/argo-rollouts/templates/controller/clusterrole.yaml#L60
https://argo-rollouts.readthedocs.io/en/stable/migrating/
workloadRef: # Reference an existing Deployment using workloadRef field
apiVersion: apps/v1
kind: Deployment
name: rollout-ref-deployment
scaleDown: onsuccess
The error from argo-rollout controller pod
time="2024-06-25T12:38:07Z" level=error msg="deployments.apps \"rollout-ref-deployment\" is forbidden: User \"system:serviceaccount:argo-rollouts:argo-rollouts\" cannot update resource \"deployments\" in API group \"apps\" in the namespace \"dev\"
Related helm chart
argo-rollouts
Helm chart version
2.36.1
To Reproduce
Steps to reproduce the issue
- Apply deployment
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/instance: rollout-canary
name: rollout-ref-deployment
spec:
replicas: 1
selector:
matchLabels:
app: rollout-ref-deployment
template:
metadata:
labels:
app: rollout-ref-deployment
spec:
containers:
- name: rollouts-demo
image: argoproj/rollouts-demo:blue
imagePullPolicy: Always
ports:
- containerPort: 8080
- Apply Rollout
apiVersion: argoproj.io/v1alpha1 # Create a rollout resource
kind: Rollout
metadata:
name: rollout-ref-deployment
spec:
replicas: 5
selector:
matchLabels:
app: rollout-ref-deployment
workloadRef: # Reference an existing Deployment using workloadRef field
apiVersion: apps/v1
kind: Deployment
name: rollout-ref-deployment
scaleDown: onsuccess
strategy:
canary:
steps:
- setWeight: 20
- pause: {duration: 10s}
- check argo-rollout controller pod logs
time="2024-06-25T12:38:07Z" level=error msg="deployments.apps \"rollout-ref-deployment\" is forbidden: User \"system:serviceaccount:argo-rollouts:argo-rollouts\" cannot update resource \"deployments\" in API group \"apps\" in the namespace \"dev\"
Expected behavior
use the recent feature scaleDown
in argorollout v1.7.0 without any access issue
Screenshots
No response
Additional context
No response