This repository has been archived by the owner on Jun 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit makes two changes: * Includes the kustomize tool so that we don't need to either fetch it from the internet or rely on one being installed locally. * Replaces portions of the Cloud Build process with the equivalent steps from the Makefile so they can't get out of sync. As a side effect, this required a bit of refactoring in the makefile, and I've moved some lines around to be more closely located with the relevant recipes. Finally, this includes a small docs change that was mistakenly left out of the last PR. Tested: made all targets locally; pushed a test tag to my repo and used the HNC_RELEASE_REPO_OWNER flag to build a fake release from that tag.
- Loading branch information
1 parent
8c65c19
commit 9eb3e1c
Showing
6 changed files
with
146 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Hacks | ||
|
||
Gotta love this directory name, eh? Let's try to cover what's in here. | ||
|
||
## HNC Build tools | ||
|
||
Whenever possible, we've tried to include build tools like controller-gen in the | ||
/vendors directory. In order to to force the Go tools _not_ to remove these | ||
runtime dependencies from the go.mod file, this directory contains a fake | ||
`tools.go` whose only purpose is to import these packages. Before you ask any | ||
more questions about that, check out | ||
https://stackoverflow.com/questions/52428230/how-do-go-modules-work-with-installable-commands | ||
and hopefully it will answer them. | ||
|
||
However, I wasn't able to get kustomize to fit in there, since it seems to have | ||
dependencies which are not compatible with the rest of HNC. So I've just checked | ||
in the Linux binary directly here. The exact version probably doesn't matter too | ||
much; I just used whatever was most current and it worked. | ||
|
||
## Templates | ||
|
||
`boilerplate.go.txt` includes the Apache header. Kubebuilder put it here and it | ||
seems like as good a place as any. | ||
|
||
`krew-hierarchical-namespaces.yaml` is a template for the Krew `kubectl-hns` | ||
plugin. | ||
|
||
## CI | ||
|
||
Other projects seem to put their presubmits, postsubmits etc here, so we did | ||
too. See ../README.md for where these are configured in Prow. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.