-
Notifications
You must be signed in to change notification settings - Fork 27
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
#739 - Fixed commands used landingzonev2 readme #740
#739 - Fixed commands used landingzonev2 readme #740
Conversation
FYI, previous PR context where the delete work was spawned out of Alain, good point on the order of deletion, i rarely had a chance to delete the full lz lately - to sacrifice the cluster. normally i use kpt to recycle but in my last corruption of the lz running hub-env on top of the clz package had issues with remaining services - using kubectl describe was too late. I dont think i started with the config-controller ns but i will retest on a clean org and update the docs and script with config-control last - good point |
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.
Jackson, for both of the sh fragments in the readme - they ideally should have before/after or cause/fix runtime testing on a running V2 LZ with at least the core-landing-zone package up.
see for example PR testing around a single line change to list the cc cluster in the this readme
#743
1ceecdb
to
7320c4c
Compare
The below shows the devtest results before and after fixingBefore Fixing
When ran the below command to clean up the RootSync resource, got the below error.
The below screenshot shows the above root-sync resource is not even found.
The above command just removed all gcp resources from the default namespace config-control as shown below.
To conclude based on the above facts, the given command does not remove all gcp resources. After FixingRun the below kpt command to destroy all deployed gcp resources of a given solution.
You can see the above command is deleting a lot of gcp resources as shown below.
To conclude based on the above devtest results, the above kpt approach works well as expected as for making a full cleanup. |
Good point, I would stick to kpt - the readme just happens to have the lower kubectl delete - hence why I raised #593 Oct 22nd kpt live destroy This is what my issue id on deletion mentions to do in 593 - don't use kubectl delete
Check the in-progress LZ automation script (I didn't have a problem with liens last time)
This is what the faq mentions
I added 593 in a comment above 5 days ago |
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.
Jackson, very nice reproduction and options for adjustment around either recommended kpt live destroy - or reverse aligned lower level kubectl delete - in sequence.
When the patch is finalized I will approve your changes
6bbbad9
to
a28267e
Compare
Resolved with only keeping the ktp approach as suggested by you, and please continue to review it. @fmichaelobrien |
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.
All good - just the anthos keyword back and the pr is ready
a28267e
to
4f5bd58
Compare
Resolved. |
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.
/lgtm
@stanimprover do you mind review and approve this PR? |
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.
Looks good. I thought we would leave the "kubectl delete gcp -A" in its place incase of any underlying resources that need to be clean up. Overall looks good and I would add on the comment above the "gloud anthos config controller delete $CLUSTER --location $REGION", CLUSTER NAME without the [krmapihost-]. Thanks
Hey @stanimprover , As for the suggested kubectl-based low level deletion approach, we have made a consent to no provide such a way, not even mention the command "kubectl delete gcp -A" is invalid as shown below.
As for the prompt about cluster name prefix, when you run the list command, you will have the below result.
You can see there is NO any ambiguity on cluster name. |
looks good. |
guys, lets check permissions tomorrow and verify that review +1s are avaulable, so far inly one +1 is in. we should be able to fix this so you can review each others PRs |
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.
Looks good.
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.
lgtm
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.
/lgtm
lgtm....good job |
This PR is to fix the two kubectl delete commands from the below link.
https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/blob/main/docs/landing-zone-v2/README.md#clean-up
See #739