Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
4526502
Added Knative CRDs and Knative CR creation logic (#117)
elai-shalev Apr 2, 2025
f2a096c
ci: Revert manually applying the CRDs from the orchestrator-infra cha…
rm3l Apr 3, 2025
321c776
ci: Refactor the GH Workflows for better separation (#123)
rm3l Apr 3, 2025
837c813
ci: Fix the pre-commit checks (#124)
rm3l Apr 3, 2025
4b48f1f
ci: Always run the required PR checks (#125)
rm3l Apr 3, 2025
4b8672b
ci: Skip running some expensive steps (like cluster creation) if ther…
rm3l Apr 3, 2025
8e64bba
ci: Add missing Helm repos for the lint job to pass (#128)
rm3l Apr 11, 2025
fcbe474
chore(deps): update helm release backstage to v2.5.0 (#127)
renovate[bot] Apr 11, 2025
224f562
chore(deps): update helm release backstage to v2.5.1 (#129)
renovate[bot] Apr 15, 2025
7dd4b5e
chore(chart): fix Orchestrator Infra Chart metadata to avoid conflict…
Fortune-Ndlovu Apr 17, 2025
252039a
chore(deps): update stefanzweifel/git-auto-commit-action digest to b8…
renovate[bot] Apr 22, 2025
051aeb7
chore(deps): update helm release common to v2.30.0 (#133)
renovate[bot] Apr 22, 2025
43d10cb
chore(deps): update sigstore/cosign-installer action to v3.8.2 (#134)
renovate[bot] Apr 23, 2025
d9c880e
chore(deps): update actions/setup-python digest to a26af69 (#135)
renovate[bot] Apr 24, 2025
eb94968
chore: enable Snyk scan for orchestrator-infra chart (#136)
Fortune-Ndlovu Apr 24, 2025
eed7951
chore(ci): simplify Snyk workflow using matrix for chart scans (#137)
Fortune-Ndlovu Apr 25, 2025
ea0243d
Merging Orchestrator with RHDH chart (#109)
elai-shalev Apr 27, 2025
ab9f81e
chore(deps): update oras-project/setup-oras action to v1.2.3 (#140)
renovate[bot] May 5, 2025
7f0c9da
chore(deps): update mikefarah/yq action to v4.45.2 (#142)
renovate[bot] May 5, 2025
0ef375e
chore: add MAX_ENTRY_SIZE var to values + doc change (#143)
elai-shalev May 5, 2025
6c418ed
chore: merge downstream chart content into rhdh-chart and include ins…
Omar-AlJaljuli May 7, 2025
4ec9ea7
chore(deps): update helm release common to v2.31.1 (#141)
renovate[bot] May 7, 2025
db5dc72
chore(deps): update actions/setup-go digest to d35c59a (#145)
renovate[bot] May 8, 2025
ea10687
chore(deps): update mikefarah/yq action to v4.45.3 (#147)
renovate[bot] May 9, 2025
c91203d
chore(pre-commit): Automatically commit the changes detected by the p…
rm3l May 9, 2025
d19fb1f
ci: Fix pre-commit diff check command (#150)
rm3l May 9, 2025
c86275b
chore: set correct minimum k8s version based on OCP 4.14 (#146)
nickboldt May 9, 2025
e5ddcbc
chore: for now, comment out the non-working chart repo install stuff …
nickboldt May 9, 2025
8a95ef6
fix: documentation bug for backstage chart readme, in orchestrator (#…
elai-shalev May 12, 2025
42aaa5c
chore(deps): update mikefarah/yq action to v4.45.4 (#154)
renovate[bot] May 12, 2025
caa7c91
chore(deps): update helm release backstage to v2.5.2 (#153)
renovate[bot] May 12, 2025
3a20cda
enabling serverless+serverlessLogic by default (#155)
elai-shalev May 12, 2025
0462be1
Fixing network policy issue in orchestrator (#156)
elai-shalev May 12, 2025
5d78cca
chore: generate repo and index files from the chart we're installing …
nickboldt May 12, 2025
35cf298
chore: install.sh - ux - link to topology view while deploying helm c…
nickboldt May 15, 2025
7f6367d
chore(CI builds): Expose an in-cluster Helm repo off of the OCI chart…
rm3l May 15, 2025
031297d
chore: update default chart settings using downstream patches so we c…
nickboldt May 16, 2025
b7e18cd
fix: Fix the images used by the Orchestrator DB creation Job (#164)
rm3l May 20, 2025
1b66011
chore(ci): Add Snyk scan for Backstage with Orchestrator (#165)
Fortune-Ndlovu May 22, 2025
61c7c18
chore: Review and update owners file and authorize jobs with the curr…
rm3l Jun 11, 2025
205f79a
chore(deps): update stefanzweifel/git-auto-commit-action action to v6…
renovate[bot] Jun 11, 2025
61a9e39
chore(deps): update stefanzweifel/git-auto-commit-action digest to 77…
renovate[bot] Jun 11, 2025
921d171
chore(deps): update helm release common to v2.31.3 (#171)
renovate[bot] Jun 13, 2025
4df0ae9
chore: Update PR Template checklist with reminder to check the `orche…
rm3l Jun 17, 2025
229e4f9
chore(fix): Resolve Snyk IaC Findings for RHDH Helm Chart (with and w…
Fortune-Ndlovu Jun 20, 2025
9ed0749
Backstage chart: fixing RHIDP/7806 in Orchestrator's SFP config (#173)
elai-shalev Jun 24, 2025
51bef3b
chore(deps): update helm release backstage to v2.5.3 (#175)
renovate[bot] Jun 24, 2025
be64c8a
fix: avoid double helm upgrade in CI install script (#174)
Fortune-Ndlovu Jun 26, 2025
7dc82fe
chore: link to 1.6 docs, which have changed path again (RHIDP-7643) […
nickboldt Jun 26, 2025
470b510
ci: Add CI values file for testing the Orchestrator flavor [RHIDP-746…
rm3l Jun 30, 2025
f065f3d
chore: Bump `backstage` chart version to fix the release workflow (#181)
rm3l Jun 30, 2025
ca2064d
updated plugins to 1.6 and bumped chart y stream version (#182)
elai-shalev Jul 2, 2025
197a1a4
Update installing-ci-charts.adoc to set generic placeholder for the c…
nickboldt Jul 3, 2025
d412238
chore(deps): update mikefarah/yq action to v4.46.1 (#185)
renovate[bot] Jul 10, 2025
91a7ed5
Adding Orchestrator Software Templates Infra Helm Chart (#170)
elai-shalev Jul 10, 2025
690c5db
chore(deps): update helm release backstage to v2.6.0 (#184)
renovate[bot] Jul 10, 2025
d4056d0
Adding scripts-checks file in workflows (#187)
OpinionatedHeron Jul 16, 2025
970d1f2
chore(deps): update redhat-plumbers-in-action/differential-shellcheck…
renovate[bot] Jul 17, 2025
faf8c34
Fix: Avoid Helm Conflict When User Creates Custom .npmrc Secret (#186)
Fortune-Ndlovu Jul 17, 2025
2f8b7d3
chore: Bump the charts minor versions to leave room for patch updates…
rm3l Jul 17, 2025
29203c1
chore: Trigger the chart releaser workflow on both main and release b…
rm3l Jul 17, 2025
b2370c6
fix: Make the orchestrator plugins list configurable in the default v…
rm3l Jul 21, 2025
e42438b
fix: Add test case deploying an Orchestrator-flavored instance with a…
rm3l Jul 21, 2025
a9b884c
chore(deps): update mikefarah/yq action to v4.47.1 (#198)
renovate[bot] Jul 23, 2025
20e665f
Changed argument logic to update versions for all available charts
OpinionatedHeron Jul 24, 2025
5ddfde5
Reverting reaction change based on sourcery-ai
OpinionatedHeron Jul 24, 2025
df60478
Adding error for invalid charts, rather than defaulting to backstage.
OpinionatedHeron Jul 24, 2025
3ca947f
Updating to check version and chart used in command
OpinionatedHeron Jul 30, 2025
25f3d22
Updating syntax and failure reasons
OpinionatedHeron Jul 30, 2025
eb3aca2
Trying a change to recognise chart names
OpinionatedHeron Jul 31, 2025
ca51b19
Setting outputs for actions to use
OpinionatedHeron Jul 31, 2025
6aabf77
Adding debug commands
OpinionatedHeron Jul 31, 2025
50e961c
Changing code to test
OpinionatedHeron Jul 31, 2025
ea1707b
Reverting back as test did not run as expected
OpinionatedHeron Jul 31, 2025
ba34551
Removing all unnecessary test info and files
OpinionatedHeron Jul 31, 2025
d0e9607
Merge branch 'main' into bumpVersion
Fortune-Ndlovu Jul 31, 2025
2cde927
Testing
OpinionatedHeron Jul 31, 2025
6d1bbb7
Tests
OpinionatedHeron Jul 31, 2025
77464e3
Tests
OpinionatedHeron Jul 31, 2025
d7805e3
test: add test change for bump testing
OpinionatedHeron Jul 31, 2025
73db533
Merge pull request #1 from OpinionatedHeron/test-bump-feature
OpinionatedHeron Jul 31, 2025
388357c
Updating set.Output as it is going to be disabled
OpinionatedHeron Aug 5, 2025
043934f
Removing test comment in backstage
OpinionatedHeron Aug 6, 2025
328845f
Removing test message in ReadMe
OpinionatedHeron Aug 6, 2025
7f4d4db
Merge pull request #200 from OpinionatedHeron/bumpVersion
Fortune-Ndlovu Aug 6, 2025
aa57eac
Updating workflow permissions (#209)
OpinionatedHeron Aug 7, 2025
efa04db
chore: bumping osl default version to 1.36 in orchestrator-infra (#201)
elai-shalev Aug 7, 2025
922cb19
Adding network policy; fixing indentation error (#207)
elai-shalev Aug 7, 2025
e40f6dd
chore(deps): update actions/checkout action to v5 (#216)
renovate[bot] Aug 18, 2025
083121a
chore(deps): update helm release common to v2.31.4 (#218)
renovate[bot] Aug 18, 2025
7df857c
chore: add monitoring docs (#220)
Fortune-Ndlovu Aug 19, 2025
59b8be4
chore(deps): update azure/setup-helm action to v4.3.1 (#221)
renovate[bot] Aug 20, 2025
7159192
chore(deps): update helm release backstage to v2.6.1 (#222)
renovate[bot] Aug 23, 2025
57aa46b
ci: Fix authorization logic in pull_request_target workflows (#223)
rm3l Aug 27, 2025
b753b42
Orchestrator-software-templates chart: Post-RHDH install resources (#…
elai-shalev Sep 3, 2025
473875d
chore(deps): update actions/github-script action to v8 (#229)
renovate[bot] Sep 5, 2025
f29a99e
chore(deps): update actions/setup-python action to v6 (#227)
renovate[bot] Sep 5, 2025
d2bf722
chore(deps): update actions/setup-go action to v6 (#226)
renovate[bot] Sep 5, 2025
c32497f
adding sonataflowPlatform's jobservice and dataindex custom images to…
elai-shalev Sep 8, 2025
1d2eff6
fix(ci): Make sure to checkout the PR branch before pushing the diff …
rm3l Sep 8, 2025
2312184
chore(deps): update mikefarah/yq action to v4.47.2 (#233)
renovate[bot] Sep 8, 2025
0bc62a4
Installing network policies when OSL is disabled (#234)
elai-shalev Sep 9, 2025
c6b7328
fix(RHDHBUGS-2015): fix sonataflow DB ref name for replication archit…
pmacik Sep 9, 2025
bfb79f0
fix(orchestrator-infra): Rename the chart in the README [RHDHBUGS-202…
rm3l Sep 10, 2025
1fda646
chore: initial Qodo configuration (#240)
zdrapela Sep 11, 2025
15aa7ef
chore(deps): update tombi-toml/setup-tombi digest to 3129912 (#242)
renovate[bot] Sep 11, 2025
d28eca0
fix(orchestrator-software-templates-infra): fixing issue with namespa…
elai-shalev Sep 11, 2025
552d233
chore: Make sure `ct lint` runs against all charts (#243)
rm3l Sep 11, 2025
c8cc27f
chore(backstage): bump orchestrator plugins to 1.7.1 prod release (#219)
elai-shalev Sep 12, 2025
0a09b81
Bumping OSL version in tekton task for workflow builder (#244)
elai-shalev Sep 14, 2025
5dab63f
chore: Add version to the `helm install` command mentioned in the cha…
rm3l Sep 16, 2025
907ae5e
chore(deps): update snyk/actions action to v1 (#247)
renovate[bot] Oct 3, 2025
e922273
chore(deps): update peter-evans/create-or-update-comment action to v5…
renovate[bot] Oct 3, 2025
8bbb87c
chore(deps): update dependency python to 3.14 (#249)
renovate[bot] Oct 8, 2025
41dfe45
chore(deps): Bump the versions of the tools installed by helm/chart-t…
rm3l Oct 8, 2025
6012030
[chore] Setting initContainers pullPolicy to IfNotPresent (#248)
OpinionatedHeron Oct 9, 2025
4c36ff5
chore(deps): update stefanzweifel/git-auto-commit-action action to v7…
renovate[bot] Oct 13, 2025
bbed806
chore(deps): update mikefarah/yq action to v4.48.1 (#251)
renovate[bot] Oct 13, 2025
4e6e2df
chore: pin the default RHDH image to 1.6
rm3l Oct 16, 2025
aafeb84
Apply pre-commit hooks
rm3l Oct 16, 2025
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
26 changes: 14 additions & 12 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
<!--
Thank you for your contribution! Complete the following fields to provide insight into the changes being requested as well as steps that you can take to ensure it meets all of the requirements

Please remember to:
- mention any issue(s) that this PR closes using a closing keyword as well as the issue number, such as "Closes #XYZ" or "Resolves janus-idp/repo-name#XYZ", cf.
[documentation](https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword)
- ensure there are no merge commits!
Please remember to link any JIRA issue(s) that this PR closes or relates to, as this helps provide more context to reviewers.

-->
-->

## Description of the change

<!-- Describe the change being requested. -->

## Existing or Associated Issue(s)
## Which issue(s) does this PR fix or relate to

<!-- List any related issues. -->

## Additional Information
- _JIRA_issue_link_

<!-- Provide as much information that you feel would be helpful for those reviewing the proposed changes. -->
## How to test changes / Special notes to the reviewer

<!--
Detailed instructions may help reviewers test this PR quickly and provide quicker feedback.
-->

## Checklist

- [ ] Chart version bumped in `Chart.yaml` according to [semver](http://semver.org/).
- [ ] Variables are documented in the `values.yaml` and added to the README.md. The [pre-commit](https://pre-commit.com/) utility can be used to generate the necessary content. Use `pre-commit run -a` to apply changes.
- [ ] JSON Schema template updated and re-generated the raw schema via `pre-commit` hook.
- [ ] List tests pass for Chart using the [Chart Testing](https://github.com/helm/chart-testing) tool and the `ct lint` command.
- [ ] For each Chart updated, version bumped in the corresponding `Chart.yaml` according to [Semantic Versioning](http://semver.org/).
- [ ] For each Chart updated, variables are documented in the `values.yaml` and added to the corresponding README.md. The [pre-commit](https://pre-commit.com/) utility can be used to generate the necessary content. Use `pre-commit run -a` to apply changes. The [pre-commit Workflow](./workflows/pre-commit.yaml) will do this automatically for you if needed.
- [ ] JSON Schema template updated and re-generated the raw schema via the `pre-commit` hook.
- [ ] Tests pass using the [Chart Testing](https://github.com/helm/chart-testing) tool and the `ct lint` command.
- [ ] If you updated the [orchestrator-infra](../charts/orchestrator-infra) chart, make sure the versions of the [Knative CRDs](../charts/orchestrator-infra/crds) are aligned with the versions of the CRDs installed by the OpenShift Serverless operators declared in the [values.yaml](../charts/orchestrator-infra/values.yaml) file. See [Installing Knative Eventing and Knative Serving CRDs](../charts/orchestrator-infra/README.md#installing-knative-eventing-and-knative-serving-crds) for more details.
59 changes: 37 additions & 22 deletions .github/workflows/bump-version.yml → .github/workflows/bump-version.yaml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,43 +13,58 @@ jobs:
contents: write
id-token: write
issues: write
pull-requests: write

steps:
- name: Check for command
id: command
continue-on-error: true
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: |
const commentBody = context.payload.comment.body;
const commandPrefix = "/bump ";
let commandName = "";
let commandArgs = "";
let chartName = "";
let bumpLevel = "";

if (commentBody.startsWith(commandPrefix)) {
commandName = "bump";
const args = commentBody.slice(commandPrefix.length).trim().split(" ");
commandArgs = args[0] || "patch";

if (args.length > 0 && args[0]) {
chartName = args[0];
bumpLevel = args[1] || "patch";

console.log(`Chart Name: ${chartName}, Bump Level: ${bumpLevel}`);
console.log(`Args array: ${JSON.stringify(args)}`);

const fs = require('fs');
fs.appendFileSync(process.env.GITHUB_OUTPUT, `chart-name=${chartName}\n`);
fs.appendFileSync(process.env.GITHUB_OUTPUT, `bump-level=${bumpLevel}\n`);
fs.appendFileSync(process.env.GITHUB_OUTPUT, `command-name=${commandName}\n`);

} else {
commandName = "";
core.warning("No chart name provided. Format: /bump <chart-name> [level]");
}
}

core.setOutput("command-name", commandName);
core.setOutput("command-arguments", commandArgs);

- name: Add eyes reaction
if: steps.command.outputs.command-name == 'bump'
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
comment-id: ${{ github.event.comment.id }}
reaction-type: eyes
reactions: eyes

- uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
if: steps.command.outputs.command-name == 'bump'
with:
python-version: 3.13
python-version: 3.14

- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
if: steps.command.outputs.command-name == 'bump'
with:
go-version: ^1
Expand All @@ -68,7 +83,7 @@ jobs:

- name: Checkout Repository
if: steps.command.outputs.command-name == 'bump'
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
with:
token: ${{ steps.generate_token.outputs.token }}

Expand All @@ -81,22 +96,22 @@ jobs:
- name: Get version
if: steps.command.outputs.command-name == 'bump'
id: get_version
uses: mikefarah/yq@8bf425b4d1344db7cd469a8d10a390876e0c77fd # v4.45.1
uses: mikefarah/yq@0ecdce24e83f0fa127940334be98c86b07b0c488 # v4.48.1
with:
cmd: yq ".version" charts/backstage/Chart.yaml
cmd: yq ".version" charts/${{ steps.command.outputs.chart-name }}/Chart.yaml

- uses: actions-ecosystem/action-bump-semver@34e334551143a5301f38c830e44a22273c6ff5c5 # v1
- uses: actions-ecosystem/action-bump-semver@34e334551143a5301f38c830e44a22273c6ff5c5 # v1
if: steps.command.outputs.command-name == 'bump'
id: semver
with:
current_version: ${{ steps.get_version.outputs.result }}
level: ${{ steps.command.outputs.command-arguments }}
level: ${{ steps.command.outputs.bump-level }}

- name: Bump the version
if: steps.command.outputs.command-name == 'bump'
uses: mikefarah/yq@8bf425b4d1344db7cd469a8d10a390876e0c77fd # v4.45.1
uses: mikefarah/yq@0ecdce24e83f0fa127940334be98c86b07b0c488 # v4.48.1
with:
cmd: yq -i '.version = "${{ steps.semver.outputs.new_version }}"' charts/backstage/Chart.yaml
cmd: yq -i '.version = "${{ steps.semver.outputs.new_version }}"' charts/${{ steps.command.outputs.chart-name }}/Chart.yaml

- name: Run pre-commit
if: steps.command.outputs.command-name == 'bump'
Expand All @@ -109,10 +124,10 @@ jobs:

- name: Commit pre-commit changes
if: steps.command.outputs.command-name == 'bump'
uses: stefanzweifel/git-auto-commit-action@e348103e9026cc0eee72ae06630dbe30c8bf7a79 # v5
uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 # v7
with:
commit_message: Bump version to ${{ steps.semver.outputs.new_version }}
commit_options: '-s'
commit_message: Bump ${{ steps.command.outputs.chart-name }} version to ${{ steps.semver.outputs.new_version }}
commit_options: "-s"
commit_user_name: RHDH Bot
commit_user_email: 146280956+rhdh-bot@users.noreply.github.com
commit_user_email: 146280956+rhdh-bot@users.noreply.github.com
commit_author: RHDH Bot <146280956+rhdh-bot@users.noreply.github.com >
66 changes: 66 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Lint Charts

on:
pull_request:
branches:
- main
- rhdh-1.[0-9]+
- 1.[0-9]+.x
- release-1.[0-9]+

concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}
cancel-in-progress: true

jobs:

lint-chart:
name: Lint Metadata
runs-on: ubuntu-latest
env:
GO111MODULE: on

steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # renovate: tag=v3.5
with:
version: v3.10.0

- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
with:
python-version: 3.14

- name: Set up chart-testing
uses: helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b # v2.7.0
with:
version: '3.14.0'
yamllint_version: '1.37.1'
yamale_version: '6.0.0'

- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --target-branch "${{ github.event.pull_request.base.ref }}")
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi

- name: Add Helm Repositories
if: steps.list-changed.outputs.changed == 'true'
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add backstage https://backstage.github.io/charts
helm repo update

- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: |
ct lint \
--debug \
--config ct-lint.yaml \
--target-branch "${{ github.event.pull_request.base.ref }}"
97 changes: 97 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: Pre-commit

on:
# pull_request_target needed to be able to commit and push pre-commit diffs to external fork PRs.
# But we included a manual authorization safeguard to prevent PWN requests. See the 'authorize' job below.
pull_request_target:
branches:
- main
- rhdh-1.[0-9]+
- 1.[0-9]+.x
- release-1.[0-9]+

concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}
cancel-in-progress: true

jobs:
authorize:
# The 'external' environment is configured with the maintainers team as required reviewers.
# All the subsequent jobs in this workflow 'need' this job, which will require manual approval for PRs coming from external forks.
# see list of approvers in OWNERS file
environment:
${{ (github.event.pull_request.head.repo.full_name == github.repository ||
contains(fromJSON('["gazarenkov","kadel","nickboldt","rm3l","kim-tsao","Fortune-Ndlovu","subhashkhileri","zdrapela","openshift-cherrypick-robot"]'), github.event.pull_request.user.login)) && 'internal' || 'external' }}
runs-on: ubuntu-latest
steps:
- name: approved
run: echo "✓"

pre-commit:
name: Pre-commit
runs-on: ubuntu-latest
needs: authorize
permissions:
contents: write
pull-requests: write
env:
GO111MODULE: on
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
with:
fetch-depth: 0
repository: ${{github.event.pull_request.head.repo.full_name}}
ref: ${{ github.event.pull_request.head.sha }}

- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
with:
python-version: 3.14

- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
with:
go-version: ^1

- name: Setup helm-docs
run: go install github.com/norwoodj/helm-docs/cmd/helm-docs@latest

- name: Run pre-commit
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
continue-on-error: true # Don't fail immediately; we'll handle it below
with:
extra_args: --verbose --all-files --show-diff-on-failure

- name: Check for changes after pre-commit
id: diff-checker
run: |
echo "CHANGED=$(if git diff --quiet; then echo "false"; else echo "true"; fi)" >> $GITHUB_OUTPUT

- name: Commit and push any manifest changes
if: ${{ steps.diff-checker.outputs.CHANGED == 'true' }}
run: |
git remote add fork "https://github.com/${{ github.event.pull_request.head.repo.full_name }}.git"
git fetch fork ${{ github.event.pull_request.head.ref }}
git checkout -B pr-branch fork/${{ github.event.pull_request.head.ref }}

git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'

git add -A .
git commit \
-m "chore(pre-commit): Auto-fix hooks" \
-m "Co-authored-by: $GITHUB_ACTOR <$GITHUB_ACTOR@users.noreply.github.com>"

git push fork pr-branch:${{ github.event.pull_request.head.ref }}

- name: Comment on PR if manifests were updated
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
if: ${{ !cancelled() && steps.diff-checker.outputs.CHANGED == 'true' }}
continue-on-error: true
with:
script: |
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '⚠️ <b>Files changed after running the pre-commit hooks</b><br/><br/>Those changes should have been pushed automatically to your PR branch.<br/><br/><b>NOTE: </b>If the PR checks are stuck after this additional commit, manually close the PR and immediately reopen it to trigger the checks again.'
})
42 changes: 42 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Release Charts

on:
push:
branches:
- main
- release-1.[0-9]+
paths:
- "charts/**"

jobs:
release:
runs-on: ubuntu-latest

permissions:
contents: write
packages: write
id-token: write

steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"

- name: Add dependencies
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add backstage https://backstage.github.io/charts

- name: Run chart-releaser
uses: helm/chart-releaser-action@cae68fefc6b5f367a0275617c9f83181ba54714f # v1.7.0
with:
config: cr.yaml
mark_as_latest: ${{ github.ref == 'refs/heads/main' }}
env:
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading