Skip to content

🌱 Remove use of namespace in kustomize #2095

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2025

Conversation

tmshort
Copy link
Contributor

@tmshort tmshort commented Jul 14, 2025

This is an alternative to #2088 that only includes the namespace changes. Adding the registry to the e2e manifests is causing issues with the upgrade tests. So, I want to get this one in before I look at that more closely.

The use of the namespace parameter in kustomization files is very tricky. In one particular instance, we have an ordering issue with the cert-manager CA component. If not ordered correctly in the set of kustomization files, the CA component namespace will be overwritten by prior namespace directives.

This eliminates that edge case, and makes the kustomization more robust.

Downstream uses a different overlay, so there's no issue there.

Also, add -n option to the install script to allow users to easily change the namespace that they install OLMv1 into.

Note that the manifests don't change; so this keep everything as-is.

Description

Reviewer Checklist

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

@tmshort tmshort requested a review from a team as a code owner July 14, 2025 17:48
Copy link

netlify bot commented Jul 14, 2025

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit b2677b2
🔍 Latest deploy log https://app.netlify.com/projects/olmv1/deploys/687566a8d8d0200008e983bb
😎 Deploy Preview https://deploy-preview-2095--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.

The use of the namespace parameter is kustomization files is very tricky.
In one particular instance, we have an ordering issue with the cert-manager
CA component. If not ordered correctly in the set of kustomization files,
the CA component namespace will be overwritten by prior namespace
directives.

This eliminates that edge case, and makes the kustomization more robust.

Downstream uses a different overlay, so there's no issue there.

Also, add `-n` option to the install script to allow users to easily
change the namespace that they install OLMv1 into.

Note that the manifests don't change; so this keep everything as-is.

Signed-off-by: Todd Short <[email protected]>
Copy link

codecov bot commented Jul 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.49%. Comparing base (365831a) to head (b2677b2).
Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2095   +/-   ##
=======================================
  Coverage   73.49%   73.49%           
=======================================
  Files          78       78           
  Lines        7240     7240           
=======================================
  Hits         5321     5321           
  Misses       1567     1567           
  Partials      352      352           
Flag Coverage Δ
e2e 43.80% <ø> (ø)
experimental-e2e 50.09% <ø> (-0.10%) ⬇️
unit 58.77% <ø> (ø)

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.

@perdasilva
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 15, 2025
@tmshort
Copy link
Contributor Author

tmshort commented Jul 16, 2025

/approve

Copy link

openshift-ci bot commented Jul 16, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tmshort

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 Jul 16, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit a0717aa into operator-framework:main Jul 16, 2025
23 checks passed
@tmshort tmshort deleted the rm-namespace branch July 16, 2025 14:25
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.

2 participants