Skip to content
This repository has been archived by the owner on Mar 24, 2020. It is now read-only.

Makefile: Add kubeubilder and kustomize checks. #77

Merged
merged 2 commits into from
Aug 23, 2019

Conversation

russellb
Copy link
Member

Generating manifests and running the test suite require kustomize and
kubebuilder. Add a quick check for them to the Makefile to avoid less
obvious errors later if they are missing.

Closes issue #14.

Makefile Outdated
.PHONY: testprereqs
testprereqs:
@if [ ! -d /usr/local/kubebuilder ] ; then echo "kubebuilder not found. See docs/dev/setup.md" && exit 1 ; fi
@if ! which kustomize >/dev/null 2>&1 ; then echo "kustomize not found. See docs/dev/setup.md" && 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.

We could "go get" kustomize, couldn't we?

Copy link
Member Author

Choose a reason for hiding this comment

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

We could.

Right now docs/dev/setup.md points you to tools/install_kustomize.sh which we had because we required an older release of kustomize. That's not true anymore so it could be all dropped in favor of go get.

Copy link
Member Author

Choose a reason for hiding this comment

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

pushed another patch which does this

@dhellmann
Copy link
Member

Based on the failure, it looks like $PWD for the job in travis isn't the top of the repo?

@russellb russellb force-pushed the kubebuilder-req branch 2 times, most recently from d1c2ce4 to 1f6cb89 Compare May 29, 2019 18:06
russellb added 2 commits May 29, 2019 14:08
Generating manifests and running the test suite require kustomize and
kubebuilder.  Add a quick check for them to the Makefile to avoid less
obvious errors later if they are missing.

Closes issue metal3-io#14.
@russellb
Copy link
Member Author

Based on the failure, it looks like $PWD for the job in travis isn't the top of the repo?

I had removed that file, but missed that it was used in the travis-ci config

@dhellmann dhellmann merged commit acab6c7 into metal3-io:master Aug 23, 2019
@dhellmann dhellmann mentioned this pull request Aug 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants