-
Notifications
You must be signed in to change notification settings - Fork 5
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to set a pingone_branding_theme
as the active theme for an environment
#310
Comments
The It's set as read-only because API validation restrictions mean conflicts arise when updating the value between true/false after initial creation, and removing a theme set as active/default.
The proposed way forward is to create a new, additional resource |
@patrickcping there is a clean way to do this, without creating the hassle of an orphan setting or resulting in locked loops. Mark the as per #357 the flag is only passed " If multiple themes are marked as If the issue is in the TF validation, there is always the fallback default theme |
Thanks for that, a few considerations:
From an API perspective, the value cannot be left undefined - it will default to false when computed back into state, so we're not able to "unset" to "reset" because of the lock situation.
Terraform's resources (even if they're the same type) aren't aware of each other as they're being applied. A uniqueness error would prevent a locked loop but I'm not sure we can get there cleanly
This is how the API currently works and will work reasonably well until changing the default from one to another. This will lead us to the lock situation or a state management problem. The state management problem is where "Theme 2" takes the default from "Theme 1", but "Theme 1" is expecting
This is the most workable, but we have an objective to put all configuration in the platform under some form of "drift control". Where we have to fallback to the default theme on delete it will need to be TF unmanaged. This is where the idea of the |
Is there any update to the issues surrounding the inability to set defaults? |
I've responded more generally on issue #463 , but the good news is that the branding themes are one of the few where we don't encounter conflicts between the API design and Terraform's implementation. You're able to set the default branding theme with the |
Community Note
Description
When configuring a theme with
pingone_branding_theme
there needs to be a way to set it as the active theme in the environment. It is used for the sign-on policies, and also as a fallback for DaVinci errors.New or Affected Resource(s)
pingone_branding_theme
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: