From 2e5f4a4f645a0e02c6578213300be3f03b8ff1f4 Mon Sep 17 00:00:00 2001 From: Yuvraj <10830562+evalsocket@users.noreply.github.com> Date: Sat, 30 Jan 2021 01:46:50 +0530 Subject: [PATCH] krew added (#173) * krew added * change plugin name * Added release trigger * Added check for prerelease * Added action trigger on release Co-authored-by: Haytham AbuelFutuh --- flytepropeller/.github/workflows/krew.yaml | 19 +++++++++++++ flytepropeller/.krew.yaml | 33 ++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 flytepropeller/.github/workflows/krew.yaml create mode 100644 flytepropeller/.krew.yaml diff --git a/flytepropeller/.github/workflows/krew.yaml b/flytepropeller/.github/workflows/krew.yaml new file mode 100644 index 0000000000..a8742237af --- /dev/null +++ b/flytepropeller/.github/workflows/krew.yaml @@ -0,0 +1,19 @@ +name: releaser +on: + release: + types: + - published + +jobs: + release-cli-via-krew: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Unshallow + run: git fetch --prune --unshallow + + - name: Update new version in krew-index + if: "!github.event.release.prerelease" + uses: rajatjindal/krew-release-bot@v0.0.38 diff --git a/flytepropeller/.krew.yaml b/flytepropeller/.krew.yaml new file mode 100644 index 0000000000..2f8a19eb25 --- /dev/null +++ b/flytepropeller/.krew.yaml @@ -0,0 +1,33 @@ +apiVersion: krew.googlecontainertools.github.com/v1alpha2 +kind: Plugin +metadata: + name: flyte +spec: + version: "{{ .TagName }}" + homepage: https://github.com/lyft/flyte + shortDescription: Monitor, launch and manage flyte executions + description: |+2 + Kubectl-flyte can be used to manage workflows in a kubernetes cluster executed by FlytePropeller. Users can monitor, visualize executing workflows, delete/terminate executions in bulk, dive into quota utilization for tenants. The tool allows users to launch yaml based Flyte workflows without needing FlyteAdmin etc. For more information about Flyte refer to https://flyte.org + platforms: + - selector: + matchLabels: + os: darwin + arch: amd64 + {{addURIAndSha "https://github.com/lyft/flytepropeller/releases/download/{{ .TagName }}/kubectl-flyte_{{ .TagName }}_darwin_x86_64.tar.gz" .TagName | indent 6}} + files: + - from: kubectl-flyte + to: flyte + - from: LICENSE + to: . + bin: flyte + - selector: + matchLabels: + os: linux + arch: amd64 + {{addURIAndSha "https://github.com/lyft/flytepropeller/releases/download/{{ .TagName }}/kubectl-flyte_{{ .TagName }}_linux_x86_64.tar.gz" .TagName | indent 6}} + files: + - from: kubectl-flyte + to: flyte + - from: LICENSE + to: . + bin: flyte