Skip to content

Conversation

anik120
Copy link
Contributor

@anik120 anik120 commented Aug 26, 2025

Description

Put watchNamespace in config.

Work for RFC​: Config -> registry+v1 bundle config

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

@anik120 anik120 requested a review from a team as a code owner August 26, 2025 15:34
Copy link

netlify bot commented Aug 26, 2025

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit 9d8f73a
🔍 Latest deploy log https://app.netlify.com/projects/olmv1/deploys/68b7072f0e774300088f7627
😎 Deploy Preview https://deploy-preview-2166--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@openshift-ci openshift-ci bot requested review from bentito and grokspawn August 26, 2025 15:34
@anik120 anik120 changed the title ✨ (rukpak) extend bundle renderer to accept config opts ✨ OPRUN-4090: (rukpak) extend bundle renderer to accept config opts Aug 26, 2025
@anik120 anik120 force-pushed the registryv1-renderer-config-support branch 2 times, most recently from 3577b5b to cb7ab21 Compare August 26, 2025 15:44
Copy link

codecov bot commented Aug 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.73%. Comparing base (d95f426) to head (9d8f73a).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2166      +/-   ##
==========================================
+ Coverage   72.71%   72.73%   +0.02%     
==========================================
  Files          79       79              
  Lines        7378     7384       +6     
==========================================
+ Hits         5365     5371       +6     
  Misses       1666     1666              
  Partials      347      347              
Flag Coverage Δ
e2e 44.15% <100.00%> (+<0.01%) ⬆️
experimental-e2e 56.20% <100.00%> (+0.08%) ⬆️
unit 58.23% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@anik120 anik120 force-pushed the registryv1-renderer-config-support branch 3 times, most recently from f26e1fa to 7b919f4 Compare August 26, 2025 19:29
@anik120 anik120 force-pushed the registryv1-renderer-config-support branch 4 times, most recently from 3f1ce78 to 119d1d1 Compare August 27, 2025 15:02
@anik120
Copy link
Contributor Author

anik120 commented Aug 27, 2025

Carrying over a comment from slack to help other reviewers:

okay I pushed a change right now with BundleConfig converted to a discriminated union, PTAL.
And OpenAPI schema generation sounds cleaner. I kept validation in for now, but it makes sense to introduce OpenAPI schema generation and rely on that validation instead of writing custom logic

@anik120 anik120 force-pushed the registryv1-renderer-config-support branch 6 times, most recently from c17dec4 to 83f1974 Compare August 28, 2025 18:56
@anik120 anik120 force-pushed the registryv1-renderer-config-support branch 5 times, most recently from 94c7776 to 2f22efa Compare August 29, 2025 22:47
@perdasilva perdasilva changed the title ✨ OPRUN-4090: (rukpak) extend bundle renderer to accept config opts ✨ OPRUN-4090: (rukpak) Add config support to reg+v1 bundle to chart converter Sep 2, 2025
@anik120 anik120 force-pushed the registryv1-renderer-config-support branch from 2f22efa to b790af4 Compare September 2, 2025 14:08
@anik120 anik120 changed the title ✨ OPRUN-4090: (rukpak) Add config support to reg+v1 bundle to chart converter ✨ OPRUN-4090: (rukpak) Add config support for reg+v1 bundle to chart converter Sep 2, 2025
@anik120 anik120 force-pushed the registryv1-renderer-config-support branch 2 times, most recently from 26172fe to 4a3a665 Compare September 2, 2025 14:15
fn: func(bundle source.BundleSource, installNamespace string, watchNamespace string) (*chart.Chart, error) {
require.Equal(t, expectedWatchNamespace, watchNamespace)
fn: func(bundle source.BundleSource, installNamespace string, config map[string]interface{}) (*chart.Chart, error) {
require.Equal(t, expectedWatchNamespace, config["watchNamespace"])
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: maybe use bundle.BundleConfigWatchNamespaceKey? or split out to a const in the test package?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just called in the bundle package since that's what we're doing in the non-test portion too.

@anik120 anik120 force-pushed the registryv1-renderer-config-support branch from 4a3a665 to 9d8f73a Compare September 2, 2025 15:03
Copy link
Contributor

@perdasilva perdasilva left a comment

Choose a reason for hiding this comment

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

Awesome! Sorry for the churn, and thanks for this!

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 2, 2025
Copy link

openshift-ci bot commented Sep 2, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: perdasilva

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 2, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit c56a811 into operator-framework:main Sep 2, 2025
25 checks passed
anik120 added a commit to anik120/operator-controller that referenced this pull request Sep 16, 2025
With operator-framework#2166 and operator-framework#2163 in place, annotation based config support can be removed.

Signed-off-by: Anik Bhattacharjee <anbhatta@redhat.com>
anik120 added a commit to anik120/operator-controller that referenced this pull request Sep 16, 2025
With operator-framework#2166 and operator-framework#2163 in place, annotation based config support can be removed.

Signed-off-by: Anik Bhattacharjee <anbhatta@redhat.com>
anik120 added a commit to anik120/operator-controller that referenced this pull request Sep 17, 2025
With operator-framework#2166 and operator-framework#2163 in place, annotation based config support can be removed.

Signed-off-by: Anik Bhattacharjee <anbhatta@redhat.com>
openshift-merge-bot bot pushed a commit that referenced this pull request Sep 17, 2025
* OPRUN-4106: remove support for annotation based config

With #2166 and #2163 in place, annotation based config support can be removed.

Signed-off-by: Anik Bhattacharjee <anbhatta@redhat.com>

* update docs and demo to use new config spec

---------

Signed-off-by: Anik Bhattacharjee <anbhatta@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants