Skip to content

Commit

Permalink
Fix: CLUSTER_NAME must be set
Browse files Browse the repository at this point in the history
  • Loading branch information
atrakic committed Apr 24, 2021
1 parent ff12585 commit 6b64673
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/cdk8s-k3d.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
cdk8s-k3d:
name: CDK8s with k3d
name: CDK8s with k3d
runs-on: ubuntu-latest

defaults:
Expand All @@ -23,16 +23,17 @@ jobs:
- uses: AbsaOSS/[email protected]
id: k3d-cluster-1
with:
cluster-name: "test-cluster-1"
args: >-
--agents 1
--config=k3d.yaml
- name: Cluster info
run: |
echo k3d-cluster-1: ${{ steps.k3d-cluster-1.outputs.network }} ${{ steps.k3d-cluster-1.outputs.subnet-CIDR }}
echo
kubectl cluster-info
- name: Install CDK8s-cli
run: npm install -g cdk8s-cli

Expand All @@ -41,7 +42,7 @@ jobs:
pip3 install --user pipenv
PYTHON_BIN_PATH="$(python3 -m site --user-base)/bin"
export PATH="$PATH:$PYTHON_BIN_PATH"
- name: CDK8s import
run: |
pipenv install
Expand All @@ -50,7 +51,7 @@ jobs:
- name: CDK8s synthesize into a k8s template
run: |
cdk8s synth
- name: Apply the k8s template
run: |
kubectl apply -f ./dist/hello.k8s.yaml
Expand Down

0 comments on commit 6b64673

Please sign in to comment.