-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
CRD support for variables + images - broken #1268
Comments
@rosscdh I do believe that you are missing a varReference configuration: varReference:
- path: spec/template/spec/containers[]/env[]/value
kind: Rollout Have a look at the files used to reproduce the issue here. The output folder is here An example for a CRD is in doc The reason is works out of the box for deployment is here The output with such a field is: apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
labels:
app: helloworld
name: helloworld
spec:
replicas: 2
selector:
matchLabels:
app: helloworld
strategy:
blueGreen:
activeService: helloworld-svc-active
autoPromotionEnabled: false
previewService: helloworld-svc-preview
template:
metadata:
labels:
app: helloworld
spec:
containers:
- env:
- name: DEPLOY_VERSION
value: orange Also we are trying to get feedback on the usability of another PR: Automatic Creation of 'vars:' and 'varReferences:' sections Have a look at the strategy field in the rollout input and rendered files. See variable $(Values.file1.spec.blueGreen) is automatically replaced without the need for vars: nor varReferences: apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
labels:
app: helloworld
name: helloworld
spec:
replicas: 2
selector:
matchLabels:
app: helloworld
strategy:
blueGreen: $(Values.file1.spec.blueGreen)
template:
metadata:
labels:
app: helloworld
spec:
containers:
- env:
- name: DEPLOY_VERSION
value: $(DEPLOYMENT_COLOR) |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Thanks! :) |
I setup "variables"
When using
kind: Deployment
the variables are substituted
When using a CRD
kind: Rollout
the variables are not substituted
Expectation, variables get substituted regardless of
kind
The text was updated successfully, but these errors were encountered: