-
Notifications
You must be signed in to change notification settings - Fork 0
fix: If not deleting, update with empty CA alias then delete #76
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Peter Fiddes <peter.fiddes@jetstack.io>
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) ✅ code/snyk check is complete. No issues have been found. (View Details) |
So this does actually delete the application... but I've got some errors to resolve:
Which means I have the app left in resources but it is actually deleted.
So process works, just need to change the flow to remove error and clean up the TF resource. |
Signed-off-by: Peter Fiddes <peter.fiddes@jetstack.io>
@aidy I'd appreciate your experience to find the glaring holes in this logic. This is mostly copy paste from the update function into the delete function with some tweaks to the inputs. I've tested a couple times and it sometimes working. Could use a pointer or two I think.
Looking again, maybe all the logic / subsequent calls should be in here? |
plan.ID = types.StringValue(updated.ID) | ||
diags = resp.State.Set(ctx, plan) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd hazard a guess that your problem is here, you don't have a fully instantiated plan
- just an otherwise empty applicationResourceModel
with the ID
attribute set, and so it might be failing whatever schema validation checks that are in State.Set
.
Signed-off-by: Peter Fiddes <peter.fiddes@jetstack.io>
Signed-off-by: Peter Fiddes <peter.fiddes@jetstack.io>
Attempt to fix #75 - Very much WIP.