-
Notifications
You must be signed in to change notification settings - Fork 676
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
Apply twice keeps on showing changes for code_engine_app #4719
Comments
Thanks for reporting this @l2fprod. Regards, Michael |
@michael-magrian is there any progress made on solving this issue? I have opened #4852 as I can see no activity for the past few months on this. Please feel free to close #4852 as duplicate if you are actively working on this. |
I'll bring this topic up again internally. Thanks for the reminder. |
+1 we are seeing the same behavior with env variables. tip: In contrast |
Thanks for the message. There is actually a simple explanation why jobs don't cause the same issue. They don't receive "default" environment variables during creation, which is why it doesn't pop up during a |
fyi, the same behavior can be seen for
|
What is the status on this issue, @michael-magrian and team? |
Hello @nthomsencph, |
@michael-magrian Is it possible to get some sort of ETA? This issue was created in july last year, so it's almost a year old, and nothing has happened since. This issue is particularly bothersome when combined with #5232. This effectively means that 1) it's not possible to actually use service bindings via terraform and 2) workarounds where you create everything yourself are extra annoying to implement due to this issue.
This really begs the question: when implementing this part of the provider, was it not tested? I've been using Code Engine since before there was any real terraform support for it, and even back then, there were default environment variables that were added on creation, so this behavior can't have come as a surprise. Should I take this explanation to mean that when this feature was implemented, no one actually tried running EDIT: Another thing which might be pertinent to this issue: It also seems that the order of |
@michael-magrian would you be able to answer @saevarb s question some time soon? This is an urgent issue for us |
Hi @nthomsencph , hi @saevarb , thanks for your patience. The workaround for this issue is to keep the list of environment variables, defined through terraform, in sync with the actual state of the application to avoid unnecessary updates. Recently, we published a document in the troubleshooting section of the Code Engine documentation that explains the workaround in detail https://cloud.ibm.com/docs/codeengine?topic=codeengine-ts-terraform-environment-variables We are aware that this workaround isn't what one would refer to as an ideal solution. Having said that, we are working on a permanent solution that will split the user-defined env vars and those that are computed by the system apart. At this point, I cannot share an ETA for this fix. Furthermore, as this issue is urgent for you, I suggest that you open a support case https://cloud.ibm.com/docs/codeengine?topic=codeengine-get-support to allow our team of engineers to work more closely with you on a temporary solution.
Actually, the order matters. Assuming multiple entries are defined for the same variable name, the last one that is defined will override the previous one(s). The reason why full refs are listed first is particularly important to enable app owners to override the env vars that are defined through full references by specifying specific literal and/or key-ref values. |
Hi @reggeenr, thank you for the thorough answer. We are looking forward to a solve for this. |
Community Note
Terraform CLI and Terraform IBM Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Expected Behavior
Two subsequent calls to
apply
should not show any changes on the second callActual Behavior
Calling
apply
andapply
again show changes everytime, even though I did not change anythingSteps to Reproduce
terraform apply
-> OK. Project and app are createdterraform apply
again-> terraform detect changes, although I did change nothing
Important Factoids
References
The text was updated successfully, but these errors were encountered: