Commit 37c9ae49 authored by xuwang's avatar xuwang
Browse files

feat(gke.mk): add upgrade-kubescape and uninstall-kubescape targets



Changelog: added
Co-Authored-By: default avatarClaude Sonnet 4.6 <noreply@anthropic.com>
parent e55cd778
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -113,6 +113,19 @@ install-kubescape: kc-config ## Install Kubescape operator for continuous cluste
		--set clusterName=${GKE_CLUSTER_NAME} \
		--set capabilities.continuousScan=enable

.PHONY: upgrade-kubescape
upgrade-kubescape: kc-config ## Upgrade Kubescape operator to latest chart version
	helm repo update
	helm upgrade kubescape kubescape/kubescape-operator \
		-n kubescape \
		--set clusterName=${GKE_CLUSTER_NAME} \
		--set capabilities.continuousScan=enable

.PHONY: uninstall-kubescape
uninstall-kubescape: kc-config ## Uninstall Kubescape operator
	@confirm.sh "Uninstall Kubescape from cluster ${GKE_CLUSTER_NAME}?"
	helm uninstall kubescape -n kubescape

# Exposes cluster object metrics scrapeable by Prometheus / visualizable in Grafana
.PHONY: install-kube-state-metrics
install-kube-state-metrics: kc-config ## Install kube-state-metrics for cluster object metrics