Skip to content

Commit

Permalink
ci: setup a license for vmanomaly chart testing
Browse files Browse the repository at this point in the history
Creating a secret when testing any chart for simplicity. Currently, only vmanomaly chart needs the license key to for testing.
  • Loading branch information
zekker6 committed Feb 23, 2024
1 parent 847bf28 commit c7ec612
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/run-testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ jobs:
kubectl taint --all=true nodes node.cloudprovider.kubernetes.io/uninitialized- || true
- name: Run chart-testing (install)
env:
VMANOMALY_LICENSE_CICD: ${{ secrets.VMANOMALY_LICENSE_CICD }}
run: |
kubectl create secret generic vmanomaly-license --from-literal=license=$VMANOMALY_LICENSE_CICD
helm dep update charts/${{ matrix.chart }}
ct install --config .github/ci/ct.yaml --charts "charts/${{ matrix.chart }}" --helm-extra-set-args "--values ./hack/helm/${{ matrix.chart }}.yaml"
6 changes: 5 additions & 1 deletion hack/helm/victoria-metrics-anomaly.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
eula: true
config:
reader:
datasource_url: http://cluster-victoria-metrics-cluster-vmselect.default.svc.cluster.local:8481/select/
Expand All @@ -20,3 +19,8 @@ config:
url: "http://cluster-victoria-metrics-cluster-vminsert.default.svc.cluster.local:8480/insert/"
extra_labels:
job: "vmanomaly"

license:
secret:
name: "vmanomaly-license"
key: "license"

0 comments on commit c7ec612

Please sign in to comment.