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

[completion] Add header #compdef #1915

Merged
merged 1 commit into from
Sep 13, 2024
Merged

[completion] Add header #compdef #1915

merged 1 commit into from
Sep 13, 2024

Conversation

sazriel26
Copy link
Contributor

What type of PR is this?

/kind bug

What this PR does / why we need it:

Generation of zsh completion misses header #compdef kompose as updated in reference:
https://github.com/kubernetes/kubectl/blob/master/pkg/cmd/completion/completion.go#L174

Which issue(s) this PR fixes:

N/A

Special notes for your reviewer:

Not familiar with Go, but looks confident about 🤗

Since the completion is not "native" but converted from bash, the directive compdef <function> <command> looks not mandatory (this is the second line to append when completion is zsh-native)

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jul 31, 2024
Copy link

linux-foundation-easycla bot commented Jul 31, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Jul 31, 2024
@k8s-ci-robot k8s-ci-robot requested review from cdrage and TessaIO July 31, 2024 12:53
@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Jul 31, 2024
Copy link
Member

@cdrage cdrage left a comment

Choose a reason for hiding this comment

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

This LGTM but unsure regarding why CI is failing, any idea @TessaIO ?

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cdrage, sazriel26

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 1, 2024
@TessaIO
Copy link
Member

TessaIO commented Aug 9, 2024

@sazriel26 can you rebase please to make the tests pass

@sazriel26
Copy link
Contributor Author

@TessaIO I gave a try to rebase, is it ok ?

@cdrage cdrage merged commit 0ccdd74 into kubernetes:main Sep 13, 2024
1 of 2 checks passed
@cdrage
Copy link
Member

cdrage commented Sep 13, 2024

Sorry for the late merge, LGTM now! Tested it locally and it works.

@sazriel26 sazriel26 deleted the fix-zsh-completion branch September 15, 2024 07:55
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants