From 52bddd4711f3ee141ad2bd2df11fc1db1cad3f81 Mon Sep 17 00:00:00 2001 From: Martin Hoefling Date: Sun, 18 Aug 2019 22:38:03 +0200 Subject: [PATCH 1/5] Add gopass plugin to krew plugin index --- plugins/gopass.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 plugins/gopass.yaml diff --git a/plugins/gopass.yaml b/plugins/gopass.yaml new file mode 100644 index 00000000000..b729ba59ac0 --- /dev/null +++ b/plugins/gopass.yaml @@ -0,0 +1,22 @@ +apiVersion: krew.googlecontainertools.github.com/v1alpha2 +kind: Plugin +metadata: + name: gopass +spec: + version: "v0.0.2" + platforms: + - selector: + matchExpressions: + - {key: os, operator: In, values: [darwin, linux]} + uri: https://github.com/gopasspw/kubectl-gopass/archive/v0.0.2.zip + sha256: "794bcbf82428e321f3301c443437259cd79ee13d31dbff3dc4ad226421a2a7a7" + files: + - from: "/kubectl-gopass-*/kubectl-gopass" + to: "." + bin: "./kubectl-gopass" + shortDescription: Imports secrets from gopass + homepage: https://github.com/gopasspw/kubectl-gopass + caveats: | + This plugin requires bash and gopass to be set up correctly + description: | + This plugin allows applying and diffing secrets from gopass to k8s From 13bc453dc294439519a0c97e64fe861436297a05 Mon Sep 17 00:00:00 2001 From: Martin Hoefling Date: Sun, 18 Aug 2019 23:03:33 +0200 Subject: [PATCH 2/5] Fix typo in plugin --- plugins/gopass.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/gopass.yaml b/plugins/gopass.yaml index b729ba59ac0..bb6c4049ccf 100644 --- a/plugins/gopass.yaml +++ b/plugins/gopass.yaml @@ -3,13 +3,13 @@ kind: Plugin metadata: name: gopass spec: - version: "v0.0.2" + version: "v0.0.3" platforms: - selector: matchExpressions: - {key: os, operator: In, values: [darwin, linux]} - uri: https://github.com/gopasspw/kubectl-gopass/archive/v0.0.2.zip - sha256: "794bcbf82428e321f3301c443437259cd79ee13d31dbff3dc4ad226421a2a7a7" + uri: https://github.com/gopasspw/kubectl-gopass/archive/v0.0.3.zip + sha256: "ae4d2aa8ec061aa6916b2120fa3caf48d1cee328bab7cd263a03f8b1aeec22f8" files: - from: "/kubectl-gopass-*/kubectl-gopass" to: "." From 03cbfacdaf755e4b0af3e526260bdf204918744d Mon Sep 17 00:00:00 2001 From: Martin Hoefling Date: Tue, 20 Aug 2019 22:19:14 +0200 Subject: [PATCH 3/5] Update manifest and point to new version with suggested fixes Signed-off-by: Martin Hoefling --- plugins/gopass.yaml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/plugins/gopass.yaml b/plugins/gopass.yaml index bb6c4049ccf..a6b45aa54ac 100644 --- a/plugins/gopass.yaml +++ b/plugins/gopass.yaml @@ -3,20 +3,30 @@ kind: Plugin metadata: name: gopass spec: - version: "v0.0.3" + version: "v0.0.4" platforms: - selector: matchExpressions: - {key: os, operator: In, values: [darwin, linux]} - uri: https://github.com/gopasspw/kubectl-gopass/archive/v0.0.3.zip - sha256: "ae4d2aa8ec061aa6916b2120fa3caf48d1cee328bab7cd263a03f8b1aeec22f8" + uri: https://github.com/gopasspw/kubectl-gopass/archive/v0.0.4.zip + sha256: "8bae04664693153555af921fb19b896aaccf39f7dec200e430816ff3fa47e1eb" files: - from: "/kubectl-gopass-*/kubectl-gopass" to: "." bin: "./kubectl-gopass" + - selector: + matchLabels: + os: windows + uri: https://github.com/gopasspw/kubectl-gopass/archive/v0.0.4.zip + sha256: "8bae04664693153555af921fb19b896aaccf39f7dec200e430816ff3fa47e1eb" + files: + - from: "/kubectl-gopass-*/kubectl-gopass" + to: "." + bin: "./kubectl-gopass.exe" shortDescription: Imports secrets from gopass homepage: https://github.com/gopasspw/kubectl-gopass caveats: | - This plugin requires bash and gopass to be set up correctly + This plugin requires bash and gopass description: | - This plugin allows applying and diffing secrets from gopass to k8s + This plugin allows applying and diffing secrets from gopass to kubernetes + and creating kubernetes secrets in gopass. From 7bf90c0122f9d016f53265c1f1221285516917bd Mon Sep 17 00:00:00 2001 From: Martin Hoefling Date: Thu, 22 Aug 2019 22:08:49 +0200 Subject: [PATCH 4/5] Set .exe as target in manifest for windows --- plugins/gopass.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/gopass.yaml b/plugins/gopass.yaml index a6b45aa54ac..79644edea0e 100644 --- a/plugins/gopass.yaml +++ b/plugins/gopass.yaml @@ -21,7 +21,7 @@ spec: sha256: "8bae04664693153555af921fb19b896aaccf39f7dec200e430816ff3fa47e1eb" files: - from: "/kubectl-gopass-*/kubectl-gopass" - to: "." + to: "kubectl-gopass.exe" bin: "./kubectl-gopass.exe" shortDescription: Imports secrets from gopass homepage: https://github.com/gopasspw/kubectl-gopass From 4fe56f24a2ca412a8663e385aba8463cb7d645c6 Mon Sep 17 00:00:00 2001 From: Martin Hoefling Date: Fri, 23 Aug 2019 21:40:13 +0200 Subject: [PATCH 5/5] Add gopass url to manifest description --- plugins/gopass.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/gopass.yaml b/plugins/gopass.yaml index 79644edea0e..c67192f39a9 100644 --- a/plugins/gopass.yaml +++ b/plugins/gopass.yaml @@ -29,4 +29,4 @@ spec: This plugin requires bash and gopass description: | This plugin allows applying and diffing secrets from gopass to kubernetes - and creating kubernetes secrets in gopass. + and creating kubernetes secrets in gopass (https://www.gopass.pw/).