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

IdentityProviderConfig changes force a lifecycle_destroy #850

Closed
stevendborrelli opened this issue Aug 28, 2023 · 10 comments
Closed

IdentityProviderConfig changes force a lifecycle_destroy #850

stevendborrelli opened this issue Aug 28, 2023 · 10 comments
Labels
enhancement New feature or request is:triaged Indicates that an issue has been reviewed. stale

Comments

@stevendborrelli
Copy link
Contributor

stevendborrelli commented Aug 28, 2023

What problem are you facing?

Changes made to a IdentityProviderConfig causes the resource to be stuck in a lifecycle_destroy state. The resource should either be immutable or allow the recreation (which is currently against the XRM spec):

apiVersion: eks.aws.upbound.io/v1beta1
kind: IdentityProviderConfig
metadata:
  name: oidc-test
spec:
deletionPolicy: Delete
        forProvider:
          oidc:
          - clientId: {{your client id here }}
            groupsClaim: roles. ←------------We are attempting to change this to groups
            issuerUrl: {{ issuerURL here }}
            usernameClaim: upn

Causes a lifecycle_destroy error:

message: 'observe failed: cannot run plan: plan failed: Instance cannot be destroyed Resource aws_eks_identity_provider_config.use1-icp-internal-dev-rapid has lifecycle.prevent_destroy set, but the plan calls for this resource to be destroyed. To avoid this error and continue with the plan, either disable lifecycle.prevent_destroy or reduce the scope of the plan using the -target flag.'

How could Official AWS Provider help solve your problem?

Resources should check for ForceNew fields and either reject changes, or allow the user the option to recreate/destroy.

@stevendborrelli stevendborrelli added enhancement New feature or request needs:triage labels Aug 28, 2023
@haarchri
Copy link
Member

this issue we need to fix in upjet ?

@stevendborrelli
Copy link
Contributor Author

@haarchri yes, I believe it should be enforced there or at the XP level. Opened here to track the precise issue we encountered.

@stevendborrelli stevendborrelli changed the title IdentityproviderConfig changes force a lifecycle_destroy IdentityProviderConfig changes force a lifecycle_destroy Aug 28, 2023
@stevendborrelli
Copy link
Contributor Author

Related issue crossplane/upjet#78

@turkenf turkenf added is:triaged Indicates that an issue has been reviewed. and removed needs:triage labels Aug 28, 2023
@yebolenko
Copy link

The same happens also for kinesis Stream resource.
Once, it's created, it cannot be destroyed with the same error:
Instance cannot be destroyed Resource lifecycle.prevent_destroy set, but the plan calls for this resource to be destroyed. To avoid this error and continue with the plan, either disable lifecycle.prevent_destroy or reduce the scope of the plan using the -target flag.'

Copy link

github-actions bot commented Apr 2, 2024

This provider repo does not have enough maintainers to address every issue. Since there has been no activity in the last 90 days it is now marked as stale. It will be closed in 14 days if no further activity occurs. Leaving a comment starting with /fresh will mark this issue as not stale.

@github-actions github-actions bot added the stale label Apr 2, 2024
@yebolenko
Copy link

any update?

@github-actions github-actions bot removed the stale label Apr 3, 2024
Copy link

github-actions bot commented Jul 2, 2024

This provider repo does not have enough maintainers to address every issue. Since there has been no activity in the last 90 days it is now marked as stale. It will be closed in 14 days if no further activity occurs. Leaving a comment starting with /fresh will mark this issue as not stale.

@github-actions github-actions bot added the stale label Jul 2, 2024
@haarchri
Copy link
Member

haarchri commented Jul 2, 2024

/fresh

@github-actions github-actions bot removed the stale label Jul 3, 2024
Copy link

github-actions bot commented Oct 1, 2024

This provider repo does not have enough maintainers to address every issue. Since there has been no activity in the last 90 days it is now marked as stale. It will be closed in 14 days if no further activity occurs. Leaving a comment starting with /fresh will mark this issue as not stale.

@github-actions github-actions bot added the stale label Oct 1, 2024
Copy link

This issue is being closed since there has been no activity for 14 days since marking it as stale. If you still need help, feel free to comment or reopen the issue!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request is:triaged Indicates that an issue has been reviewed. stale
Projects
None yet
Development

No branches or pull requests

4 participants