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

rukpakctl: remove use of globals and exported types; use contexts consistently #471

Merged

Conversation

joelanford
Copy link
Member

This is step 1 of making some improvements discussed in #464, which is a minor refactoring of the rukpakctl commands to remove global vars and unnecessarily exported types.

I also uncovered a few places we should be passing contexts down, so I've made those fixes as well.

Step 2 will follow up with further changes, to include:

  • renaming local to configmaps
  • supporting multiple configmap references which include their directory paths within bundle
  • forcing the configmap references to be in the rukpak-system namespace (that way bundle controllers don't have to cache all configmaps on the cluster)

Signed-off-by: Joe Lanford joe.lanford@gmail.com

@joelanford joelanford requested a review from a team as a code owner July 26, 2022 14:26
Copy link
Contributor

@tylerslaton tylerslaton left a comment

Choose a reason for hiding this comment

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

These changes all look reasonable to me! Had one very minor nit.

cmd/rukpakctl/cmd/root.go Outdated Show resolved Hide resolved

"github.com/spf13/cobra"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/tools/clientcmd"
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

…sistently

Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
@joelanford joelanford merged commit efc8117 into operator-framework:main Jul 26, 2022
@joelanford joelanford deleted the local-source-fixup-pt1 branch July 26, 2022 15:30
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.

None yet

4 participants