Skip to content

Generic Helm Chart#3266

Open
csviri wants to merge 8 commits intooperator-framework:mainfrom
csviri:helm-chart
Open

Generic Helm Chart#3266
csviri wants to merge 8 commits intooperator-framework:mainfrom
csviri:helm-chart

Conversation

@csviri
Copy link
Copy Markdown
Collaborator

@csviri csviri commented Apr 1, 2026

  • adds generic helm chart that can be reused and extended by users for their operators
  • adjusts metrics processing e2e test to use that helm chart (eventually this will be "operations" e2e test)
  • adjusts PR to run unit tests for helm chart

Copilot AI review requested due to automatic review settings April 1, 2026 13:35
@openshift-ci openshift-ci bot requested review from metacosm and xstefank April 1, 2026 13:35
@csviri
Copy link
Copy Markdown
Collaborator Author

csviri commented Apr 1, 2026

Will update the docs as a separate PR.

@csviri csviri linked an issue Apr 1, 2026 that may be closed by this pull request
@csviri csviri marked this pull request as draft April 1, 2026 13:39
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 1, 2026
@csviri csviri marked this pull request as ready for review April 1, 2026 13:40
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 1, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a reusable “generic” Helm chart for JOSDK-based operators, updates the metrics-processing E2E deployment to use Helm, and enables Helm chart unit tests in PR CI.

Changes:

  • Introduced helm/generic-helm-chart (templates + default values + helm-unittest tests).
  • Updated metrics-processing E2E to install/uninstall the operator via Helm (instead of applying k8s/operator.yaml).
  • Added a PR workflow job to run Helm unit tests via a helper script.

Reviewed changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
sample-operators/metrics-processing/src/test/resources/helm-values.yaml Adds Helm values used by the metrics-processing E2E to deploy via the generic chart
sample-operators/metrics-processing/src/test/java/.../MetricsHandlingE2E.java Switches cluster E2E operator deployment to Helm install/uninstall; refactors command/script execution helpers
sample-operators/metrics-processing/src/main/java/.../MetricsHandlingSampleOperator.java Prepares config providers for env var + /config/config.yaml based configuration (not yet wired in shown diff)
sample-operators/metrics-processing/pom.xml Configures JVM flag to load Log4j2 config from /config/log4j2.xml (matches chart-mounted config)
helm/run-tests.sh Adds script to install helm-unittest plugin and run chart unit tests
helm/generic-helm-chart/* Adds generic reusable Helm chart and helm-unittest suites for core rendered resources
.github/workflows/pr.yml Adds CI job to run Helm unit tests on PRs

@csviri
Copy link
Copy Markdown
Collaborator Author

csviri commented Apr 1, 2026

Will update docs as a separate PR since, we would now deserve an "operations" section in docs

csviri and others added 8 commits April 2, 2026 15:58
- adds generic helm chart that can be reused and extended by users for their operators
- adjusts metrics processing e2e test to use that helm chart
- adjusts PR to run unit tests for helm chart

Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
@csviri
Copy link
Copy Markdown
Collaborator Author

csviri commented Apr 2, 2026

@xstefank @metacosm this PR is ready, please take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide a generic helm chart for deploying operators

2 participants