-
Notifications
You must be signed in to change notification settings - Fork 585
Clean TypeMeta's and ListMeta's description and force pruning #478
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
Conversation
f5f6a9c to
97eb6ff
Compare
| // configuration. If present, it will be used instead of the path to the configuration file. | ||
| // +nullable | ||
| // +kubebuilder:validation:PreserveUnknownFields | ||
| Configuration runtime.RawExtension `json:"configuration"` |
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.
this is an embedded resource I believe.
|
/lgtm |
|
/retest |
|
/hold |
|
Now that openshift/release#5484 merged |
|
/hold cancel |
| CONTROLLER_GEN_TEMP ?=$(PERMANENT_TMP_GOPATH)/src/sigs.k8s.io/controller-tools | ||
| controller_gen_gopath =$(shell realpath -m $(CONTROLLER_GEN_TEMP)/../..) | ||
| CONTROLLER_GEN ?=$(CONTROLLER_GEN_TEMP)/controller-gen | ||
| CONTROLLER_GEN ?=$(PERMANENT_TMP_GOPATH)/bin/controller-gen |
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 not give it a unique name? This way, when switching branches, you easily end up with the wrong generator.
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.
controller-gen-$(CONTROLLER_GEN_VERSION)
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.
Honestly, when switching branches make clean is needed, and make update in this repo is not that lengthy so I don't think that makes it worth the effort.
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.
Remember Tim Hockin's twitter comment about make semantics? Having to run make clean is such a violation.
| cd '$(CONTROLLER_GEN_TEMP)' && export GO111MODULE=on GOPATH='$(controller_gen_gopath)' && $(GO) mod vendor 2>/dev/null && $(GO) build -mod=vendor ./cmd/controller-gen | ||
| $(info Installing controller-gen into '$(CONTROLLER_GEN)') | ||
| mkdir -p '$(controller_gen_dir)' | ||
| curl -s -f -L https://github.com/openshift/kubernetes-sigs-controller-tools/releases/download/v0.2.1-37-ga3cca5d/controller-gen-$(GOHOSTOS)-$(GOHOSTARCH) -o '$(CONTROLLER_GEN)' |
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.
s/v0.2.1-37-ga3cca5d/$(CONTROLLER_GEN_VERSION)/
| @@ -1,29 +1,22 @@ | |||
| self_dir :=$(dir $(lastword $(MAKEFILE_LIST))) | |||
|
|
|||
| CONTROLLER_GEN_VERSION ?=v0.2.1 | |||
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.
CONTROLLER_GEN_VERSION ?=v0.2.1-37-ga3cca5d
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: soltysh, sttts The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/assign @sttts