Skip to content
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

ignore_changes not working with gcp.compute.NetworkEndpointGroup.get #2631

Open
emirozmen07 opened this issue Nov 14, 2024 · 1 comment
Open
Assignees
Labels
awaiting-feedback Blocked on input from the author kind/question Questions about existing features

Comments

@emirozmen07
Copy link

emirozmen07 commented Nov 14, 2024

Describe what happened

The ignore_changes not working with the gcp.compute.NetworkEndpointGroup.get function

Sample program

  1. Create a NEG with pulumi. And connect it to the related backend pod services.
  2. Make changes in NEG without pulumi.
  3. Try to get the NEG with pulumi.
  4. Ignore changes will not work and it will detect all changes anyway.
import pulumi_gcp as gcp        

gcp.compute.NetworkEndpointGroup.get(resource_name=internal_neg_name,  id=internal_neg_id, 
                  opts=pulumi.ResourceOptions(ignore_changes=["*"])

Log output

No response

Affected Resource(s)

gcp.compute.NetworkEndpointGroup.get

Output of pulumi about

CLI          
Version      3.136.1
Go Version   go1.23.2
Go Compiler  gc

Plugins
KIND      NAME        VERSION
resource  docker      4.5.5
resource  gcp         7.38.0
resource  kubernetes  4.17.1
resource  postgresql  3.11.3
language  python      3.136.1
resource  random      4.16.4

Host     
OS       darwin
Version  14.5
Arch     x86_64

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).

@emirozmen07 emirozmen07 added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Nov 14, 2024
@VenelinMartinov
Copy link
Contributor

Hey @emirozmen07, thanks for reporting the issue.

Unfortunately, the way ignore changes works is that it only effects the inputs to a resource, not the outputs: https://www.pulumi.com/docs/iac/concepts/options/ignorechanges/ In your case, for .get methods, the changes are only to the outputs, so these can not be ignored by ignoreChanges.

What are you trying to achieve here? What changes are you trying to ignore and why are they impacting your program?

@VenelinMartinov VenelinMartinov added kind/question Questions about existing features awaiting-feedback Blocked on input from the author and removed kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Nov 15, 2024
@VenelinMartinov VenelinMartinov self-assigned this Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-feedback Blocked on input from the author kind/question Questions about existing features
Projects
None yet
Development

No branches or pull requests

2 participants