Skip to content

Commit

Permalink
Merge pull request kubesphere#3931 from yuswift/update-Makefile-for-helm
Browse files Browse the repository at this point in the history
Feature: support installing kubesphere-core with helm
  • Loading branch information
ks-ci-bot authored Jun 6, 2021
2 parents 2cc8975 + 70c53cc commit b77beed
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b77beed

Please sign in to comment.