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

[tf] Where to add Lifecycle to integrations #221

Open
MichaelThamm opened this issue Oct 29, 2024 · 0 comments
Open

[tf] Where to add Lifecycle to integrations #221

MichaelThamm opened this issue Oct 29, 2024 · 0 comments

Comments

@MichaelThamm
Copy link
Contributor

According to the TF Juju provider juju_integration resource, there is an argument for lifecycle:

resource "juju_integration" "this" {
  ...
  application ...
  application ...
  
  # Add any RequiresReplace schema attributes of
  # an application in this integration to ensure
  # it is recreated if one of the applications
  # is Destroyed and Recreated by terraform. E.G.:
  lifecycle {
    replace_triggered_by = [
      juju_application.wordpress.name,
	  ...
      juju_application.percona-cluster.charm.name,
    ]
  }
}

For most charms, we want to keep any integrations when a charm dies. Are there any cases we would want to add this lifecycle feature to our integrations?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant