Skip to content

Commit c9db4ae

Browse files
authored
Fix workflow (#933)
1 parent 1c95796 commit c9db4ae

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/actions/deploy/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export KUBECONFIG="./kube.config"
88
kubectl 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
1414
ns=mongodb-atlas-system

.github/actions/gen-install-scripts/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ mkdir -p "${crds_dir}"
1414
mkdir -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
1818
cd config/manager && kustomize edit set image controller="${INPUT_IMAGE_URL}"
1919
cd -
2020
./scripts/split_roles_yaml.sh

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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')
126126
manifests: CRD_OPTIONS ?= "crd:crdVersions=v1"
127127
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
129129
@./scripts/split_roles_yaml.sh
130130

131131
.PHONY: lint
@@ -144,7 +144,7 @@ vet: ## Run go vet against code
144144

145145
.PHONY: generate
146146
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/..."
148148

149149
.PHONY: controller-gen
150150
CONTROLLER_GEN = $(shell pwd)/bin/controller-gen

scripts/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ docker build -t "${image}" .
1313
docker 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
1919
ns=mongodb-atlas-system

0 commit comments

Comments
 (0)