You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: handle empty CRD directories in Makefile install/uninstall
- Gracefully no-op install/uninstall when no CRDs exist
- Update sample Makefiles accordingly and add CI job to validate empty project
- Revert Dockerfile and .dockerignore changes; keep templates and samples matching upstream
if [ -n"$$out" ];thenecho"$$out"|$(KUBECTL) apply -f -;elseecho"No CRDs to install; skipping.";fi
162
163
163
164
.PHONY: uninstall
164
165
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.
if [ -n"$$out" ];thenecho"$$out"|$(KUBECTL) apply -f -;elseecho"No CRDs to install; skipping.";fi
158
159
159
160
.PHONY: uninstall
160
161
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.
if [ -n"$$out" ];thenecho"$$out"|$(KUBECTL) apply -f -;elseecho"No CRDs to install; skipping.";fi
162
163
163
164
.PHONY: uninstall
164
165
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.
if [ -n "$$out" ]; then echo "$$out" | $(KUBECTL) apply -f -; else echo "No CRDs to install; skipping."; fi
237
238
238
239
.PHONY: uninstall
239
240
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.
if [ -n"$$out" ];thenecho"$$out"|$(KUBECTL) apply -f -;elseecho"No CRDs to install; skipping.";fi
158
159
159
160
.PHONY: uninstall
160
161
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.
if [ -n"$$out" ];thenecho"$$out"|$(KUBECTL) apply -f -;elseecho"No CRDs to install; skipping.";fi
158
159
159
160
.PHONY: uninstall
160
161
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.
if [ -n"$$out" ];thenecho"$$out"|$(KUBECTL) apply -f -;elseecho"No CRDs to install; skipping.";fi
158
159
159
160
.PHONY: uninstall
160
161
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.
0 commit comments