Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Export rukpak functionality #876

Merged
merged 1 commit into from
May 2, 2024
Merged

Conversation

tmshort
Copy link
Contributor

@tmshort tmshort commented May 2, 2024

In anticipation of using rukpak as a library, export some of the functionality. This primarilly meant moving files from internal to pkg.

@tmshort tmshort requested a review from a team as a code owner May 2, 2024 19:58
Comment on lines 295 to 300
// Add the install namespace
ns := &corev1.Namespace{
TypeMeta: metav1.TypeMeta{Kind: "Namespace", APIVersion: "v1"},
ObjectMeta: metav1.ObjectMeta{Name: installNamespace},
}
objs = append(objs, ns)
Copy link
Member

Choose a reason for hiding this comment

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

I just removed this in the InstallNamespace PR. The expectation is that the install namespace will already exist.

Copy link
Contributor Author

@tmshort tmshort May 2, 2024

Choose a reason for hiding this comment

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

I think that wasn't true in our PoC, but it means we'll have to deal with it better during test.

Copy link
Member

Choose a reason for hiding this comment

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

It wasn't. This change just merged yesterday in rukpak and today in operator-controller. If you're able to rebase to operator-controller main, you shouldn't need this.

In anticipation of using rukpak as a library, export some of the
functionality. This primarilly meant moving files from `internal` to
`pkg`.

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

codecov bot commented May 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 37.27%. Comparing base (f9cee1a) to head (04b564f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #876   +/-   ##
=======================================
  Coverage   37.27%   37.27%           
=======================================
  Files           9        9           
  Lines         845      845           
=======================================
  Hits          315      315           
  Misses        486      486           
  Partials       44       44           

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

@joelanford
Copy link
Member

I don't love all of this being moved out from internal (e.g. the internal/util -> pkg/util), but rukpak is pre-1.0, so we can also factor things better as we learn the correct abstractions.

@tmshort tmshort added this pull request to the merge queue May 2, 2024
Merged via the queue into operator-framework:main with commit 72cffe6 May 2, 2024
10 checks passed
@tmshort tmshort deleted the mv-to-lib branch May 2, 2024 20:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants