Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
5a1386c
feat: add standalone RHDH Helm chart without upstream subchart depend…
rm3l Jun 17, 2026
2390d6b
deprecate backstage chart in favor of the new standalone rhdh chart
rm3l Jun 17, 2026
2166c42
run pre-commit hooks
rm3l Jun 17, 2026
0535a5f
Merge remote-tracking branch 'upstream/main' into RHDHPLAN-1058--impr…
rm3l Jun 17, 2026
6863fd4
clarify that backstage chart fixes target supported release-1.y branches
rm3l Jun 17, 2026
47ed937
update Chart.yaml with data from downstream chart
rm3l Jun 17, 2026
c45edb5
add CI values files for the rhdh chart
rm3l Jun 17, 2026
8cd6fb2
bump backstage chart version
rm3l Jun 17, 2026
62a2c40
fix issues reported by SonarQube
rm3l Jun 17, 2026
4f67c4d
support bitnami global fields in the rhdh chart
rm3l Jun 17, 2026
5569028
run pre-commit hooks
rm3l Jun 17, 2026
0c16624
upgrade bitnami postgresql dependency to 18.7.5
rm3l Jun 17, 2026
56e07d8
add digest field to all image blocks and document catalogIndex examples
rm3l Jun 17, 2026
c1b1d90
Merge branch 'main' into RHDHPLAN-1058--improve-helm-chart-configurat…
rm3l Jun 18, 2026
2b0e840
Merge remote-tracking branch 'upstream/main' into RHDHPLAN-1058--impr…
rm3l Jun 18, 2026
76ba3c5
fix(ci): skip ct upgrade test for new charts not yet on the target br…
rm3l Jun 18, 2026
b9e0e1e
fix(ci): set podSecurityContext for the rhdh chart on KinD
rm3l Jun 18, 2026
0ca7e13
feat(rhdh): add default appConfig with base URLs, database, and auth
rm3l Jun 18, 2026
4d8fbba
Merge branch 'main' into RHDHPLAN-1058--improve-helm-chart-configurat…
rm3l Jun 19, 2026
3179076
run pre-commit hooks
rm3l Jun 19, 2026
98d8b82
merge: resolve conflicts with upstream/main
rm3l Jul 7, 2026
dcfdec2
chore(rhdh): replace disabled with enabled in dynamic plugin configs …
rm3l Jul 7, 2026
0a5e8f0
run pre-commit hooks
rm3l Jul 7, 2026
c1b6004
fix(rhdh): fix lightspeed RAG init permissions and bump lightspeed-st…
rm3l Jul 7, 2026
13f8be5
fix(ci): drop runAsUser/runAsGroup overrides for rhdh chart on KinD
rm3l Jul 7, 2026
ffbb2dd
refactor(rhdh): move CI-only overrides from values files to test action
rm3l Jul 7, 2026
24800b6
chore(rhdh): apply Helm best practices to values.yaml
rm3l Jul 7, 2026
f720e9a
chore(rhdh): remove diagnosticMode from values and deployment template
rm3l Jul 8, 2026
c6c3028
chore(rhdh): downgrade postgresql subchart to 16.2.5
rm3l Jul 8, 2026
0c32767
refactor(rhdh): rename securityContext to containerSecurityContext
rm3l Jul 8, 2026
dd8ce84
refactor(rhdh): reuse containerSecurityContext for install-dynamic-pl…
rm3l Jul 8, 2026
c77cd4c
feat(rhdh): make dynamic-plugins-root volume configurable
rm3l Jul 8, 2026
e2d099f
refactor(rhdh): rename extra resource fields for clarity
rm3l Jul 8, 2026
18aa3c1
refactor(rhdh): rename env to extraEnv for consistency
rm3l Jul 8, 2026
2751cdb
feat(rhdh): add extraArgs and make args a full override
rm3l Jul 8, 2026
44d270c
fix(rhdh): reorder --config args so extraAppConfig overrides appConfig
rm3l Jul 8, 2026
d906fe8
refactor(rhdh): rename args to argsOverride for clarity
rm3l Jul 8, 2026
b727f5d
feat(rhdh): add envOverride for full env control
rm3l Jul 8, 2026
18615ec
run pre-commit hooks
rm3l Jul 8, 2026
d2b7ec0
refactor(rhdh): group OpenShift fields under openshift parent
rm3l Jul 8, 2026
f3ace17
refactor(rhdh): reorganize values.yaml by functional category
rm3l Jul 9, 2026
50d7d6e
refactor(rhdh): centralize labels and remove hardcoded namespace
rm3l Jul 9, 2026
a11cf4b
fix(rhdh): fix annotation ordering in route and add commonAnnotations…
rm3l Jul 9, 2026
d17500e
fix(rhdh): lowercase and truncate DB creation Job name
rm3l Jul 9, 2026
a2d1bf9
Merge remote-tracking branch 'upstream/main' into RHDHPLAN-1058--impr…
rm3l Jul 15, 2026
8e1b6d5
chore(backstage): mark chart as deprecated and bump to 6.2.3
rm3l Jul 15, 2026
3457192
docs: update root README with all charts and their status
rm3l Jul 15, 2026
6acd072
fix(rhdh): respect global.imageRegistry for catalog index images
rm3l Jul 15, 2026
886f66e
refactor(rhdh): simplify lightspeed configuration
rm3l Jul 15, 2026
3da7031
refactor(rhdh): restructure orchestrator configuration
rm3l Jul 15, 2026
43bb94f
Merge remote-tracking branch 'upstream/main' into RHDHPLAN-1058--impr…
rm3l Jul 15, 2026
65f6eec
test(rhdh): add CI test for lightspeed with existing ConfigMaps and S…
rm3l Jul 15, 2026
fd5979b
fix(rhdh): pin catalog index image to 1.10.1
rm3l Jul 15, 2026
cb6d28f
feat(rhdh): add missing upstream features from backstage/charts
rm3l Jul 15, 2026
247e805
fix(rhdh): pin catalog index image to 1.10.2
rm3l Jul 15, 2026
39b2186
fix(rhdh): bump lightspeed-core image from 0.5.2 to 0.5.3
rm3l Jul 17, 2026
81a6489
refactor(rhdh): improve configurability of auth, envFrom, and init co…
rm3l Jul 17, 2026
b472e4a
fix(rhdh): use POSTGRES_PASSWORD in default appConfig
rm3l Jul 17, 2026
d0eadaf
refactor(rhdh): use tplvalues.render consistently for user-facing values
rm3l Jul 17, 2026
f821a20
fix(rhdh): correct lightspeed schema and add missing sub-field defini…
rm3l Jul 17, 2026
6d88254
refactor(rhdh): rename command to commandOverride for main container
rm3l Jul 17, 2026
beb7134
refactor(rhdh): standardize secret reference naming
rm3l Jul 17, 2026
b99a2ea
fix(rhdh): use rhdh.fullname for resource names to respect overrides
rm3l Jul 17, 2026
38aa1bd
feat(rhdh): add extraArgs to sub-containers
rm3l Jul 17, 2026
e161cb6
feat(rhdh): add external database support
rm3l Jul 17, 2026
6cad7b9
feat(rhdh): honor global.defaultStorageClass for dynamic plugins volume
rm3l Jul 17, 2026
4b7f8c7
refactor(rhdh): flatten ephemeral volume config in values
rm3l Jul 17, 2026
dcdd909
chore(backstage): bump version to 6.2.10
rm3l Jul 17, 2026
a93b1ce
Merge remote-tracking branch 'upstream/main' into RHDHPLAN-1058--impr…
rm3l Jul 17, 2026
e88569b
refactor(rhdh): use fixed namespace for CI tests and remove test inje…
rm3l Jul 17, 2026
553011e
chore(rhdh): remove redundant overrides from CI values files
rm3l Jul 17, 2026
2437e7a
chore(rhdh): drop npmrc CI test and comment out its secret creation
rm3l Jul 17, 2026
1d1a698
fix(rhdh): remove inaccurate storageClassName comment
rm3l Jul 17, 2026
4fe5fc3
feat(rhdh): expose dynamicPlugins.maxEntrySize and fix external DB CI…
rm3l Jul 17, 2026
0a4720c
refactor(rhdh): consolidate CI values files and remove dbCreationJob.…
rm3l Jul 17, 2026
97e0447
chore(rhdh): switch catalogIndex image tag to next
rm3l Jul 17, 2026
c8cbac5
chore(rhdh): skip dynamic plugin downloads in CI values files
rm3l Jul 17, 2026
1aad8ae
feat(rhdh): add wait-for-db init container to deployment
rm3l Jul 17, 2026
a9d0f6f
fix(ci): increase PostgreSQL ephemeral-storage limit for rhdh tests
rm3l Jul 17, 2026
6f609ca
chore(ci): exclude deprecated backstage chart from ct install tests
rm3l Jul 17, 2026
919b4f4
chore(ci): remove deprecated backstage chart references from test action
rm3l Jul 17, 2026
53e9a08
feat(rhdh): default ingress host to top-level host value and enable i…
rm3l Jul 17, 2026
ea429c7
chore(ci): exclude backstage from test matrix and adapt image overrid…
rm3l Jul 17, 2026
487c3c0
Merge remote-tracking branch 'upstream/main' into RHDHPLAN-1058--impr…
rm3l Jul 22, 2026
61f5561
chore(ci): skip plugin downloads in rhdh CI and add full-plugins nigh…
rm3l Jul 22, 2026
42643a5
chore(ci): per-branch chart discovery in nightly workflow
rm3l Jul 22, 2026
00263b7
docs(ci): clarify extra_helm_args vs helm_extra_args input descriptions
rm3l Jul 22, 2026
d9ec312
chore: add rhdh chart lightspeed path to CODEOWNERS
rm3l Jul 22, 2026
9875c7c
fix(ci): consolidate upgrade skip logic to avoid duplicate --upgrade …
rm3l Jul 22, 2026
c4a6f84
fix(rhdh): only render includes and plugins in dynamic-plugins ConfigMap
rm3l Jul 22, 2026
5463087
chore(ci): scan rhdh chart instead of deprecated backstage in Snyk an…
rm3l Jul 22, 2026
89de914
fix(ci): exclude deprecated backstage chart from SonarCloud duplicati…
rm3l Jul 22, 2026
89d5a6d
fix(ci): use .sonarcloud.properties for duplication exclusions
rm3l Jul 22, 2026
69ac145
feat(rhdh): expose imagePullSecrets, pullPolicy and securityContext f…
rm3l Jul 22, 2026
d7c8fdf
chore: remove deprecated backstage helm-dependency-update pre-commit …
rm3l Jul 22, 2026
728a8fa
docs(rhdh): fix README to match current values structure
rm3l Jul 22, 2026
112888e
docs(rhdh): clarify override fields, hostname derivation, and vanilla…
rm3l Jul 22, 2026
de2bc39
fix(ci): remove hardcoded --debug from ct-install helm-extra-args
rm3l Jul 22, 2026
e407b59
docs: update stale backstage chart references across docs and tooling
rm3l Jul 22, 2026
e25f958
fix(rhdh): wire database host/port/user into default appConfig
rm3l Jul 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@

# Lightspeed:
/charts/backstage/files/lightspeed/ @redhat-developer/rhdh-ai
/charts/rhdh/files/lightspeed/ @redhat-developer/rhdh-ai
146 changes: 122 additions & 24 deletions .github/actions/test-charts/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ inputs:
description: 'Target branch for chart-testing'
required: true
extra_helm_args:
description: 'Extra Helm arguments to pass to ct install'
description: 'Individual --set overrides passed to ct install via --helm-extra-set-args'
required: false
default: ''
all_charts:
description: 'Install all charts instead of only changed ones'
required: false
default: 'false'
chart:
description: 'Specific chart to test (e.g., charts/backstage). When set, only this chart is tested.'
description: 'Specific chart to test (e.g., charts/rhdh). When set, only this chart is tested.'
required: false
default: ''
helm_extra_args:
description: 'Extra arguments to pass to helm via ct install --helm-extra-args (e.g., --values file.yaml)'
description: 'General helm flags (e.g. --values file.yaml) passed to ct install via --helm-extra-args'
required: false
default: ''
helm_template_values_file:
Expand Down Expand Up @@ -60,18 +60,21 @@ runs:
run: |
if [[ -n "$INPUT_CHART" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
if [[ "$INPUT_CHART" == "charts/backstage" ]]; then
echo "backstageChartChanged=true" >> "$GITHUB_OUTPUT"
if [[ "$INPUT_CHART" == "charts/rhdh" ]]; then
echo "orchestratorCrdsNeeded=true" >> "$GITHUB_OUTPUT"
echo "externalDbNeeded=true" >> "$GITHUB_OUTPUT"
fi
elif [[ "$INPUT_ALL_CHARTS" == "true" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
echo "backstageChartChanged=true" >> "$GITHUB_OUTPUT"
echo "orchestratorCrdsNeeded=true" >> "$GITHUB_OUTPUT"
echo "externalDbNeeded=true" >> "$GITHUB_OUTPUT"
else
listChanged=$(ct list-changed --target-branch "$INPUT_TARGET_BRANCH")
if [[ -n "$listChanged" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
if grep 'charts/backstage' <<< "$listChanged"; then
echo "backstageChartChanged=true" >> "$GITHUB_OUTPUT"
if grep -q 'charts/rhdh' <<< "$listChanged"; then
echo "orchestratorCrdsNeeded=true" >> "$GITHUB_OUTPUT"
echo "externalDbNeeded=true" >> "$GITHUB_OUTPUT"
fi
fi
fi
Expand Down Expand Up @@ -182,7 +185,7 @@ runs:
# For the simple testing that we are doing here on a vanilla K8s cluster, we only need both the Knative and SonataFlow CRDs.
# TODO(rm3l): Update this when/if there is an upstream counterpart installable via OLM.
- name: Install Knative and SonataFlow CRDs
if: steps.list-changed.outputs.backstageChartChanged == 'true'
if: steps.list-changed.outputs.orchestratorCrdsNeeded == 'true'
shell: bash
env:
SONATAFLOW_OPERATOR_VERSION: "10.1.0"
Expand All @@ -192,6 +195,83 @@ runs:
done
kubectl create -f "https://github.com/apache/incubator-kie-tools/releases/download/${SONATAFLOW_OPERATOR_VERSION}/apache-kie-${SONATAFLOW_OPERATOR_VERSION}-incubating-sonataflow-operator.yaml"

- name: Set up external services and test resources for rhdh
if: steps.list-changed.outputs.externalDbNeeded == 'true'
shell: bash
run: |
RHDH_VALUES="charts/rhdh/values.yaml"

# ── External PostgreSQL (ext-services namespace) ──
# Extract the image from the rhdh chart values to stay in sync
PG_REGISTRY=$(yq -r '.postgresql.image.registry' "$RHDH_VALUES")
PG_REPOSITORY=$(yq -r '.postgresql.image.repository' "$RHDH_VALUES")
PG_TAG=$(yq -r '.postgresql.image.tag' "$RHDH_VALUES")
# Pin the chart version to match the rhdh chart dependency
PG_CHART_VERSION=$(yq -r '.dependencies[] | select(.name == "postgresql") | .version' charts/rhdh/Chart.yaml)
echo "[INFO] Using PostgreSQL chart version: ${PG_CHART_VERSION}"
echo "[INFO] Using PostgreSQL image: ${PG_REGISTRY}/${PG_REPOSITORY}:${PG_TAG}"

kubectl create namespace ext-services
helm install ext-db bitnami/postgresql \
--namespace ext-services \
--version "$PG_CHART_VERSION" \
--set image.registry="$PG_REGISTRY" \
--set image.repository="$PG_REPOSITORY" \
--set image.tag="$PG_TAG" \
--set auth.postgresPassword=testpassword \
--set postgresqlDataDir=/var/lib/pgsql/data/userdata \
--set primary.persistence.enabled=false \
--set primary.podSecurityContext.enabled=false \
--set primary.containerSecurityContext.enabled=false \
--set primary.extraEnvVars[0].name=POSTGRESQL_ADMIN_PASSWORD \
--set primary.extraEnvVars[0].value=testpassword \
--wait --timeout 300s

# ── Fixed test namespace (ct-charts) ──
# Using --namespace with ct install keeps this namespace alive across all
# ci/ values file tests, so pre-created resources persist.
kubectl create namespace ct-charts

# Secret for external-db test (with-external-db-values.yaml)
kubectl create secret generic ext-db-password \
--namespace ct-charts \
--from-literal=password=testpassword

# Secret for orchestrator external-db (with-external-db-values.yaml)
kubectl create secret generic ext-db-orchestrator \
--namespace ct-charts \
--from-literal=POSTGRES_HOST=ext-db-postgresql.ext-services.svc.cluster.local \
--from-literal=POSTGRES_PORT=5432 \
--from-literal=POSTGRES_USER=postgres \
--from-literal=POSTGRES_PASSWORD=testpassword

# Fake .npmrc secret for dynamic-plugins init container test.
# The volume is optional: true in the deployment, so this is only needed
# if a ci/ values file actually exercises the npmrc path.
# ct uses the Chart.yaml name as the Helm release name, so fullname = redhat-developer-hub.
# kubectl create secret generic redhat-developer-hub-dynamic-plugins-npmrc \
# --namespace ct-charts \
# --from-literal=.npmrc=$'@myscope:registry=https://my-registry.example.com\n//my-registry.example.com:_authToken=foo'

# Lightspeed existing-resource test (with-lightspeed-existing-config-values.yaml)
kubectl create configmap test-lightspeed-stack \
--namespace ct-charts \
--from-file=lightspeed-stack.yaml=charts/rhdh/files/lightspeed/lightspeed-stack.yaml
kubectl create configmap test-lightspeed-server \
--namespace ct-charts \
--from-file=config.yaml=charts/rhdh/files/lightspeed/config.yaml
kubectl create configmap test-lightspeed-profile \
--namespace ct-charts \
--from-file=rhdh-profile.py=charts/rhdh/files/lightspeed/rhdh-profile.py
kubectl create secret generic test-lightspeed-secret \
--namespace ct-charts \
--from-literal=LLAMA_STACK_LOGGING=info

# Minimal app-config for extraAppConfig test (with-extra-app-config-values.yaml)
kubectl create configmap my-app-config \
--namespace ct-charts \
--from-literal=app-config-custom.yaml='{}'

- name: Run chart-testing (install)
if: steps.list-changed.outputs.changed == 'true'
shell: bash
Expand Down Expand Up @@ -219,12 +299,17 @@ runs:
fi

EXTRA_ARGS=()
if [[ -z "$INPUT_CHART" || "$INPUT_CHART" == "charts/backstage" ]]; then
if [[ "$INPUT_CHART" == "charts/rhdh" ]]; then
# On vanilla K8s (KinD), there is no SCC to assign a common UID.
# Set fsGroup so shared volumes (e.g. RAG data) are group-writable
# across init containers and sidecars that may run as different UIDs.
EXTRA_ARGS+=(
"--set route.enabled=false"
"--set upstream.ingress.enabled=true"
"--set global.host=rhdh.127.0.0.1.sslip.io"
"--set upstream.backstage.podSecurityContext.fsGroup=1001"
"--set openshift.route.enabled=false"
"--set ingress.enabled=true"
"--set host=rhdh.127.0.0.1.sslip.io"
"--set postgresql.primary.persistence.enabled=false"
"--set postgresql.primary.resources.limits.ephemeral-storage=200Mi"
"--set podSecurityContext.fsGroup=1001"
)
fi
if [[ -n "$INPUT_EXTRA_HELM_ARGS" ]]; then
Expand All @@ -236,19 +321,32 @@ runs:
--target-branch "$INPUT_TARGET_BRANCH"
--helm-extra-set-args="${EXTRA_ARGS[*]}"
)
# Use a fixed namespace so that pre-created test resources
# (Secrets, ConfigMaps) persist across all ci/ values file tests.
kubectl create namespace ct-charts 2>/dev/null || true
CT_ARGS+=(--namespace ct-charts)
# Test upgrades from the previous revision unless:
# - the chart is new (not on the target branch)
# - the chart version is unchanged
# - there is a major version bump
SKIP_UPGRADE=false
if [[ -n "$INPUT_CHART" ]]; then
old_version=$(git show "origin/$INPUT_TARGET_BRANCH:$INPUT_CHART/Chart.yaml" 2>/dev/null | yq '.version' 2>/dev/null || echo "0.0.0")
new_version=$(yq '.version' "$INPUT_CHART/Chart.yaml")
old_major=${old_version%%.*}
new_major=${new_version%%.*}
if [[ "$old_version" == "$new_version" ]]; then
echo "Skipping --upgrade: chart version unchanged ($old_version)"
elif [[ "$old_major" != "$new_major" ]]; then
echo "Skipping --upgrade: major version bump detected ($old_version -> $new_version)"
if ! git show "origin/$INPUT_TARGET_BRANCH:${INPUT_CHART}/Chart.yaml" &>/dev/null; then
echo "Skipping --upgrade: chart $INPUT_CHART is new (not on $INPUT_TARGET_BRANCH)"
SKIP_UPGRADE=true
else
CT_ARGS+=(--upgrade)
old_version=$(git show "origin/$INPUT_TARGET_BRANCH:$INPUT_CHART/Chart.yaml" | yq '.version' 2>/dev/null || echo "0.0.0")
new_version=$(yq '.version' "$INPUT_CHART/Chart.yaml")
if [[ "$old_version" == "$new_version" ]]; then
echo "Skipping --upgrade: chart version unchanged ($old_version)"
SKIP_UPGRADE=true
elif [[ "${old_version%%.*}" != "${new_version%%.*}" ]]; then
echo "Skipping --upgrade: major version bump ($old_version -> $new_version)"
SKIP_UPGRADE=true
fi
fi
else
fi
if [[ "$SKIP_UPGRADE" == "false" ]]; then
CT_ARGS+=(--upgrade)
fi
if [[ "$RUNNER_DEBUG" == "1" ]]; then
Expand Down
52 changes: 33 additions & 19 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,36 @@ jobs:
name: Discover charts
runs-on: ubuntu-latest
outputs:
charts: ${{ steps.list.outputs.charts }}
matrix: ${{ steps.list.outputs.matrix }}
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
fetch-depth: 0

- name: List charts
- name: Build per-branch chart matrix
id: list
run: |
excluded=$(yq e '.excluded-charts[]' ct.yaml 2>/dev/null || true)
charts='[]'
for chart_dir in charts/*/; do
[[ ! -d "$chart_dir" ]] && continue
chart_name=$(basename "$chart_dir")
chart_path="${chart_dir%/}"
if ! echo "$excluded" | grep -qx "$chart_name"; then
charts=$(echo "$charts" | jq -c --arg c "$chart_name" '. + [$c]')
branches=(main release-1.10 release-1.9 release-1.8)
matrix='[]'
for branch in "${branches[@]}"; do
ref="origin/$branch"
if ! git rev-parse --verify "$ref" &>/dev/null; then
echo "::warning::Branch $branch does not exist, skipping"
continue
fi

excluded=$(git show "$ref:ct.yaml" 2>/dev/null | yq e '.excluded-charts[]' 2>/dev/null || true)
while IFS= read -r entry; do
[[ -z "$entry" ]] && continue
chart_name=$(basename "$entry")
[[ -z "$chart_name" ]] && continue
if ! echo "$excluded" | grep -qx "$chart_name"; then
matrix=$(echo "$matrix" | jq -c --arg b "$branch" --arg c "$chart_name" '. + [{"branch": $b, "chart": $c}]')
fi
done < <(git ls-tree --name-only "$ref" charts/)
done
echo "charts=$charts" >> "$GITHUB_OUTPUT"
echo "matrix=$matrix" >> "$GITHUB_OUTPUT"

test-chart:
needs: discover-charts
Expand All @@ -43,12 +54,7 @@ jobs:
strategy:
fail-fast: false
matrix:
branch:
- main
- release-1.10
- release-1.9
- release-1.8
chart: ${{ fromJson(needs.discover-charts.outputs.charts) }}
include: ${{ fromJson(needs.discover-charts.outputs.matrix) }}

steps:
- name: Checkout
Expand Down Expand Up @@ -114,6 +120,12 @@ jobs:
yq e '{"global": {"dynamic": {"includes": .global.dynamic.includes}, "lightspeed": {"plugins": .global.lightspeed.plugins}}, "orchestrator": {"plugins": .orchestrator.plugins}}' \
charts/backstage/values.yaml > /tmp/backstage-nightly-values.yaml

- name: Generate nightly values override for rhdh chart
if: steps.check.outputs.exists == 'true' && matrix.chart == 'rhdh'
run: |
yq e '{"dynamicPlugins": {"includes": .dynamicPlugins.includes}, "lightspeed": {"plugins": .lightspeed.plugins}, "orchestrator": {"plugins": .orchestrator.plugins}}' \
charts/rhdh/values.yaml > /tmp/rhdh-nightly-values.yaml

- name: Test charts
if: steps.check.outputs.exists == 'true'
uses: ./.github/actions/test-charts
Expand All @@ -122,5 +134,7 @@ jobs:
chart: charts/${{ matrix.chart }}
all_charts: 'true'
monitoring_heartbeat: ${{ vars.TEST_MONITORING_HEARTBEAT_ENABLED || 'false' }}
extra_helm_args: ${{ matrix.chart == 'backstage' && format('--set upstream.backstage.image.repository={0} --set upstream.backstage.image.tag={1} --set upstream.backstage.image.pullPolicy=Always', steps.image.outputs.repo, steps.image.outputs.tag) || '' }}
helm_extra_args: ${{ matrix.chart == 'backstage' && '--values /tmp/backstage-nightly-values.yaml' || '' }}
# extra_helm_args: individual --set overrides, passed to ct install via --helm-extra-set-args
extra_helm_args: ${{ matrix.chart == 'rhdh' && format('--set image.repository={0} --set image.tag={1} --set image.pullPolicy=Always', steps.image.outputs.repo, steps.image.outputs.tag) || matrix.chart == 'backstage' && format('--set upstream.backstage.image.repository={0} --set upstream.backstage.image.tag={1} --set upstream.backstage.image.pullPolicy=Always', steps.image.outputs.repo, steps.image.outputs.tag) || '' }}
# helm_extra_args: general helm flags (e.g. --values), passed to ct install via --helm-extra-args
helm_extra_args: ${{ matrix.chart == 'rhdh' && '--values /tmp/rhdh-nightly-values.yaml' || matrix.chart == 'backstage' && '--values /tmp/backstage-nightly-values.yaml' || '' }}
8 changes: 4 additions & 4 deletions .github/workflows/snyk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
strategy:
matrix:
chartConfig:
- name: "backstage"
path: "backstage"
- name: "rhdh"
path: "rhdh"
- name: "orchestrator-infra"
path: "orchestrator-infra"
- name: "backstage-orchestrator"
path: "backstage"
- name: "rhdh-orchestrator"
path: "rhdh"
cliArgs: "--set orchestrator.enabled=true"

steps:
Expand Down
Loading
Loading