From 70c53cc723f937df065a44219eec6b07317ce982 Mon Sep 17 00:00:00 2001 From: yuswift Date: Wed, 2 Jun 2021 16:05:16 +0800 Subject: [PATCH] update Makefile for helm-deplp && helm-uninstall Signed-off-by: yuswift --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d70922678..30929b3c7 100644 --- a/Makefile +++ b/Makefile @@ -98,11 +98,19 @@ docker-build-no-test: ks-apiserver ks-controller-manager hack/docker_build.sh helm-package: - ls config/crds/ | grep -v types.kubefed.io | xargs -i cp -r config/crds/{} config/ks-core/crds/ + ls config/crds/ | xargs -i cp -r config/crds/{} config/ks-core/crds/ helm package config/ks-core --app-version=v3.1.0 --version=0.1.0 -d ./bin helm-deploy: + ls config/crds/ | xargs -i cp -r config/crds/{} config/ks-core/crds/ + - kubectl create ns kubesphere-controls-system helm upgrade --install ks-core ./config/ks-core -n kubesphere-system --create-namespace + kubectl apply -f https://raw.githubusercontent.com/kubesphere/ks-installer/master/roles/ks-core/prepare/files/ks-init/role-templates.yaml + +helm-uninstall: + - kubectl delete ns kubesphere-controls-system + helm uninstall ks-core -n kubesphere-system + kubectl delete -f https://raw.githubusercontent.com/kubesphere/ks-installer/master/roles/ks-core/prepare/files/ks-init/role-templates.yaml # Run tests test: fmt vet