🌱 Use dedicated Secret type for externalized object Secrets#2613
Conversation
✅ Deploy Preview for olmv1 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
This PR introduces a dedicated Secret type (olm.operatorframework.io/phase-data) for Secrets that store externalized object content referenced by ClusterObjectSet ref entries. This distinguishes OLM-managed ref Secrets from user-created Secrets and enables easy identification of system-managed resources.
Changes:
- Add custom
SecretTypeRefDataconstant in the labels package with valueolm.operatorframework.io/phase-data - Update SecretPacker to set this type when creating ref Secrets
- Add unit test assertion verifying the Secret type is set correctly
- Add E2E test step and scenario validating ref Secrets have the correct type
- Update design documentation with the new Secret type convention and examples
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
internal/operator-controller/labels/labels.go |
Defines new SecretTypeRefData constant for the custom Secret type |
internal/operator-controller/applier/secretpacker.go |
Sets the custom type when creating ref Secrets |
internal/operator-controller/applier/secretpacker_test.go |
Verifies the Secret type is set correctly in unit tests |
test/e2e/steps/steps.go |
Adds new E2E test step to verify ref Secrets have the correct type |
test/e2e/features/install.feature |
Adds E2E test scenario validating the Secret type |
docs/concepts/large-bundle-support.md |
Updates design documentation with Secret type conventions and examples |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2613 +/- ##
==========================================
- Coverage 68.86% 68.81% -0.05%
==========================================
Files 139 139
Lines 9872 9931 +59
==========================================
+ Hits 6798 6834 +36
- Misses 2557 2580 +23
Partials 517 517
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I'm still not very familiar with the code base, but as soon as we put the missing emoji in the PR heading, this PR looks good to me! As a side note, now that we have the |
|
/lgtm |
There was a problem hiding this comment.
I would suggest moving this file elsewhere. The concepts docs are user-facing docs that describe functions/behaviors that users need to be aware of and directly interact with.
The typical doc flow is to put everything in drafts and then do a separate "promotion" out of drafts.
We probably also now need a specific process for design doc organization.
There was a problem hiding this comment.
yeah - let's do that. Or maybe even drop the docs from this PR. I've just put up a doc PR. Maybe we could iterate there?
There was a problem hiding this comment.
I would suggest moving this file elsewhere. The
conceptsdocs are user-facing docs that describe functions/behaviors that users need to be aware of and directly interact with.
Sure, but let's do that in a separate - follow up PR.
Set custom Secret type `olm.operatorframework.io/object-data` on Secrets that store externalized COS object content. This distinguishes OLM-managed Secrets from user-created ones and enables easy identification and filtering. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
860fc63 to
53d7be9
Compare
|
/approve |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: joelanford, rashmigottipati The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
1586800
into
operator-framework:main
Description
Set custom Secret type
olm.operatorframework.io/object-dataon Secrets that store externalized COS object content. This distinguishes OLM-managed Secrets from user-created ones and enables easy identification and filtering.Reviewer Checklist