Skip to content

Commit

Permalink
[feat] upgrade helm charts
Browse files Browse the repository at this point in the history
[feat] implement running test in ci-cd
  • Loading branch information
wirwolf committed Nov 24, 2023
1 parent 9e07062 commit d33b0e7
Show file tree
Hide file tree
Showing 59 changed files with 1,916 additions and 334 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/npm-build-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
# strategy:
# matrix:
# node-version: [16.x, 18.x]

steps:
- uses: actions/checkout@v3

Expand All @@ -24,6 +24,18 @@ jobs:
- run: yarn
- run: yarn run lint
- run: yarn run build

- name: Start minikube
uses: medyagh/setup-minikube@master

- name: Try the cluster !
run: kubectl get pods -A

- name: Run test -> deploy_worker
run: |
export HELM_ASSISTANT_BIN_CMD="helm-assistant"
bash tests/deploy_worker.sh
- name: Archive binary
uses: actions/upload-artifact@v3
with:
Expand Down
4 changes: 0 additions & 4 deletions src/Config/app-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ export class ConfigFactory {
HELM_ASSISTANT_RELEASE_LOCK_DRIVER: '',
HELM_BIN_PATH: env('HELM_BIN_PATH', 'helm'),
HELM_CMD_ARGS: env('HELM_CMD_ARGS', ''),
HELM_CACHE_HOME: env('HELM_CACHE_HOME', ''),
HELM_CONFIG_HOME: env('HELM_CONFIG_HOME', ''),
KUBECTL_BIN_PATH: env('KUBECTL_BIN_PATH', 'kubectl'),
KUBECTL_CMD_ARGS: env('KUBECTL_CMD_ARGS', ''),
HELM_DEBUG: envBoolean('HELM_DEBUG', false),
Expand All @@ -46,8 +44,6 @@ interface CoreConfigInterface {
LOGGER_DRIVER: string;
HELM_BIN_PATH: string;
HELM_CMD_ARGS: string;
HELM_CACHE_HOME: string;
HELM_CONFIG_HOME: string;
KUBECTL_BIN_PATH: string;
KUBECTL_CMD_ARGS: string;
HELM_DEBUG: boolean;
Expand Down
6 changes: 6 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

export KUBECONFIG=/home/wir_wolf/.kube/dijust.dev.yaml

#kubectl get nodes
kubectl get jobs -A -o json --selector app.kubernetes.io/instance=king-dev-skg-job-migration
2 changes: 0 additions & 2 deletions test/build_and_push_docker_image.sh

This file was deleted.

4 changes: 0 additions & 4 deletions test/charts/job/Chart.yaml

This file was deleted.

64 changes: 0 additions & 64 deletions test/charts/job/templates/job.yaml

This file was deleted.

55 changes: 0 additions & 55 deletions test/charts/job/values.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions test/charts/secret/Chart.lock

This file was deleted.

10 changes: 0 additions & 10 deletions test/charts/secret/Chart.yaml

This file was deleted.

Empty file.
18 changes: 0 additions & 18 deletions test/charts/secret/templates/tls-secret.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions test/charts/secret/values.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions test/charts/worker/Chart.yaml

This file was deleted.

96 changes: 0 additions & 96 deletions test/charts/worker/templates/deployment.yaml

This file was deleted.

54 changes: 0 additions & 54 deletions test/charts/worker/values.yaml

This file was deleted.

Loading

0 comments on commit d33b0e7

Please sign in to comment.