Skip to content

Commit

Permalink
introduce a kustomize layer for gha, change storage class used
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Jun 10, 2024
1 parent 16429a7 commit eace493
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/k8s-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
minikube image load ghcr.io/sillsdev/lexbox-api:develop
minikube image load ghcr.io/sillsdev/lexbox-ui:develop
kubectl create namespace languagedepot
kubectl apply -k ./deployment/local-dev
kubectl apply -k ./deployment/gha
kubectl wait --for=condition=Ready --timeout=60s pod -l 'app in (lexbox, ui, hg, db)' -n languagedepot
- name: status
if: failure()
Expand Down
7 changes: 7 additions & 0 deletions deployment/gha/change-storage-class.patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: hg-repos
namespace: languagedepot
spec:
storageClassName: standard # Because kind only supports the standard storage class
16 changes: 16 additions & 0 deletions deployment/gha/kustomize.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: languagedepot

resources:
- ../local-dev/

patches:
- target:
version: v1
kind: PersistentVolumeClaim
path: change-storage-class.patch.yaml

images:
- name: busybox:1.36.1
newName: busybox:1.36.1

0 comments on commit eace493

Please sign in to comment.