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

chore(makefile): simplify kustomize CRD updates #1545

Merged
merged 2 commits into from
May 22, 2024

Conversation

weisdd
Copy link
Collaborator

@weisdd weisdd commented May 21, 2024

At the moment, we have a separate step in Makefile (kustomize-crd) that copies CRDs to deploy/kustomize/base/crds.yaml.
This is a bit inconvenient, because, to update all manifests, we need to run two commands: make manifests and make kustomize-crd.

To simplify the flow, I suggest to directly refer to config/crd from deploy/kustomize/base/kustomization.yaml, so we won't need to maintain deploy/kustomize/base/crds.yaml, and all manifests updates will be covered by make manifests.

@weisdd weisdd changed the title chore(makefile): simplify kustomize chore(makefile): simplify kustomize updates May 21, 2024
@weisdd weisdd changed the title chore(makefile): simplify kustomize updates chore(makefile): simplify kustomize CRD updates May 21, 2024
Comment on lines -174 to -180
- name: Check if working tree is dirty
run: |
if [[ $(git status --porcelain) ]]; then
git diff
echo '::error::run make kustomize-crd or make all and commit changes'
exit 1
fi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this check still happening at some point?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's needed only in places where something can get generated. Manifests are generated in test job, so it's checked there :)

@NissesSenap NissesSenap merged commit 24f7a08 into master May 22, 2024
10 checks passed
@NissesSenap NissesSenap deleted the chore/simplify-kustomize branch May 22, 2024 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants