-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Expose channels through CLI #14072
Expose channels through CLI #14072
Conversation
Meant to comment on this during office hours; I think having |
This came up in office hours, are we agreed that it should go under toolbox? And is this still important? |
I think this is still important. It's always annoying to tell people they have to log into a control plane node and look at protokube logs in order to determine if channels did something wrong. |
Per office hours, we want this to go into toolbox. |
8708f63
to
6962398
Compare
988320c
to
5493811
Compare
5f4ad3a
to
60452a2
Compare
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works nicely, except for a few nits:
- subcommands are awkward, so may be nicer to just redefine them as suggested.
apply
requires the channel path, but would be nice to default to the cluster channel.
Error: unexpected number of arguments. Only one channel may be processed at the same time.
@olemarkus: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
e881825
to
e4cc280
Compare
channels/pkg/cmd/apply_channel.go
Outdated
@@ -46,8 +46,10 @@ func NewCmdApplyChannel(f Factory, out io.Writer) *cobra.Command { | |||
var options ApplyChannelOptions | |||
|
|||
cmd := &cobra.Command{ | |||
Use: "channel", | |||
Short: "Apply channel", | |||
Use: "channel CHANNEL", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes to channels should not be needed anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, but it's still more correct now :p I think we should keep this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe just remove the example, or update the command?
Make the channels apply commmand a bit more clear Update cmd/kops/toolbox_addons.go Co-authored-by: Ciprian Hacman <ciprian@hakman.dev> Update cmd/kops/toolbox_addons.go Co-authored-by: Ciprian Hacman <ciprian@hakman.dev> fix docs
e4cc280
to
4e9e1aa
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hakman 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 |
Mount the channels API on
kops addons
. I put everything underaddons
rather than reusingkops get
etc since especiallyapply
have very different semantics.Still some work left. In particular getting default cluster name, state store etc. Should try to merge the two CLI factories in some way.
/kind office-hours