Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CDAP 18854] Applying CRD fails with error: metadata.annotations: Too long: must have at most 262144 bytes #84

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ run: generate fmt vet manifests
go run ./main.go

# Install CRDs into a cluster
# Using --server-side flag as CRD is too large to set the last-applied-configuration
# annotation that kubectl apply automatically creates on client side
# Server side apply is supported in k8s version 1.18+
install: manifests
kustomize build config/crd | kubectl apply -f -
kustomize build config/crd | kubectl apply --server-side --force-conflicts -f -

# Uninstall CRDs from a cluster
uninstall: manifests
Expand All @@ -36,7 +39,7 @@ uninstall: manifests
# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
deploy: manifests
cd config/manager && kustomize edit set image controller=${IMG}
kustomize build config/default | kubectl apply -f -
kustomize build config/default | kubectl apply --server-side --force-conflicts -f -

# Generate manifests e.g. CRD, RBAC etc.
manifests: controller-gen
Expand Down