You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
actions:
"TF apply" result: App is deployed with default CF memory amount, which is 1024Mb
Conclusion of issue 2: With the same configuration, we get 2 different results.
Expected result:
In Issue1: added memory value should be applied
In Issue 2/scenario 1, "memory" parameter removal should be detected, and app should be restaged/restarted so that default amount of memory is applied
The text was updated successfully, but these errors were encountered:
I also run into the same issue, removing an existing optional attribute from .tf files should trigger a restage (for memory and disk_quota for example). One way we can do this is to remove the Computed modifier from these attributes and add nil as the Default value. The problem with this is that go converts nil to something else depends on the type of the attribute ( 0 for intergers and "" for string attributes). So we'll see something like :
{
memory = 0
}
in our TF state. @loafoe do you have any comments on this?
Hello,
I faced issues with optional parameters not being detected, I tried below to summarize the different problematics:
Problem reproduction:
Config:
actions:
"TF apply" result: App is deployed with default amount of memory (1024Mb)
Then we edit the config to add the 'memory' parameter:
Problem reproduction:
Scenario 1:
Config:
actions:
"TF apply" result: App is deployed with 256Mb
Then we edit the config to remove the 'memory' parameter:
Scenario 2:
Config:
actions:
"TF apply" result: App is deployed with default CF memory amount, which is 1024Mb
Conclusion of issue 2: With the same configuration, we get 2 different results.
Expected result:
In Issue1: added memory value should be applied
In Issue 2/scenario 1, "memory" parameter removal should be detected, and app should be restaged/restarted so that default amount of memory is applied
The text was updated successfully, but these errors were encountered: