Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

krew added #173

Merged
merged 12 commits into from
Jan 29, 2021
Merged

krew added #173

merged 12 commits into from
Jan 29, 2021

Conversation

yindia
Copy link
Contributor

@yindia yindia commented Aug 6, 2020

Read then delete

TL;DR

  1. Krew plugin and bot added for publish plugin

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

How did you fix the bug, make the feature etc. Link to any design docs etc

Tracking Issue

flyteorg/flyte#121

Follow-up issue

flyteorg/flyte#121

@yindia yindia requested review from EngHabu and kumare3 as code owners August 6, 2020 05:14
@yindia yindia marked this pull request as draft August 6, 2020 05:14
@yindia
Copy link
Contributor Author

yindia commented Aug 6, 2020

We will merge this PR after our release binary is ready in github release

@codecov-commenter
Copy link

codecov-commenter commented Aug 6, 2020

Codecov Report

Merging #173 into master will not change coverage.
The diff coverage is n/a.

@yindia yindia marked this pull request as ready for review September 28, 2020 17:13
@yindia yindia changed the title krew added [WIP]krew added Sep 28, 2020
@kumare3
Copy link
Contributor

kumare3 commented Sep 28, 2020

Looks good to me, but I cannot verify if this works :)

@yindia
Copy link
Contributor Author

yindia commented Sep 28, 2020

@kumare3 it will need some work

@yindia yindia marked this pull request as draft September 28, 2020 19:44
@yindia
Copy link
Contributor Author

yindia commented Dec 10, 2020

Krew success log. I have only one concern, Krew releases bot through an error if it's prerelease because krew doesn't allow anyone to publish their pre-release.

➜  flytepropeller git:(feature/krew) docker run -v /Users/evalsocket/workspace/golang/src/github.com/lyft/flytepropeller/.krew.yaml:/tmp/template-file.yaml rajatjindal/krew-release-bot:v0.0.38 krew-release-bot template --tag v0.5.12 --template-file /tmp/template-file.yaml
time="2020-12-10T15:13:43Z" level=info msg="getting sha256 for https://github.com/lyft/flytepropeller/releases/download/v0.5.12/kubectl-flyte_v0.5.12_darwin_x86_64.tar.gz"

time="2020-12-10T15:16:22Z" level=info msg="downloaded file /tmp/460437544/1607613223"
time="2020-12-10T15:16:22Z" level=info msg="getting sha256 for https://github.com/lyft/flytepropeller/releases/download/v0.5.12/kubectl-flyte_v0.5.12_linux_x86_64.tar.gz"

time="2020-12-10T15:18:28Z" level=info msg="downloaded file /tmp/967630695/1607613382"
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
  name: flyte
spec:
  version: "v0.5.12"
  homepage: https://github.com/lyft/flyt
  shortDescription: >-
  description: |+2
      kubectl-flyte is an command line tool that can be used as an extension to kubectl.
  platforms:
    - selector:
        matchLabels:
          os: darwin
          arch: amd64
      uri: https://github.com/lyft/flytepropeller/releases/download/v0.5.12/kubectl-flyte_v0.5.12_darwin_x86_64.tar.gz
      sha256: 7ccfe0f2cda4f9ff613191f770d62338aa24ebea923c8748538fd84b11bbc7b3
      files:
        - from: kubectl-flyte
          to: ./flyte
        - from: LICENSE
          to: .
      bin: flyte
    - selector:
        matchLabels:
          os: linux
          arch: amd64
      uri: https://github.com/lyft/flytepropeller/releases/download/v0.5.12/kubectl-flyte_v0.5.12_linux_x86_64.tar.gz
      sha256: c96801b6e2ed208d4e110a34d6a5d6b3a4605fb74ce5b197e57c6f9f04f1ecc3
      files:
        - from: kubectl-flyte
          to: ./flyte
        - from: LICENSE
          to: .
      bin: flyte

@yindia yindia marked this pull request as ready for review December 10, 2020 15:22
@yindia yindia removed the request for review from kumare3 December 10, 2020 18:34
@codecov-io
Copy link

codecov-io commented Dec 15, 2020

Codecov Report

Merging #173 (0ab624c) into master (f2a4b79) will decrease coverage by 0.01%.
The diff coverage is n/a.

@yindia
Copy link
Contributor Author

yindia commented Jan 4, 2021

@EngHabu any update on this PR ?

EngHabu
EngHabu previously approved these changes Jan 13, 2021
.krew.yaml Outdated Show resolved Hide resolved
Co-authored-by: Haytham AbuelFutuh <[email protected]>
Signed-off-by: Yuvraj <[email protected]>
@yindia yindia changed the title [WIP]krew added krew added Jan 21, 2021
@anandswaminathan anandswaminathan merged commit ff2499a into flyteorg:master Jan 29, 2021
eapolinario pushed a commit to eapolinario/flytepropeller that referenced this pull request Aug 9, 2023
* krew added
* change plugin name
* Added release trigger
* Added check for prerelease
* Added action trigger on release

Co-authored-by: Haytham AbuelFutuh <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants