-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from abays/def_imgs_via_webhooks
Webhook for default images
- Loading branch information
Showing
32 changed files
with
1,018 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,7 +126,9 @@ build: generate fmt vet ## Build manager binary. | |
go build -o bin/manager main.go | ||
|
||
.PHONY: run | ||
run: export ENABLE_WEBHOOKS?=false | ||
run: manifests generate fmt vet ## Run a controller from your host. | ||
/bin/bash hack/clean_local_webhook.sh | ||
go run ./main.go | ||
|
||
.PHONY: docker-build | ||
|
@@ -310,3 +312,20 @@ gowork: ## Generate go.work file to support our multi module repository | |
operator-lint: gowork ## Runs operator-lint | ||
GOBIN=$(LOCALBIN) go install github.com/gibizer/[email protected] | ||
go vet -vettool=$(LOCALBIN)/operator-lint ./... ./api/... | ||
|
||
# Used for webhook testing | ||
# Please ensure the ovn-controller-manager deployment and | ||
# webhook definitions are removed from the csv before running | ||
# this. Also, cleanup the webhook configuration for local testing | ||
# before deplying with olm again. | ||
# $oc delete validatingwebhookconfiguration/vovndbcluster.kb.io | ||
# $oc delete mutatingwebhookconfiguration/movndbcluster.kb.io | ||
# $oc delete validatingwebhookconfiguration/vovnnorthd.kb.io | ||
# $oc delete mutatingwebhookconfiguration/movnnorthd.kb.io | ||
SKIP_CERT ?=false | ||
.PHONY: run-with-webhook | ||
run-with-webhook: export OVN_DBCLUSTER_IMAGE_URL_DEFAULT=quay.io/tripleozedcentos9/openstack-ovn-nb-db-server:current-tripleo | ||
run-with-webhook: export OVN_NORTHD_IMAGE_URL_DEFAULT=quay.io/tripleozedcentos9/openstack-ovn-northd:current-tripleo | ||
run-with-webhook: manifests generate fmt vet ## Run a controller from your host. | ||
/bin/bash hack/configure_local_webhook.sh | ||
go run ./main.go |
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
Oops, something went wrong.