-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-introduce support for Helm v2.x (#91)
* Re-introduce support for Helm v2.x Signed-off-by: Tom Kerkhove <[email protected]> * Ship 2.0.0-rc3 Signed-off-by: Tom Kerkhove <[email protected]> * Initialize Helm Signed-off-by: Tom Kerkhove <[email protected]> * Wait for Tiller! Signed-off-by: Tom Kerkhove <[email protected]> * Helm 2 commands Signed-off-by: Tom Kerkhove <[email protected]> * Let's use default Signed-off-by: Tom Kerkhove <[email protected]> * Tweak Tiller Signed-off-by: Tom Kerkhove <[email protected]> * Prepare Tiller Signed-off-by: Tom Kerkhove <[email protected]> * Remove Signed-off-by: Tom Kerkhove <[email protected]>
- Loading branch information
1 parent
5ff21c4
commit 77de67a
Showing
7 changed files
with
76 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,58 @@ name: Helm Chart CI | |
on: [pull_request] | ||
|
||
jobs: | ||
lint-helm-2-x: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Helm install v2.15.2 | ||
uses: Azure/setup-helm@v1 | ||
with: | ||
version: v2.15.2 | ||
|
||
- name: Lint 'KEDA' Helm chart | ||
run: helm lint keda | ||
|
||
deploy-helm-2-x: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Helm install | ||
uses: Azure/setup-helm@v1 | ||
with: | ||
version: v2.15.2 | ||
|
||
- name: Create k8s Kind Cluster | ||
uses: helm/[email protected] | ||
|
||
- name: Show Kubernetes version | ||
run: | | ||
kubectl version | ||
- name: Prepare Tiller | ||
run: | | ||
# Based on https://github.com/helm/helm/issues/3130#issuecomment-372931407 | ||
kubectl --namespace kube-system create serviceaccount tiller | ||
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller | ||
- name: Initialize Helm | ||
run: | | ||
helm init --wait --service-account tiller | ||
- name: Show Helm version | ||
run: | | ||
helm version | ||
- name: Template Helm chart | ||
run: helm template --name keda ./keda/ | ||
|
||
- name: Install Helm chart | ||
run: helm install --name keda ./keda/ | ||
|
||
lint-helm-3-x: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -37,5 +89,8 @@ jobs: | |
- name: Create keda namespace | ||
run: kubectl create ns keda | ||
|
||
- name: Template Helm chart | ||
run: helm template keda ./keda/ --namespace keda | ||
|
||
- name: Install Helm chart | ||
run: helm install keda ./keda/ --namespace keda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters