diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml index 9a50db4..be0f671 100644 --- a/.github/workflows/lint-test.yml +++ b/.github/workflows/lint-test.yml @@ -33,6 +33,27 @@ jobs: - name: Run chart-testing (lint) run: ct lint --all + - name: Build dependencies (if any) + run: | + helm dependency build charts/invenio || true + + # TODO: at some point we might want to add --kube-version + - name: Render manifests (helm template) + run: | + for vf in charts/invenio/ci/*-values.yaml; do + name="$(basename "$vf" .yaml)" + out="/tmp/invenio-${name}.yaml" + echo "--- Rendering with $vf -> $out" + helm template invenio-tmpl ./charts/invenio -f "$vf" > "$out" + done + + - name: Upload rendered manifests + uses: actions/upload-artifact@v4 + with: + name: invenio-templates + path: /tmp/invenio-*.yaml + if-no-files-found: error + # - name: create kind cluster # if: steps.list-changed.outputs.changed == 'true' # uses: helm/kind-action@v1.12.0 diff --git a/charts/invenio/ci/minimal-values.yaml b/charts/invenio/ci/minimal-values.yaml new file mode 100644 index 0000000..8a2c1dd --- /dev/null +++ b/charts/invenio/ci/minimal-values.yaml @@ -0,0 +1,33 @@ +invenio: + init: true + hostname: "my-site.local" + +# Slim down for testing +web: + replicas: 1 + +worker: + replicas: 1 + +redis: + replica: + replicaCount: 1 + +opensearch: + master: + replicaCount: 1 + ingest: + enabled: false + data: + replicaCount: 1 + coordinating: + replicaCount: 0 + +postgresql: + auth: + password: should-use-secrets + +rabbitmq: + enabled: true + auth: + password: should-use-secrets