Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added .krew.yaml and uncommented krew bot in release.yaml #34

Merged
merged 1 commit into from
Apr 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ jobs:

# TODO: Test using krew-release-bot later

# - name: Update new version in krew-index
# uses: rajatjindal/[email protected]
- name: Update new version in krew-index
uses: rajatjindal/[email protected]
49 changes: 49 additions & 0 deletions .krew.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
# 'name' must match the filename of the manifest. The name defines how
# the plugin is invoked, for example: `kubectl restart`
name: aws-auth
spec:
# 'version' is a valid semantic version string (see semver.org)
version: {{ .TagName }}
# 'homepage' usually links to the GitHub repository of the plugin
homepage: https://github.com/keiko/aws-auth
# 'shortDescription' explains what the plugin does in only a few words
shortDescription: "Makes the management of the aws-auth config map for EKS Kubernetes clusters easier"
description: |
Useful for automation purposes, any workflow that needs
to grant IAM access to an EKS cluster can use this plugin
to modify the config map.
# 'platforms' specify installation methods for various platforms (os/arch)
platforms:
- selector:
matchLabels:
os: darwin
arch: amd64
{{addURIAndSha https://github.com/keikoproj/aws-auth/releases/download/{{ .TagName }}/aws-auth_{{ .TagName }}_darwin_amd64.tar.gz" .TagName }}
bin: aws-auth
- selector:
matchLabels:
os: darwin
arch: arm64
{{addURIAndSha https://github.com/keikoproj/aws-auth/releases/download/{{ .TagName }}/aws-auth_{{ .TagName }}_darwin_arm64.tar.gz" .TagName }}
bin: aws-auth
- selector:
matchLabels:
os: linux
arch: amd64
{{addURIAndSha https://github.com/keikoproj/aws-auth/releases/download/{{ .TagName }}/aws-auth_{{ .TagName }}_linux_amd64.tar.gz" .TagName }}
bin: aws-auth
- selector:
matchLabels:
os: linux
arch: arm64
{{addURIAndSha https://github.com/keikoproj/aws-auth/releases/download/{{ .TagName }}/aws-auth_{{ .TagName }}_linux_arm64.tar.gz" .TagName }}
bin: aws-auth
- selector:
matchLabels:
os: windows
arch: amd64
{{ addURIAndSha https://github.com/keikoproj/aws-auth/releases/download/{{ .TagName }}/aws-auth_{{ .TagName }}_windows_amd64.tar.gz" .TagName }}
bin: aws-auth.exe