-
Notifications
You must be signed in to change notification settings - Fork 16
Sidequest: Remove technical debt #563
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
Sidequest: Remove technical debt #563
Conversation
the deploy targets do not work anymore since the directory-structure does not exist. This is because the deployment needs an additionaly OCI registry. To deploy the controller one can use the instructions in the README.md
cec6092 to
95f7a8e
Compare
|
|
||
| # cleanup | ||
| rm -fr hack/rootCA.pem | ||
| if [[ -f hack/rootCA.pem ]]; then |
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.
Why do you need the if?
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.
rm -fr will exit 0 even if the thing doesn't exist. :)
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.
because -f (force-)pushes are not best practice in scripts. It is surely opinionated, but force-removals can be risky and are not necessary in most situations.
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.
Why do you need the if?
To not use -f :D
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.
In this situation we also want to make sure that a rootCA with a bad chmod or a different user is also removed. Or if it was created with a super user. But meh. :) I'm not gonna die on this hill. :D
Description
To deploy the controller one can use the instructions in the README.md
make test