Skip to content

Conversation

@frewilhelm
Copy link
Contributor

@frewilhelm frewilhelm commented Nov 29, 2024

Description

  • 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
  • add context on how to run make test
  • cleanup

@frewilhelm frewilhelm self-assigned this Nov 29, 2024
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
@frewilhelm frewilhelm force-pushed the sqRemoveTechnicalDebt branch from cec6092 to 95f7a8e Compare November 29, 2024 14:54
@frewilhelm frewilhelm marked this pull request as ready for review November 29, 2024 16:10
@frewilhelm frewilhelm requested a review from a team as a code owner November 29, 2024 16:10

# cleanup
rm -fr hack/rootCA.pem
if [[ -f hack/rootCA.pem ]]; then
Copy link
Contributor

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?

Copy link
Contributor

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. :)

Copy link
Contributor Author

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.

Copy link
Contributor Author

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

Copy link
Contributor

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

@Skarlso Skarlso merged commit 338d27c into open-component-model:main Nov 29, 2024
5 checks passed
@frewilhelm frewilhelm deleted the sqRemoveTechnicalDebt branch January 8, 2025 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🔒Closed

Development

Successfully merging this pull request may close these issues.

2 participants