Add CI install step
Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
This commit is contained in:
parent
95085c4e72
commit
52e4516e04
19
.github/configs/cluster-config.yaml
vendored
Normal file
19
.github/configs/cluster-config.yaml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
apiVersion: kind.x-k8s.io/v1alpha4
|
||||||
|
kind: Cluster
|
||||||
|
nodes:
|
||||||
|
- role: control-plane
|
||||||
|
kubeadmConfigPatches:
|
||||||
|
- |
|
||||||
|
kind: ClusterConfiguration
|
||||||
|
controllerManager:
|
||||||
|
extraArgs:
|
||||||
|
bind-address: 0.0.0.0
|
||||||
|
secure-port: "10257"
|
||||||
|
scheduler:
|
||||||
|
extraArgs:
|
||||||
|
bind-address: 0.0.0.0
|
||||||
|
secure-port: "10259"
|
||||||
|
- |
|
||||||
|
kind: KubeProxyConfiguration
|
||||||
|
metricsBindAddress: 0.0.0.0:10249
|
||||||
|
- role: worker
|
76
.github/workflows/helm-ci.yml
vendored
76
.github/workflows/helm-ci.yml
vendored
@ -19,48 +19,48 @@ jobs:
|
|||||||
- name: Lint Yaml
|
- name: Lint Yaml
|
||||||
run: make helm-lint
|
run: make helm-lint
|
||||||
|
|
||||||
# call-test:
|
call-test:
|
||||||
# name: Test Helm Chart
|
name: Test Helm Chart
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# steps:
|
steps:
|
||||||
# - name: Checkout
|
- name: Checkout
|
||||||
# uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
# with:
|
with:
|
||||||
# fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
# - name: Set up Helm
|
- name: Set up Helm
|
||||||
# uses: azure/setup-helm@v3
|
uses: azure/setup-helm@v3
|
||||||
# with:
|
with:
|
||||||
# version: v3.8.2
|
version: v3.8.2
|
||||||
|
|
||||||
# # Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and
|
# Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and
|
||||||
# # yamllint (https://github.com/adrienverge/yamllint) which require Python
|
# yamllint (https://github.com/adrienverge/yamllint) which require Python
|
||||||
# - name: Set up Python
|
- name: Set up Python
|
||||||
# uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
# with:
|
with:
|
||||||
# python-version: 3.7
|
python-version: 3.9
|
||||||
|
|
||||||
# - name: Set up chart-testing
|
- name: Set up chart-testing
|
||||||
# uses: helm/chart-testing-action@v2.4.0
|
uses: helm/chart-testing-action@v2
|
||||||
|
|
||||||
# - name: Run chart-testing (list-changed)
|
- name: Run chart-testing (list-changed)
|
||||||
# id: list-changed
|
id: list-changed
|
||||||
# run: |
|
run: |
|
||||||
# changed=$(ct list-changed --config "${CT_CONFIGFILE}")
|
changed=$(ct list-changed --config "${CT_CONFIGFILE}")
|
||||||
# if [[ -n "$changed" ]]; then
|
if [[ -n "$changed" ]]; then
|
||||||
# echo "changed=true" >> $GITHUB_OUTPUT
|
echo "changed=true" >> $GITHUB_OUTPUT
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
# - name: Run chart-testing (lint)
|
- name: Run chart-testing (lint)
|
||||||
# run: ct lint --config "${CT_CONFIGFILE}" --check-version-increment=false
|
run: ct lint --config "${CT_CONFIGFILE}" --check-version-increment=false
|
||||||
|
|
||||||
# - name: Create kind cluster
|
- name: Create kind cluster
|
||||||
# uses: helm/kind-action@v1.8.0
|
uses: helm/kind-action@v1
|
||||||
# if: steps.list-changed.outputs.changed == 'true'
|
if: steps.list-changed.outputs.changed == 'true'
|
||||||
# with:
|
with:
|
||||||
# config: tools/kind.config
|
config: "${{ github.workspace }}/.github/configs/cluster-config.yaml"
|
||||||
|
|
||||||
# - name: Run chart-testing (install)
|
- name: Run chart-testing (install)
|
||||||
# run: |
|
run: |
|
||||||
# changed=$(ct list-changed --config "${CT_CONFIGFILE}")
|
changed=$(ct list-changed --config "${CT_CONFIGFILE}")
|
||||||
# ct install --config "${CT_CONFIGFILE}"
|
ct install --config "${CT_CONFIGFILE}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user