From 6580e3e39364b2f782f98fb58e5b2be77965d951 Mon Sep 17 00:00:00 2001 From: Dan Isla Date: Sat, 4 Aug 2018 07:41:13 -0700 Subject: [PATCH 1/4] import of plugins from danisla --- plugins/gke-credentials.yaml | 20 ++++++++++++++++++++ plugins/install-cert-manager.yaml | 20 ++++++++++++++++++++ plugins/install-helm.yaml | 19 +++++++++++++++++++ plugins/kube-node-admin.yaml | 20 ++++++++++++++++++++ plugins/kube-shell.yaml | 20 ++++++++++++++++++++ plugins/pod-logs.yaml | 20 ++++++++++++++++++++ plugins/pod-shell.yaml | 20 ++++++++++++++++++++ 7 files changed, 139 insertions(+) create mode 100644 plugins/gke-credentials.yaml create mode 100644 plugins/install-cert-manager.yaml create mode 100644 plugins/install-helm.yaml create mode 100644 plugins/kube-node-admin.yaml create mode 100644 plugins/kube-shell.yaml create mode 100644 plugins/pod-logs.yaml create mode 100644 plugins/pod-shell.yaml diff --git a/plugins/gke-credentials.yaml b/plugins/gke-credentials.yaml new file mode 100644 index 00000000000..8f0c11a8110 --- /dev/null +++ b/plugins/gke-credentials.yaml @@ -0,0 +1,20 @@ +apiVersion: krew.googlecontainertools.github.com/v1alpha1 +kind: Plugin +metadata: + name: gke-credentials +spec: + platforms: + - head: https://github.com/danisla/kubefunc/archive/v1.0.1.zip + sha256: c548f94d8efd1fb8aa35a54b7e5cdb64ae012447122d9704f3cee4163bbbe9c3 + uri: https://github.com/danisla/kubefunc/archive/v1.0.1.zip + files: + - from: "/*/gke-credentials/*" + to: "." + selector: + matchExpressions: + - {key: os, operator: In, values: [darwin, linux]} + version: "v1.0.1" + shortDescription: Fetch credentials for GKE clusters + caveats: | + This plugin needs the following programs: + * gcloud diff --git a/plugins/install-cert-manager.yaml b/plugins/install-cert-manager.yaml new file mode 100644 index 00000000000..9eb5bf7204f --- /dev/null +++ b/plugins/install-cert-manager.yaml @@ -0,0 +1,20 @@ +apiVersion: krew.googlecontainertools.github.com/v1alpha1 +kind: Plugin +metadata: + name: install-cert-manager +spec: + platforms: + - head: https://github.com/danisla/kubefunc/archive/v1.0.1.zip + sha256: c548f94d8efd1fb8aa35a54b7e5cdb64ae012447122d9704f3cee4163bbbe9c3 + uri: https://github.com/danisla/kubefunc/archive/v1.0.1.zip + files: + - from: "/*/install-cert-manager/*" + to: "." + selector: + matchExpressions: + - {key: os, operator: In, values: [darwin, linux]} + version: "v1.0.1" + shortDescription: Install cert-manager helm chart + caveats: | + This plugin needs the following programs: + * helm diff --git a/plugins/install-helm.yaml b/plugins/install-helm.yaml new file mode 100644 index 00000000000..2cca570ab50 --- /dev/null +++ b/plugins/install-helm.yaml @@ -0,0 +1,19 @@ +apiVersion: krew.googlecontainertools.github.com/v1alpha1 +kind: Plugin +metadata: + name: install-helm +spec: + platforms: + - head: https://github.com/danisla/kubefunc/archive/v1.0.1.zip + sha256: c548f94d8efd1fb8aa35a54b7e5cdb64ae012447122d9704f3cee4163bbbe9c3 + uri: https://github.com/danisla/kubefunc/archive/v1.0.1.zip + files: + - from: "/*/install-helm/*" + to: "." + selector: + matchExpressions: + - {key: os, operator: In, values: [darwin, linux]} + version: "v1.0.1" + shortDescription: Install helm package manager + caveats: | + This plugin will overwrite any existing local helm install diff --git a/plugins/kube-node-admin.yaml b/plugins/kube-node-admin.yaml new file mode 100644 index 00000000000..111b198cb57 --- /dev/null +++ b/plugins/kube-node-admin.yaml @@ -0,0 +1,20 @@ +apiVersion: krew.googlecontainertools.github.com/v1alpha1 +kind: Plugin +metadata: + name: kube-node-admin +spec: + platforms: + - head: https://github.com/danisla/kubefunc/archive/v1.0.1.zip + sha256: c548f94d8efd1fb8aa35a54b7e5cdb64ae012447122d9704f3cee4163bbbe9c3 + uri: https://github.com/danisla/kubefunc/archive/v1.0.1.zip + files: + - from: "/*/kube-node-admin/*" + to: "." + selector: + matchExpressions: + - {key: os, operator: In, values: [darwin, linux]} + version: "v1.0.1" + shortDescription: List nodes and run privileged pod with chroot + caveats: | + This plugin needs the following programs: + * kubectl diff --git a/plugins/kube-shell.yaml b/plugins/kube-shell.yaml new file mode 100644 index 00000000000..da127def81e --- /dev/null +++ b/plugins/kube-shell.yaml @@ -0,0 +1,20 @@ +apiVersion: krew.googlecontainertools.github.com/v1alpha1 +kind: Plugin +metadata: + name: kube-shell +spec: + platforms: + - head: https://github.com/danisla/kubefunc/archive/v1.0.1.zip + sha256: c548f94d8efd1fb8aa35a54b7e5cdb64ae012447122d9704f3cee4163bbbe9c3 + uri: https://github.com/danisla/kubefunc/archive/v1.0.1.zip + files: + - from: "/*/kube-shell/*" + to: "." + selector: + matchExpressions: + - {key: os, operator: In, values: [darwin, linux]} + version: "v1.0.1" + shortDescription: Create pod with interactive shell + caveats: | + This plugin needs the following programs: + * kubectl diff --git a/plugins/pod-logs.yaml b/plugins/pod-logs.yaml new file mode 100644 index 00000000000..d25ad68cb50 --- /dev/null +++ b/plugins/pod-logs.yaml @@ -0,0 +1,20 @@ +apiVersion: krew.googlecontainertools.github.com/v1alpha1 +kind: Plugin +metadata: + name: pod-logs +spec: + platforms: + - head: https://github.com/danisla/kubefunc/archive/v1.0.1.zip + sha256: c548f94d8efd1fb8aa35a54b7e5cdb64ae012447122d9704f3cee4163bbbe9c3 + uri: https://github.com/danisla/kubefunc/archive/v1.0.1.zip + files: + - from: "/*/pod-logs/*" + to: "." + selector: + matchExpressions: + - {key: os, operator: In, values: [darwin, linux]} + version: "v1.0.1" + shortDescription: Get logs from a list of pods + caveats: | + This plugin needs the following programs: + * kubectl diff --git a/plugins/pod-shell.yaml b/plugins/pod-shell.yaml new file mode 100644 index 00000000000..0ea27dfda50 --- /dev/null +++ b/plugins/pod-shell.yaml @@ -0,0 +1,20 @@ +apiVersion: krew.googlecontainertools.github.com/v1alpha1 +kind: Plugin +metadata: + name: pod-shell +spec: + platforms: + - head: https://github.com/danisla/kubefunc/archive/v1.0.1.zip + sha256: c548f94d8efd1fb8aa35a54b7e5cdb64ae012447122d9704f3cee4163bbbe9c3 + uri: https://github.com/danisla/kubefunc/archive/v1.0.1.zip + files: + - from: "/*/pod-shell/*" + to: "." + selector: + matchExpressions: + - {key: os, operator: In, values: [darwin, linux]} + version: "v1.0.1" + shortDescription: Run shell command in pod + caveats: | + This plugin needs the following programs: + * kubectl From 80778e49f8b830a05c6b848e764779115bc97e14 Mon Sep 17 00:00:00 2001 From: Dan Isla Date: Tue, 7 Aug 2018 14:03:58 -0700 Subject: [PATCH 2/4] removed install-cert-manager and install-helm plugins --- plugins/install-cert-manager.yaml | 20 -------------------- plugins/install-helm.yaml | 19 ------------------- 2 files changed, 39 deletions(-) delete mode 100644 plugins/install-cert-manager.yaml delete mode 100644 plugins/install-helm.yaml diff --git a/plugins/install-cert-manager.yaml b/plugins/install-cert-manager.yaml deleted file mode 100644 index 9eb5bf7204f..00000000000 --- a/plugins/install-cert-manager.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: krew.googlecontainertools.github.com/v1alpha1 -kind: Plugin -metadata: - name: install-cert-manager -spec: - platforms: - - head: https://github.com/danisla/kubefunc/archive/v1.0.1.zip - sha256: c548f94d8efd1fb8aa35a54b7e5cdb64ae012447122d9704f3cee4163bbbe9c3 - uri: https://github.com/danisla/kubefunc/archive/v1.0.1.zip - files: - - from: "/*/install-cert-manager/*" - to: "." - selector: - matchExpressions: - - {key: os, operator: In, values: [darwin, linux]} - version: "v1.0.1" - shortDescription: Install cert-manager helm chart - caveats: | - This plugin needs the following programs: - * helm diff --git a/plugins/install-helm.yaml b/plugins/install-helm.yaml deleted file mode 100644 index 2cca570ab50..00000000000 --- a/plugins/install-helm.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: krew.googlecontainertools.github.com/v1alpha1 -kind: Plugin -metadata: - name: install-helm -spec: - platforms: - - head: https://github.com/danisla/kubefunc/archive/v1.0.1.zip - sha256: c548f94d8efd1fb8aa35a54b7e5cdb64ae012447122d9704f3cee4163bbbe9c3 - uri: https://github.com/danisla/kubefunc/archive/v1.0.1.zip - files: - - from: "/*/install-helm/*" - to: "." - selector: - matchExpressions: - - {key: os, operator: In, values: [darwin, linux]} - version: "v1.0.1" - shortDescription: Install helm package manager - caveats: | - This plugin will overwrite any existing local helm install From 50693ac0c4a9067041f2548c8a116ec7c0c2aeeb Mon Sep 17 00:00:00 2001 From: Dan Isla Date: Tue, 7 Aug 2018 14:07:40 -0700 Subject: [PATCH 3/4] updated shortDescription of pod-logs and pod-shell --- plugins/pod-logs.yaml | 2 +- plugins/pod-shell.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/pod-logs.yaml b/plugins/pod-logs.yaml index d25ad68cb50..2cac97aaa0d 100644 --- a/plugins/pod-logs.yaml +++ b/plugins/pod-logs.yaml @@ -14,7 +14,7 @@ spec: matchExpressions: - {key: os, operator: In, values: [darwin, linux]} version: "v1.0.1" - shortDescription: Get logs from a list of pods + shortDescription: Display a list of pods to get logs from caveats: | This plugin needs the following programs: * kubectl diff --git a/plugins/pod-shell.yaml b/plugins/pod-shell.yaml index 0ea27dfda50..2ad7b0e5833 100644 --- a/plugins/pod-shell.yaml +++ b/plugins/pod-shell.yaml @@ -14,7 +14,7 @@ spec: matchExpressions: - {key: os, operator: In, values: [darwin, linux]} version: "v1.0.1" - shortDescription: Run shell command in pod + shortDescription: Display a list of pods to execute a shell in caveats: | This plugin needs the following programs: * kubectl From c4fbaaeeaedf352128e490183176ccfb593ee89e Mon Sep 17 00:00:00 2001 From: Dan Isla Date: Tue, 7 Aug 2018 14:10:50 -0700 Subject: [PATCH 4/4] removed kubectl from caveats --- plugins/kube-node-admin.yaml | 5 +---- plugins/kube-shell.yaml | 5 +---- plugins/pod-logs.yaml | 3 --- plugins/pod-shell.yaml | 4 +--- 4 files changed, 3 insertions(+), 14 deletions(-) diff --git a/plugins/kube-node-admin.yaml b/plugins/kube-node-admin.yaml index 111b198cb57..c8c6e20588e 100644 --- a/plugins/kube-node-admin.yaml +++ b/plugins/kube-node-admin.yaml @@ -14,7 +14,4 @@ spec: matchExpressions: - {key: os, operator: In, values: [darwin, linux]} version: "v1.0.1" - shortDescription: List nodes and run privileged pod with chroot - caveats: | - This plugin needs the following programs: - * kubectl + shortDescription: List nodes and run privileged pod with chroot \ No newline at end of file diff --git a/plugins/kube-shell.yaml b/plugins/kube-shell.yaml index da127def81e..5b6839dcec0 100644 --- a/plugins/kube-shell.yaml +++ b/plugins/kube-shell.yaml @@ -14,7 +14,4 @@ spec: matchExpressions: - {key: os, operator: In, values: [darwin, linux]} version: "v1.0.1" - shortDescription: Create pod with interactive shell - caveats: | - This plugin needs the following programs: - * kubectl + shortDescription: Create pod with interactive shell \ No newline at end of file diff --git a/plugins/pod-logs.yaml b/plugins/pod-logs.yaml index 2cac97aaa0d..19c7a4f33ec 100644 --- a/plugins/pod-logs.yaml +++ b/plugins/pod-logs.yaml @@ -15,6 +15,3 @@ spec: - {key: os, operator: In, values: [darwin, linux]} version: "v1.0.1" shortDescription: Display a list of pods to get logs from - caveats: | - This plugin needs the following programs: - * kubectl diff --git a/plugins/pod-shell.yaml b/plugins/pod-shell.yaml index 2ad7b0e5833..a1f0e0a0492 100644 --- a/plugins/pod-shell.yaml +++ b/plugins/pod-shell.yaml @@ -15,6 +15,4 @@ spec: - {key: os, operator: In, values: [darwin, linux]} version: "v1.0.1" shortDescription: Display a list of pods to execute a shell in - caveats: | - This plugin needs the following programs: - * kubectl + \ No newline at end of file