Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Treat Schema.ForceNew == true attributes as immutable once set #264

Open
ulucinar opened this issue Mar 17, 2022 · 2 comments
Open

Treat Schema.ForceNew == true attributes as immutable once set #264

ulucinar opened this issue Mar 17, 2022 · 2 comments
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@ulucinar
Copy link
Collaborator

ulucinar commented Mar 17, 2022

What problem are you facing?

Because we set the prevent_destroy lifecycle meta-argument, if a Terraform configuration argument with Schema.ForceNew set to true in its schema is modified, terraform plan calls fail complaining about the prevent_destroy arg.

How could Terrajet help solve your problem?

Because to adhere to XRM we set the prevent_destroy lifecycle meta-argument, with the introduction of validating admission webhooks in Crossplane, we can consider using the ForceNew schema to prevent modification of such parameters once they are set.

@muvaf
Copy link
Member

muvaf commented Mar 28, 2022

crossplane/crossplane-tools#40 should help when it's implemented.

@stale
Copy link

stale bot commented Aug 13, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants