Skip to content

Commit

Permalink
some more restructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Nov 29, 2024
1 parent e4eb9be commit 18e334e
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 116 deletions.
103 changes: 0 additions & 103 deletions .github/workflows/kind-cloud.yaml

This file was deleted.

17 changes: 13 additions & 4 deletions .github/workflows/kind.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: Deploy on Kubernetes (Edge)
name: Deploy on Kind

on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *" # This will run the workflow every day at midnight UTC

jobs:
deploy-kind:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
kind: [v0.21.0, v0.22.0, v0.23.0, v0.24.0]
steps:
- name: Create k8s Kind Cluster
- name: Create kind
uses: helm/kind-action@v1
with:
version: ${{ matrix.kind }}
- name: Print Kubernetes Version
run: |
kubectl version
- name: Test Kubernetes Cluster
- name: Test kind
run: |
kubectl get no
kubectl get pods -A -o wide
Expand Down Expand Up @@ -85,3 +85,12 @@ jobs:
echo "Sleeping for 250 seconds, give time for the helm chart to create the pods" && sleep 250
kubectl get pods -A -o wide
kubectl get pods -A -o wide | grep data-filtering | awk '{print $3}' | grep -q '1/1' && echo "data-filtering pod is running with status 1/1" || (echo "data-filtering pod is not running with status 1/1" && exit 1)
- name: Install Kerberos Hub helm chart
id: install-kerberos-hub
run: |
helm repo add kerberos https://charts.kerberos.io
kubectl create namespace kerberos-hub
helm install hub kerberos/hub --values ./base/hub/kerberos-hub-values.yaml -n kerberos-hub --create-namespace
echo "Sleeping for 300 seconds, give time for the helm chart to create the pods" && sleep 300
kubectl get pods -A -o wide
kubectl get pods -A -o wide | grep kerberos-hub | awk '{print $3}' | grep -q '1/1' && echo "kerberos-hub pod is running with status 1/1" || (echo "kerberos-hub pod is not running with status 1/1" && exit 1)
16 changes: 12 additions & 4 deletions .github/workflows/microk8s.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: Deploy on Microk8s (Edge)
name: Deploy on microk8s
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *" # This will run the workflow every day at midnight UTC
jobs:
deploy-microk8s:
deploy:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
name: MicroK8s
steps:
- uses: balchua/[email protected]
with:
Expand All @@ -18,7 +17,7 @@ jobs:
- name: Set permissions
run: |
sudo chown -f -R $USER $HOME/.kube $HOME/.config
- name: Test MicroK8s
- name: Test microk8s
id: list-pods
run: |
kubectl get no
Expand Down Expand Up @@ -84,3 +83,12 @@ jobs:
echo "Sleeping for 250 seconds, give time for the helm chart to create the pods" && sleep 250
kubectl get pods -A -o wide
kubectl get pods -A -o wide | grep data-filtering | awk '{print $3}' | grep -q '1/1' && echo "data-filtering pod is running with status 1/1" || (echo "data-filtering pod is not running with status 1/1" && exit 1)
- name: Install Kerberos Hub helm chart
id: install-kerberos-hub
run: |
helm repo add kerberos https://charts.kerberos.io
kubectl create namespace kerberos-hub
helm install hub kerberos/hub --values ./base/hub/kerberos-hub-values.yaml -n kerberos-hub --create-namespace
echo "Sleeping for 300 seconds, give time for the helm chart to create the pods" && sleep 300
kubectl get pods -A -o wide
kubectl get pods -A -o wide | grep kerberos-hub | awk '{print $3}' | grep -q '1/1' && echo "kerberos-hub pod is running with status 1/1" || (echo "kerberos-hub pod is not running with status 1/1" && exit 1)
16 changes: 11 additions & 5 deletions base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
resources:
- mongodb-configmap.yaml
- kerberos-factory-deployment.yaml
- kerberos-factory-service.yaml
- kerberos-factory-clusterrole.yaml
- kerberos-vault-deployment.yaml
- kerberos-vault-service.yaml
- factory/kerberos-factory-deployment.yaml
- factory/kerberos-factory-service.yaml
- factory/kerberos-factory-clusterrole.yaml
- vault/kerberos-vault-deployment.yaml
- vault/kerberos-vault-service.yaml

helmCharts:
- name: mongodb
releaseName: mongodb
repo: https://charts.bitnami.com/bitnami
valuesFile: mongodb-values.yaml
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 18e334e

Please sign in to comment.