From 0f59bfdf63121c9438221fb641d8060909ed4d2f Mon Sep 17 00:00:00 2001 From: Abhinandan Purkait Date: Fri, 22 Mar 2024 06:13:52 +0000 Subject: [PATCH] ci: generate krew template file from goreleaser Signed-off-by: Abhinandan Purkait --- .github/workflows/release.yml | 2 +- .goreleaser.yml | 14 ++++++++++ scripts/openebs.yaml | 48 ----------------------------------- 3 files changed, 15 insertions(+), 49 deletions(-) delete mode 100644 scripts/openebs.yaml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a57e5f74..c4c9be79 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,4 +34,4 @@ jobs: - name: Update new version in krew-index uses: rajatjindal/krew-release-bot@v0.0.46 with: - krew_template_file: dist/krew/openebs.yaml + krew_template_file: dist/krew/kubectl-openebs.yaml diff --git a/.goreleaser.yml b/.goreleaser.yml index 59ada96e..ae8d682e 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -48,3 +48,17 @@ nfpms: license: Apache 2.0 formats: - deb + +krews: +- skip_upload: true + homepage: https://github.com/openebs/openebsctl + short_description: View and debug OpenEBS storage resources + description: | + The openebs plugin provides a simplified interface to view + and debug different OpenEBS volumes and related storage resources. + caveats: | + * This plugin works with newer OpenEBS releases, where volumes are + provisioned by CSI. + * For resources that are not in default namespace, you must specify + -n/--namespace explicitly (the current namespace setting is not + yet used). \ No newline at end of file diff --git a/scripts/openebs.yaml b/scripts/openebs.yaml deleted file mode 100644 index 8b4de461..00000000 --- a/scripts/openebs.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: krew.googlecontainertools.github.com/v1alpha2 -kind: Plugin -metadata: - name: openebs -spec: - version: {{ .TagName }} - homepage: https://github.com/openebs/openebsctl - shortDescription: View and debug OpenEBS storage resources - description: | - The openebs plugin provides a simplified interface to view - and debug different OpenEBS volumes and related storage resources. - caveats: | - * This plugin works with newer OpenEBS releases, where volumes are - provisioned by CSI. - * For resources that are not in default namespace, you must specify - -n/--namespace explicitly (the current namespace setting is not - yet used). - platforms: - - selector: - matchLabels: - os: darwin - arch: amd64 - {{addURIAndSha "https://github.com/openebs/openebsctl/releases/download/{{ .TagName }}/kubectl-openebs_{{ .TagName }}_Darwin_x86_64.tar.gz" .TagName }} - bin: kubectl-openebs - - selector: - matchLabels: - os: darwin - arch: arm64 - {{addURIAndSha "https://github.com/openebs/openebsctl/releases/download/{{ .TagName }}/kubectl-openebs_{{ .TagName }}_Darwin_arm64.tar.gz" .TagName }} - bin: kubectl-openebs - - selector: - matchLabels: - os: linux - arch: amd64 - {{addURIAndSha "https://github.com/openebs/openebsctl/releases/download/{{ .TagName }}/kubectl-openebs_{{ .TagName }}_Linux_x86_64.tar.gz" .TagName }} - bin: kubectl-openebs - - selector: - matchLabels: - os: linux - arch: arm64 - {{addURIAndSha "https://github.com/openebs/openebsctl/releases/download/{{ .TagName }}/kubectl-openebs_{{ .TagName }}_Linux_arm64.tar.gz" .TagName }} - bin: kubectl-openebs - - selector: - matchLabels: - os: windows - arch: amd64 - {{addURIAndSha "https://github.com/openebs/openebsctl/releases/download/{{ .TagName }}/kubectl-openebs_{{ .TagName }}_Windows_x86_64.zip" .TagName }} - bin: kubectl-openebs.exe