Skip to content

ROX-35606: chore: remove writeExampleBundle#21550

Draft
guzalv wants to merge 1 commit into
feat/redhat-signing-key-bundle-operatorfrom
feat/remove-write-example-bundle
Draft

ROX-35606: chore: remove writeExampleBundle#21550
guzalv wants to merge 1 commit into
feat/redhat-signing-key-bundle-operatorfrom
feat/remove-write-example-bundle

Conversation

@guzalv

@guzalv guzalv commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Description

Remove two startup functions that are no longer needed:

  • writeExampleBundle(): wrote bundle.example.json as a format
    reference for offline customers. Redundant because the format is
    documented in the Helm values example and operator CRD description.
    The file is also shadowed when the redHatSigningKeyBundle ConfigMap
    mount is active (directory mount makes the path read-only).

  • ensureKeyBundleDirectory(): created /tmp/redhat-signing-keys/.
    Redundant because the filedownloader already calls os.MkdirAll
    (pkg/filedownloader/filedownloader.go:108) and the filewatcher
    handles missing files gracefully
    (pkg/filewatcher/filewatcher.go:105).

54 lines removed, 0 added.

Depends on #21549.

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

  • All remaining tests in ./central/signatureintegration/... pass (17 tests)
  • All helmtests pass (no regressions)
  • Verified that filedownloader creates its own directory and filewatcher handles missing files

Partially generated by AI.

Remove two startup functions that are no longer needed:

- writeExampleBundle(): wrote bundle.example.json as a format reference.
  Redundant because the format is documented in Helm values and operator
  CRD descriptions. The file is also shadowed when the new ConfigMap
  mount (from redHatSigningKeyBundle) is active.

- ensureKeyBundleDirectory(): created /tmp/redhat-signing-keys/. Redundant
  because the filedownloader already calls os.MkdirAll and the filewatcher
  handles missing files gracefully.

Partially generated by AI.
@openshift-ci

openshift-ci Bot commented Jul 3, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

🚀 Build Images Ready

Images are ready for commit bb63318. To use with deploy scripts:

export MAIN_IMAGE_TAG=4.12.x-391-gbb633182ce

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant