Skip to content

subscriptions: enable "auto" manageSubscription flag#140

Open
Roming22 wants to merge 1 commit intoredhat-appstudio:mainfrom
Roming22:feat/auto-subscriptions
Open

subscriptions: enable "auto" manageSubscription flag#140
Roming22 wants to merge 1 commit intoredhat-appstudio:mainfrom
Roming22:feat/auto-subscriptions

Conversation

@Roming22
Copy link
Copy Markdown
Member

tsf-subscriptions handles the "auto" value by listing cluster Subscriptions owned by this Helm release (via lookup and release annotations) and only merging catalog entries whose name is in that set.

This allows subscriptions to not be created when it was installed without the installer.

Assisted-by: Claude

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED

@konflux-ci-qe-bot
Copy link
Copy Markdown

@Roming22: The following matrix E2E test has Failed, say /retest to rerun failed tests.

Total child pipelines: 2
Failed child pipelines: 2

Failed child pipelines

PipelineRun Name Status Rerun command Build Log Test Log
tsf-e2e-4.20-vr6b6 Failed /retest View Pipeline Log View Test Logs
tsf-e2e-4.21-hrtkw Failed /retest View Pipeline Log View Test Logs

@otaviof
Copy link
Copy Markdown
Contributor

otaviof commented Apr 14, 2026

/retest

@konflux-ci-qe-bot
Copy link
Copy Markdown

@Roming22: The following matrix E2E test has Failed, say /retest to rerun failed tests.

Total child pipelines: 2
Failed child pipelines: 2

Failed child pipelines

PipelineRun Name Status Rerun command Build Log Test Log
tsf-e2e-4.20-m554m Failed /retest View Pipeline Log View Test Logs
tsf-e2e-4.21-js5qc Failed /retest View Pipeline Log View Test Logs

Copy link
Copy Markdown
Member

@dperaza4dustbit dperaza4dustbit left a comment

Choose a reason for hiding this comment

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

No sure what is the difference between auto and false. I would expect some changes in docs to make that distinction

@Roming22
Copy link
Copy Markdown
Member Author

@dperaza4dustbit

  • true: manage the subscription. Will fail if a subscription not controlled by the tsf-subscription chart already exists.
  • false: do not manage the subscription. Will fail if a required subscription has not been deployed manually.
  • auto: manage the subscription if it is controlled by the tsf-subscription chart, or if does not exists at all. Do no manage the subscription if it exists and is not controlled by tsf-subscription.

Does that clear it up? I'll ask @gtrivedi88 to update the docs to reflect the change.

In the future, I would hope that it is part of the Helmet "API" for the config.yaml or bundle.yaml, and it should be documented there.

@dperaza4dustbit
Copy link
Copy Markdown
Member

@dperaza4dustbit

  • true: manage the subscription. Will fail if a subscription not controlled by the tsf-subscription chart already exists.
  • false: do not manage the subscription. Will fail if a required subscription has not been deployed manually.
  • auto: manage the subscription if it is controlled by the tsf-subscription chart, or if does not exists at all. Do no manage the subscription if it exists and is not controlled by tsf-subscription.

Does that clear it up? I'll ask @gtrivedi88 to update the docs to reflect the change.

In the future, I would hope that it is part of the Helmet "API" for the config.yaml or bundle.yaml, and it should be documented there.

It does, so why not always do auto then, this change actually remove the need to have an option for this IMO

@Roming22
Copy link
Copy Markdown
Member Author

It does, so why not always do auto then, this change actually remove the need to have an option for this IMO

Great question! For a couple reasons:

  1. I want to give the user control about what's happening if they want to.
  2. It turns out some bundles won't support auto. An example is tekton-pipelines. This is because TektonConfig can't be managed by multiple charts.

We could decide to make auto the default for everything though. But for the moment, I prefer to keep it limited to the one operator that causes issues.

@dperaza4dustbit
Copy link
Copy Markdown
Member

Sounds good

Copy link
Copy Markdown
Member

@dperaza4dustbit dperaza4dustbit left a comment

Choose a reason for hiding this comment

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

/lgtm

@Roming22 Roming22 force-pushed the feat/auto-subscriptions branch from cccd974 to d6c279f Compare April 15, 2026 15:24
@konflux-ci-qe-bot
Copy link
Copy Markdown

@Roming22: The following matrix E2E test has Failed, say /retest to rerun failed tests.

Total child pipelines: 2
Failed child pipelines: 2

Failed child pipelines

PipelineRun Name Status Rerun command Build Log Test Log
tsf-e2e-4.20-twwdq Failed /retest View Pipeline Log View Test Logs
tsf-e2e-4.21-4zxp4 Failed /retest View Pipeline Log View Test Logs

@Roming22
Copy link
Copy Markdown
Member Author

/retest

@konflux-ci-qe-bot
Copy link
Copy Markdown

@Roming22: The following matrix E2E test has Failed, say /retest to rerun failed tests.

Total child pipelines: 2
Failed child pipelines: 2

Failed child pipelines

PipelineRun Name Status Rerun command Build Log Test Log
tsf-e2e-4.20-bwb2f Failed /retest View Pipeline Log View Test Logs
tsf-e2e-4.21-d5hlz Failed /retest View Pipeline Log View Test Logs

@Roming22 Roming22 force-pushed the feat/auto-subscriptions branch from d6c279f to 74f8f7f Compare April 16, 2026 18:44
tsf-subscriptions handles the "auto" value by listing cluster
Subscriptions owned by this Helm release (via lookup and release
annotations) and only merging catalog entries whose name is in
that set.

This allows subscriptions to not be created when it was installed without the installer.

Assisted-by: Claude

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
@Roming22 Roming22 force-pushed the feat/auto-subscriptions branch from 74f8f7f to 69e6e1e Compare April 16, 2026 18:54
@konflux-ci-qe-bot
Copy link
Copy Markdown

@Roming22: The following matrix E2E test has Failed, say /retest to rerun failed tests.

Total child pipelines: 2
Failed child pipelines: 2

Failed child pipelines

PipelineRun Name Status Rerun command Build Log Test Log
tsf-e2e-4.20-nlz62 Failed /retest View Pipeline Log View Test Logs
tsf-e2e-4.21-9qs8w Failed /retest View Pipeline Log View Test Logs

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.

4 participants