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: improve Makefile install/uninstall targets to handle no-op scenarios for CRDs
- Add graceful handling for projects without CRDs in install/uninstall targets
- Fix e2e test execution for projects without CRDs
- Prevents 'no matches for kind' errors when running make install/uninstall
- Maintains backwards compatibility for projects with CRDs
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