From 641b6793981d69c88329e0f361212bef4ef444a5 Mon Sep 17 00:00:00 2001 From: Ygal Blum Date: Mon, 25 Mar 2024 11:52:19 +0200 Subject: [PATCH] Add helmlint action Signed-off-by: Ygal Blum --- .github/workflows/helmlint.yml | 28 ++++++++++++++++++++++++++++ tests/helmlint/dummy-service.json | 13 +++++++++++++ tests/helmlint/dummy-values.json | 6 ++++++ 3 files changed, 47 insertions(+) create mode 100644 .github/workflows/helmlint.yml create mode 100644 tests/helmlint/dummy-service.json create mode 100644 tests/helmlint/dummy-values.json diff --git a/.github/workflows/helmlint.yml b/.github/workflows/helmlint.yml new file mode 100644 index 0000000..f08e915 --- /dev/null +++ b/.github/workflows/helmlint.yml @@ -0,0 +1,28 @@ +name: Helm Lint +on: + push: + branches: + - main + pull_request: + workflow_call: + +jobs: + helmlint: + name: Helm Lint + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Create symlink to dummy service file + run: | + ln -s ../../../tests/helmlint/dummy-service.json cloud/helm/knowledgebase-slackbot/service.json + + - name: helm-check + uses: igabaydulin/helm-check-action@0.2.0 + env: + CHART_LOCATION: cloud/helm/knowledgebase-slackbot + CHART_VALUES: tests/helmlint/dummy-values.yml diff --git a/tests/helmlint/dummy-service.json b/tests/helmlint/dummy-service.json new file mode 100644 index 0000000..46ed3db --- /dev/null +++ b/tests/helmlint/dummy-service.json @@ -0,0 +1,13 @@ +{ + "type": "service_account", + "project_id": "dummy-project", + "private_key_id": "dummy-private_key_id", + "private_key": "dummy-private_key", + "client_email": "dymmy@example.iam.gserviceaccount.com", + "client_id": "0", + "auth_uri": "https://accounts.google.com/o/oauth2/auth", + "token_uri": "https://oauth2.googleapis.com/token", + "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", + "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/dummy%40example.iam.gserviceaccount.com", + "universe_domain": "googleapis.com" +} diff --git a/tests/helmlint/dummy-values.json b/tests/helmlint/dummy-values.json new file mode 100644 index 0000000..d28893d --- /dev/null +++ b/tests/helmlint/dummy-values.json @@ -0,0 +1,6 @@ +certificateIssuer: dummy-ca-issuer +ingestFolderID: dummy-folder-id +forwardChannel: dummy-channel +slackAppToken: xapp-dummy +slackBotToken: xoxb-dummy +ollamaServerAddress: dummy.example.com