Skip to content

Commit

Permalink
crd: do not truncate descriptions, use ssa
Browse files Browse the repository at this point in the history
this was done only to make client-side-apply work (prevent large
last-applied annotation), but ssa is well-supported for a long time and
we have no intention to support ages-old clusters without ssa support
  • Loading branch information
xdavidwu committed May 2, 2024
1 parent ff069dc commit 8766cef
Show file tree
Hide file tree
Showing 2 changed files with 1,637 additions and 287 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ help: ## Display this help.

.PHONY: manifests
manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
$(CONTROLLER_GEN) rbac:roleName=manager-role crd:maxDescLen=256 webhook paths="./..." output:crd:artifacts:config=config/crd/bases
$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
$(CONTROLLER_GEN) rbac:roleName=kcgid paths="./internal/cgid/kubernetes/..." output:stdout > config/rbac/kcgid_clusterrole.yaml

.PHONY: generate
Expand Down Expand Up @@ -87,7 +87,7 @@ uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified
.PHONY: deploy
deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
$(KUSTOMIZE) build config/default | $(KUBECTL) apply -f -
$(KUSTOMIZE) build config/default | $(KUBECTL) apply --server-side -f -

.PHONY: undeploy
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.
Expand Down
Loading

0 comments on commit 8766cef

Please sign in to comment.