-
Notifications
You must be signed in to change notification settings - Fork 53
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
Missing required argument: The argument "template.0.spec.0.containers.0.image" #827
Comments
I believe the property needs to be designated in the code, and then again in the ignoreChanges section, if I'm understanding the issue correctly. Here are the docs on ignoreChanges: https://www.pulumi.com/docs/intro/concepts/resources/options/ignorechanges/ |
Yes, I have also set the image name. It can create the resource but updating doesn't work. |
Please can you let us see a sample of your code here? I am assuming it's similar to the following:
If this is the case, then Paul |
Here is a sample: new gcp.cloudrun.Service(
"my-service-name",
{
name: "my-service-name",
location: "europe-west1",
autogenerateRevisionName: true,
template: {
spec: {
containers: [
{
image: "gcr.io/cloudrun/placeholder",
},
],
},
},
traffics: [
{
latestRevision: true,
percent: 100,
},
],
},
{
ignoreChanges: ["template.spec.containers[0].image"],
},
) |
I think there's a provider issue here that it's giving back a very strange error message, but I wonder if you've also misunderstood what ignoreChanges does? It looks like your after a feature like pulumi/pulumi#8953 where if a diff happens the UI doesn't show it. IgnoreChanges does not do that, it just ignores any new value passed and uses the last seen value instead. |
No, I just want it to use the old value. I have CD setup for this service so I don't want pulumi updating the image. |
Thanks for confirming that. |
Any update on this? There is a very real functional need to fix this in that in a production environment you don't want to accidentally rollback, or forward if using the "latest" tag, a service because you rolled some other unrelated change. |
I'm trying to repro it today with the latest version of everything. Took this program:
Both deployments succeeded. Since the issue is more than a year old, I'll assume it's fixed and will close it. Please let me know if my repro is incomplete. |
What happened?
I am trying to setup a
gcp.cloudrun.Service
with the followingignoreChanges
:When I try to update the cloudrun resource through pulumi and run
pulumi up
I get the following error:Steps to reproduce
gcp.cloudrun.Service
with the following ignore changes:["template.spec.containers[0].image"]
gcp.cloudrun.Service
and runpulumi up
Expected Behavior
I expect pulumi to actually ignore image changes so that I can have CD setup without having a diff every time i run
pulumi up
.Actual Behavior
I got this error:
Versions used
No response
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: