Skip to content

Commit

Permalink
chore: move to crd v1
Browse files Browse the repository at this point in the history
  • Loading branch information
rudoi committed Aug 22, 2020
1 parent 0a60fb9 commit 062c878
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 505 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

# Image URL to use all building/pushing image targets
IMG ?= controller:latest
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
CRD_OPTIONS ?= "crd:trivialVersions=true"

# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
ifeq (,$(shell go env GOBIN))
Expand Down Expand Up @@ -36,11 +34,11 @@ deploy: manifests

# Generate manifests e.g. CRD, RBAC etc.
manifests: controller-gen
$(CONTROLLER_GEN) $(CRD_OPTIONS) \
$(CONTROLLER_GEN) \
crd:crdVersions=v1 \
rbac:roleName=manager-role \
webhook paths="./..." \
output:crd:artifacts:config=config/crd/bases
output:crd:dir=./config/crd/bases

# Run go fmt against code
fmt:
Expand Down
Loading

0 comments on commit 062c878

Please sign in to comment.