-
Notifications
You must be signed in to change notification settings - Fork 504
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
Add gopass plugin to krew plugin index #208
Add gopass plugin to krew plugin index #208
Conversation
Welcome @martinhoefling! |
/assign @juanvallejo |
plugins/gopass.yaml
Outdated
shortDescription: Imports secrets from gopass | ||
homepage: https://github.com/gopasspw/kubectl-gopass | ||
caveats: | | ||
This plugin requires bash and gopass to be set up correctly |
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.
“Correctly” is redundant.
plugins/gopass.yaml
Outdated
caveats: | | ||
This plugin requires bash and gopass to be set up correctly | ||
description: | | ||
This plugin allows applying and diffing secrets from gopass to k8s |
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.
Kubernetes is better.
/assign |
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.
Hi, thanks for submitting this to the krew index. This already looks quite good, I only have minor comments.
platforms: | ||
- selector: | ||
matchExpressions: | ||
- {key: os, operator: In, values: [darwin, linux]} |
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.
The script is in pure bash. I think it would also make sense to allow installation on Windows and mention bash as a pre-requisite (which you already do).
Note: for windows, the script should have a .exe
ending.
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.
Actually, windows has bash support in newest windows 10 build. I've enabled it. Not sure about the ending though. I will probably revisit later on as gopass support for windows itself is an ongoing topic.
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.
I'm a bit puzzled now. The manifest has a windows section which also make the CI test fail. Was that intentional?
If you want to add support for windows later, that's fine with me. I was not aware that gopass
is not available for windows yet.
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.
No it shouldn't fail. I made another attempt to fix the build.
plugins/gopass.yaml
Outdated
metadata: | ||
name: gopass | ||
spec: | ||
version: "v0.0.3" |
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.
There is a version mismatch between this manifest and what is reported by kubectl gopass version
(see https://github.com/gopasspw/kubectl-gopass/blob/59315e46389540624cca8c6ecb45694ed1dc3e87/kubectl-gopass#L140). Have you considered to generate deployment artifacts with a script?
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.
Fixed, I added a small helper to create the tags and extracted the version as variable in the script.
- from: "/kubectl-gopass-*/kubectl-gopass" | ||
to: "." | ||
bin: "./kubectl-gopass" | ||
shortDescription: Imports secrets from gopass |
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.
shortDescription: Imports secrets from gopass | |
shortDescription: Imports Secrets from gopass |
Making it a capital S
signals that this is about kubernetes Secret resources. Or maybe even
Imports Secret resources from gopass
homepage: https://github.com/gopasspw/kubectl-gopass | ||
caveats: | | ||
This plugin requires bash and gopass to be set up correctly | ||
description: | |
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.
Most plugins also give some basic usage instructions and how to get help.
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.
I think it's ok if --help/-h works.
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.
I can copy / paste the usage output here, but not sure what you will gain. I think the usage is quite obvious for gopass users right?
Signed-off-by: Martin Hoefling <[email protected]>
Current manifest fails for Windows:
|
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.
One final thought: do you wish to include a link to gopass, or is that tool so standard nowadays that it's simply not necessary?
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: corneliusweig, martinhoefling 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 |
/lgtm |
PLUGIN DEVELOPERS: @martinhoefling, with some hints from @corneliusweig
Exposes
via gopass subcommand.