Skip to content
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

Remove client requirement from list command #309

Merged
merged 1 commit into from
Nov 7, 2022

Conversation

bcrochet
Copy link
Contributor

@bcrochet bcrochet commented Nov 2, 2022

Description of PR

The base list command should not create a k8s client. Only the 'list packages' command needs the client. The upcoming 'list bundles' command does not. So, this patch moves the client into the child command instead of the base 'list' command.

Signed-off-by: Brad P. Crochet brad@redhat.com

Fixes #308

Changes (required)

  • Move the client creation into the subcommand of 'list packages'

Checklist (required)

  • I have reviewed and followed the contribution guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation if needed
  • I have checked that my changes pass all tests

@exe-prow-github-app exe-prow-github-app bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Nov 2, 2022
cmd/list.go Outdated Show resolved Hide resolved
The base list command should not create a k8s client. Only the
'list packages' command needs the client. The upcoming 'list bundles'
command does not. So, this patch moves the client into the child
command instead of the base 'list' command.

Fixes opdev#308

Signed-off-by: Brad P. Crochet <brad@redhat.com>
@acmenezes
Copy link
Contributor

/lgtm

@exe-prow-github-app exe-prow-github-app bot added the lgtm Indicates that a PR is ready to be merged. label Nov 7, 2022
@acmenezes
Copy link
Contributor

/approve

@exe-prow-github-app
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: acmenezes

Associated issue: #101

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

@exe-prow-github-app exe-prow-github-app bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 7, 2022
@exe-prow-github-app exe-prow-github-app bot merged commit 450e003 into opdev:main Nov 7, 2022
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. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The list command should not assume cluster connectivity
2 participants