File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export KUBECONFIG="./kube.config"
88kubectl version
99
1010# Prepare CRDs
11- controller-gen crd:crdVersions=v1 rbac:roleName=manager-role webhook paths=" ./..." output:crd:artifacts:config=config/crd/bases
11+ controller-gen crd:crdVersions=v1 rbac:roleName=manager-role webhook paths=" ./pkg/api/ ..." output:crd:artifacts:config=config/crd/bases
1212
1313# Installing the CRD,Operator,Role
1414ns=mongodb-atlas-system
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ mkdir -p "${crds_dir}"
1414mkdir -p " ${openshift} "
1515
1616# Generate configuration and save it to `all-in-one`
17- controller-gen crd:crdVersions=v1 rbac:roleName=manager-role webhook paths=" ./..." output:crd:artifacts:config=config/crd/bases
17+ controller-gen crd:crdVersions=v1 rbac:roleName=manager-role webhook paths=" ./pkg/api/ ..." output:crd:artifacts:config=config/crd/bases
1818cd config/manager && kustomize edit set image controller=" ${INPUT_IMAGE_URL} "
1919cd -
2020./scripts/split_roles_yaml.sh
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ deploy: generate manifests run-kind ## Deploy controller in the configured Kuber
125125# Produce CRDs that work back to Kubernetes 1.16 (so 'apiVersion: apiextensions.k8s.io/v1')
126126manifests : CRD_OPTIONS ?= "crd:crdVersions=v1"
127127manifests : controller-gen # # Generate manifests e.g. CRD, RBAC etc.
128- $(CONTROLLER_GEN ) $(CRD_OPTIONS ) rbac:roleName=manager-role webhook paths=" ./..." output:crd:artifacts:config=config/crd/bases
128+ $(CONTROLLER_GEN ) $(CRD_OPTIONS ) rbac:roleName=manager-role webhook paths=" ./pkg/api/ ..." output:crd:artifacts:config=config/crd/bases
129129 @./scripts/split_roles_yaml.sh
130130
131131.PHONY : lint
@@ -144,7 +144,7 @@ vet: ## Run go vet against code
144144
145145.PHONY : generate
146146generate : controller-gen # # Generate code
147- $(CONTROLLER_GEN ) object:headerFile=" hack/boilerplate.go.txt" paths=" ./..."
147+ $(CONTROLLER_GEN ) object:headerFile=" hack/boilerplate.go.txt" paths=" ./pkg/api/ ..."
148148
149149.PHONY : controller-gen
150150CONTROLLER_GEN = $(shell pwd) /bin/controller-gen
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ docker build -t "${image}" .
1313docker push " ${image} "
1414
1515# Prepare CRDs
16- controller-gen crd:crdVersions=v1 rbac:roleName=manager-role webhook paths=" ./..." output:crd:artifacts:config=config/crd/bases
16+ controller-gen crd:crdVersions=v1 rbac:roleName=manager-role webhook paths=" ./pkg/api/ ..." output:crd:artifacts:config=config/crd/bases
1717
1818# Installing the CRD,Operator,Role
1919ns=mongodb-atlas-system
You can’t perform that action at this time.
0 commit comments