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"
8
8
kubectl version
9
9
10
10
# 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
12
12
13
13
# Installing the CRD,Operator,Role
14
14
ns=mongodb-atlas-system
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ mkdir -p "${crds_dir}"
14
14
mkdir -p " ${openshift} "
15
15
16
16
# 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
18
18
cd config/manager && kustomize edit set image controller=" ${INPUT_IMAGE_URL} "
19
19
cd -
20
20
./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
125
125
# Produce CRDs that work back to Kubernetes 1.16 (so 'apiVersion: apiextensions.k8s.io/v1')
126
126
manifests : CRD_OPTIONS ?= "crd:crdVersions=v1"
127
127
manifests : 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
129
129
@./scripts/split_roles_yaml.sh
130
130
131
131
.PHONY : lint
@@ -144,7 +144,7 @@ vet: ## Run go vet against code
144
144
145
145
.PHONY : generate
146
146
generate : 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/ ..."
148
148
149
149
.PHONY : controller-gen
150
150
CONTROLLER_GEN = $(shell pwd) /bin/controller-gen
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ docker build -t "${image}" .
13
13
docker push " ${image} "
14
14
15
15
# 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
17
17
18
18
# Installing the CRD,Operator,Role
19
19
ns=mongodb-atlas-system
You can’t perform that action at this time.
0 commit comments