Skip to content

Commit

Permalink
Merge pull request #59 from port-labs/PORT-5791-k-8-s-exporter-chart
Browse files Browse the repository at this point in the history
added validation to k8s exporter chart
  • Loading branch information
MatanHeledPort authored Dec 26, 2023
2 parents d9d3333 + 790dfce commit c6a9b62
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/validate-k8s-exporter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Helm Chart Validation

on:
pull_request:
paths:
- charts/port-k8s-exporter/**

jobs:
validate:
defaults:
run:
working-directory: charts/port-k8s-exporter/
runs-on: ubuntu-latest
name: Validate Helm Chart

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Helm
uses: azure/setup-helm@v3

- name: Create k8s Kind Cluster
uses: helm/[email protected]

- name: Lint Helm Chart
run: helm lint .

- name: Validate Helm Chart
run: |
helm template --set secret.secrets.portClientId=test \
--set secret.secrets.portClientSecret=test \
--set configMap.config=test . | kubectl apply --dry-run=client -f -

0 comments on commit c6a9b62

Please sign in to comment.