Skip to content

Commit 207d806

Browse files
authored
Remove descriptions from cosmosfullnode CRD in kustomize config (#487)
1 parent ed17196 commit 207d806

File tree

3 files changed

+8390
-12930
lines changed

3 files changed

+8390
-12930
lines changed

Makefile

Lines changed: 7 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ help: ## Display this help.
4242
.PHONY: manifests
4343
manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
4444
$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
45+
go run tools/minify-crd.go -v -o config/crd/bases/cosmos.strange.love_cosmosfullnodes.yaml
4546

4647
.PHONY: generate
4748
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
@@ -108,55 +109,28 @@ ifndef ignore-not-found
108109
endif
109110

110111
.PHONY: install
111-
install: manifests kustomize ## Install CRDs, RBAC, and Deployment into the K8s cluster specified in ~/.kube/config.
112-
mkdir output
113-
$(KUSTOMIZE) build config/default -o output
114-
go run tools/minify-crd.go -v -o output
115-
cd output && kubectl apply -f .
116-
rm -rf output
117-
118-
install-crds: manifests kustomize ## Install CRDs only into the K8s cluster specified in ~/.kube/config.
119-
mkdir output
120-
$(KUSTOMIZE) build config/crd -o output
121-
go run tools/minify-crd.go -v -o output
122-
cd output && kubectl apply -f .
123-
rm -rf output
112+
install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config.
113+
$(KUSTOMIZE) build config/crd | kubectl apply -f -
124114

125115
.PHONY: uninstall
126116
uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
127-
mkdir output
128-
$(KUSTOMIZE) build config/default -o output
129-
go run tools/minify-crd.go -v -o output
130-
cd output &&kubectl delete --ignore-not-found=$(ignore-not-found) -f .
131-
rm -rf output
117+
$(KUSTOMIZE) build config/crd | kubectl delete --ignore-not-found=$(ignore-not-found) -f -
132118

133119
.PHONY: deploy-prerelease
134120
deploy-prerelease: install docker-prerelease ## Install CRDs, build docker image, and deploy a prerelease controller to the K8s cluster specified in ~/.kube/config.
135121
cd config/manager && $(KUSTOMIZE) edit set image controller=$(PRE_IMG)
136-
mkdir output
137-
$(KUSTOMIZE) build config/default -o output
138-
go run tools/minify-crd.go -v -o output
139-
cd output && kubectl apply -f .
140-
rm -rf output
122+
$(KUSTOMIZE) build config/default | kubectl apply -f -
141123
@#Hack to reset tag to avoid git thrashing.
142124
@cd config/manager && $(KUSTOMIZE) edit set image controller=ghcr.io/strangelove-ventures/cosmos-operator:latest
143125

144126
.PHONY: deploy
145127
deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
146128
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
147-
mkdir output
148-
$(KUSTOMIZE) build config/default -o output
149-
go run tools/minify-crd.go -v -o output
150-
cd output && kubectl apply -f .
151-
rm -rf output
129+
$(KUSTOMIZE) build config/default | kubectl apply -f -
152130

153131
.PHONY: undeploy
154132
undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
155-
mkdir output
156-
$(KUSTOMIZE) build config/default -o output
157-
go run tools/minify-crd.go -v -o output
158-
cd output && kubectl delete --ignore-not-found=$(ignore-not-found) -f .
159-
rm -rf output
133+
$(KUSTOMIZE) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found) -f -
160134

161135
##@ Build Dependencies
162136

0 commit comments

Comments
 (0)