Skip to content

Commit

Permalink
support cluster-wide default certificate (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
wasaga committed Feb 22, 2022
1 parent edf9269 commit 2fcb7d0
Show file tree
Hide file tree
Showing 12 changed files with 765 additions and 335 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust

generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."
go generate ./...

.PHONY: fmt
fmt: ## Run go fmt against code.
Expand All @@ -64,7 +65,7 @@ ENVTEST_ASSETS_DIR=$(shell pwd)/testbin
test: envoy manifests generate fmt vet ## Run tests.
mkdir -p ${ENVTEST_ASSETS_DIR}
test -f ${ENVTEST_ASSETS_DIR}/setup-envtest.sh || curl -sSLo ${ENVTEST_ASSETS_DIR}/setup-envtest.sh https://raw.githubusercontent.com/kubernetes-sigs/controller-runtime/v0.8.3/hack/setup-envtest.sh
source ${ENVTEST_ASSETS_DIR}/setup-envtest.sh; fetch_envtest_tools $(ENVTEST_ASSETS_DIR); setup_envtest_env $(ENVTEST_ASSETS_DIR); go test -race ./... -coverprofile cover.out
source ${ENVTEST_ASSETS_DIR}/setup-envtest.sh; fetch_envtest_tools $(ENVTEST_ASSETS_DIR); setup_envtest_env $(ENVTEST_ASSETS_DIR); ETCD_UNSUPPORTED_ARCH=arm64 go test -race ./... -coverprofile cover.out

##@ Build

Expand Down
1 change: 0 additions & 1 deletion controllers/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const (
// DefaultAnnotationPrefix defines prefix that would be watched for Ingress annotations
DefaultAnnotationPrefix = "ingress.pomerium.io"
// DefaultClassControllerName is controller name
//
DefaultClassControllerName = "pomerium.io/ingress-controller"
)

Expand Down
209 changes: 209 additions & 0 deletions controllers/client_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2fcb7d0

Please sign in to comment.