Skip to content

Commit

Permalink
Add helmlint action
Browse files Browse the repository at this point in the history
Signed-off-by: Ygal Blum <[email protected]>
  • Loading branch information
ygalblum committed Mar 25, 2024
1 parent 8d901f9 commit 641b679
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/helmlint.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
env:
CHART_LOCATION: cloud/helm/knowledgebase-slackbot
CHART_VALUES: tests/helmlint/dummy-values.yml
13 changes: 13 additions & 0 deletions tests/helmlint/dummy-service.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
"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"
}
6 changes: 6 additions & 0 deletions tests/helmlint/dummy-values.json
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 641b679

Please sign in to comment.