-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config structure unable to accept maps #184
Comments
Currently, the operator would call SetallConfig(), which calls the pulumi config set-all command line. Currently, SetallConfig() does not support nested value. It requires that the Well, you may think that we can do the following:
Not quite, because that would give us *Assuming we are only setting values that are nested because |
Thanks for opening this @xwang0818 - are you able to use 0.0.18 (released yesterday) to use the checked-in Pulumi stack configuration to work around this? |
@viveklak I upgraded my pulumi operator to the latest release v0.0.19. However, this version still does not support the stack config described above. |
I haven't had a chance to investigate the issue around the richer stack config. My specific suggestion was to check-in the stack config file ( |
Let's close this as a duplicate of: #258 |
Summary:
The config section under the Stack CRD needs to be able to accept a map. E.g.:
In the scenario where we would like to specify an AssumeRole using a roleArn, we would run
pulumi config set --path aws:assumeRole.roleArn arn:aws:iam::xxxxxxxxx:role/nodes.xw-cluster-1.k8s.local
and it would automatically generate the config in Pulumi..yaml. This auto-generated config does not work when it is placed under a Stack yaml file.Steps to reproduce
git clone https://github.com/pulumi/pulumi-kubernetes-operator.git
cd pulumi-kubernetes-operator
git fetch --all --tags
git checkout tags/v0.0.17 -b v0.0.17
kubectl apply -f deploy/crds/
kubectl apply -f deploy/yaml
create a Stack yaml (named stack.yaml) with the config shown in the above
create github repo with pulumi project
point Stack yaml to github repo
kubectl apply -f stack.yaml
Expected:
Be able to configure an AssumeRole for pulumi POD to utilize the IAM role on the host
Actual:
Failing because
config
only accepts strings and not mapsThe text was updated successfully, but these errors were encountered: