Skip to content

Commit

Permalink
Merge pull request #1174 from lamw/issue-1102
Browse files Browse the repository at this point in the history
chore: Cleanup unused GH workflows
  • Loading branch information
lamw authored Feb 20, 2024
2 parents ecd6eae + db23435 commit cd81a2d
Showing 1 changed file with 0 additions and 106 deletions.
106 changes: 0 additions & 106 deletions .github/workflows/router-helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,112 +17,6 @@ env:
KO_DOCKER_REPO: kind.local

jobs:
openfaas:
name: OpenFaaS Event Processor
runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Set up Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: 1.19
cache-dependency-path: vmware-event-router/go.sum

- name: Setup ko
uses: ko-build/setup-ko@ace48d793556083a76f1e3e6068850c1f4a369aa

- name: Get short COMMIT and TAG (used by ko)
run: |
echo "KO_COMMIT=$(echo -n $GITHUB_SHA | cut -c -8)" >> $GITHUB_ENV
echo "KO_TAG=$(basename "${{ github.ref }}")" >> $GITHUB_ENV
- name: Setup KinD Cluster
run: |
set -x
curl -Lo ./kind https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-$(uname)-amd64
chmod +x ./kind
sudo mv kind /usr/local/bin
# KinD configuration.
cat > kind.yaml <<EOF
apiVersion: kind.x-k8s.io/v1alpha4
kind: Cluster
nodes:
- role: control-plane
- role: worker
EOF
# Create a cluster!
kind create cluster --config kind.yaml --wait 3m
- name: Build router image with ko
working-directory: ./vmware-event-router
run: |
# loads image into kind
ko resolve -BRf deploy/event-router-k8s.yaml
- name: Install OpenFaaS with Helm
run: |
kubectl create ns openfaas && kubectl create ns openfaas-fn
helm repo add openfaas https://openfaas.github.io/faas-netes
helm repo update
helm upgrade openfaas --install openfaas/openfaas \
--namespace openfaas \
--set functionNamespace=openfaas-fn \
--set generateBasicAuth=true --wait
kubectl wait --timeout=3m --for=condition=Available -n openfaas deploy/gateway
echo "OF_PASS=$(kubectl -n openfaas get secret basic-auth -o jsonpath="{.data.basic-auth-password}" | base64 --decode)" >> $GITHUB_ENV
- name: Install vCenter Simulator
working-directory: ./vmware-event-router
run: |
kubectl create ns ${NAMESPACE}
kubectl -n ${NAMESPACE} apply -f deploy/vcsim.yaml
kubectl wait --timeout=3m --for=condition=Available -n ${NAMESPACE} deploy/vcsim
- name: Install VMware Event Router with Helm
working-directory: ./vmware-event-router
run: |
echo "::group::Create override.yaml"
cat << EOF > override.yaml
image:
fullImage: kind.local/router:latest
pullPolicy: IfNotPresent
eventrouter:
config:
logLevel: debug
vcenter:
address: https://vcsim.${NAMESPACE}.svc.cluster.local
username: user
password: pass
insecure: true # ignore TLS certs
eventProcessor: openfaas
openfaas:
address: http://gateway.openfaas.svc.cluster.local:8080
basicAuth: true
username: admin
password: ${OF_PASS}
EOF
echo "::endgroup::"
echo "::group::Deploy VMware Event Router"
helm install veba-openfaas -n ${NAMESPACE} --wait -f override.yaml ./chart
# assert it deployed correctly
kubectl wait --timeout=3m --for=condition=Available -n ${NAMESPACE} deploy/router
echo "::endgroup::"
- name: "Debug"
if: ${{ always() }}
run: |
kubectl get pods --all-namespaces
kubectl -n ${NAMESPACE} describe pods
kubectl -n ${NAMESPACE} get events
knative:
name: Knative Event Processor
runs-on: ubuntu-latest
Expand Down

0 comments on commit cd81a2d

Please sign in to comment.