-
SummaryWhat do you want to know about this project?
MotivationWhy do you need to know this, any examples or use cases you could include? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
@agrawal93 , secret read is required because secret can be referenced from AnalysysTemplates and AnalysysRun. |
Beta Was this translation helpful? Give feedback.
-
AnalysisTemplate and AnalysisRun are at namespace level, so in that case shouldn't the read for secrets be namespace scoped? |
Beta Was this translation helpful? Give feedback.
-
@agrawal93 The rollout controller needs to operate on an AnalysisRun in any namespace. AnalysisRuns are namespaced-scoped resources, which can reference a Secret. spec:
args:
- name: api-token
valueFrom:
secretKeyRef:
name: token-secret
key: apiToken The valueFrom secret referenece is primarily intended to be used by the web metric, in order to include do things like authenticated queries. Therefore in order for the Rollout controller to make authenticated queries that require these secret, it needs cluster scoped access to query K8s for the Secret values. NOTE: if you do not need this feature, you should be able to remove the secret access from the controller's ClusterRole, and only give a Role (in the argo-rollouts namespace) which has namespace access to secrets. The namespace-scoped access to secrets in the argo-rollouts namespace is necessary because the tokens to Wavefront, DataDog, NewRelic are all stored in the argo-rollouts namespace. |
Beta Was this translation helpful? Give feedback.
@agrawal93 The rollout controller needs to operate on an AnalysisRun in any namespace. AnalysisRuns are namespaced-scoped resources, which can reference a Secret.
The valueFrom secret referenece is primarily intended to be used by the web metric, in order to include do things like authenticated queries. Therefore in order for the Rollout controller to make authenticated queries that require these secret, it needs cluster scoped access to query K8s for the Secret values.
NOTE: if you do not need this feature, you should be able to remove the secret access from the controlle…