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
-
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.
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. No-op if none exist.
if [ -n"$$out" ];thenecho"$$out"|$(KUBECTL) apply -f -;elseecho"No CRDs to install; skipping.";fi
158
159
159
160
.PHONY: uninstall
160
-
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.
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. No-op if none exist.
if [ -n"$$out" ];thenecho"$$out"|$(KUBECTL) apply -f -;elseecho"No CRDs to install; skipping.";fi
162
163
163
164
.PHONY: uninstall
164
-
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.
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. No-op if none exist.
if [ -n "$$out" ]; then echo "$$out" | $(KUBECTL) apply -f -; else echo "No CRDs to install; skipping."; fi
237
238
238
239
.PHONY: uninstall
239
-
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.
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. No-op if none exist.
if [ -n"$$out" ];thenecho"$$out"|$(KUBECTL) apply -f -;elseecho"No CRDs to install; skipping.";fi
158
159
159
160
.PHONY: uninstall
160
-
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.
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. No-op if none exist.
if [ -n"$$out" ];thenecho"$$out"|$(KUBECTL) apply -f -;elseecho"No CRDs to install; skipping.";fi
158
159
159
160
.PHONY: uninstall
160
-
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.
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. No-op if none exist.
if [ -n"$$out" ];thenecho"$$out"|$(KUBECTL) apply -f -;elseecho"No CRDs to install; skipping.";fi
158
159
159
160
.PHONY: uninstall
160
-
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.
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. No-op if none exist.
0 commit comments