Skip to content

Conversation

@ChaosInTheCRD
Copy link

Mergeable after #8.

Fixes #7.

This strips out a prefix of pod/ if it exists in the request, before sending to the Kubernetes API. It overwrites the current value, but my thoughts are that there is no need for the user to care about this prefix, nor the Kubernetes API, if it exists.

}

if len(args) > 1 {
o.podNames = args
Copy link
Owner

Choose a reason for hiding this comment

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

can this be merged with above if condition?

if len(args) > 0 {
    o.podNames = args
}


if len(o.args) > 0 {
o.podName = o.args[0]
if len(args) == 0 {
Copy link
Owner

Choose a reason for hiding this comment

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

apologies for super delay in reviewing this PR. if only label is provided, the len(args) can be 0 right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow pod/ prefix on pod name

2 participants