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

Add krew plugin file #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
66 changes: 66 additions & 0 deletions .krew.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: sync
spec:
version: {{ .TagName }}
homepage: https://github.com/viveksyngh/kube-sync
platforms:
- selector:
matchLabels:
os: darwin
arch: amd64
uri: "https://github.com/viveksyngh/kube-sync/releases/download/{{ .TagName }}/kube-sync-darwin-amd64" .TagName }}
sha256: "https://github.com/viveksyngh/kube-sync/releases/download/{{ .TagName }}/kube-sync-darwin-amd64.sha256sum
" .TagName }}
files:
- from: "*"
to: "."
bin: kubectl-sync
- selector:
matchLabels:
os: darwin
arch: arm64
uri: "https://github.com/viveksyngh/kube-sync/releases/download/{{ .TagName }}/kube-sync-darwin-arm64" .TagName }}
sha256: "https://github.com/viveksyngh/kube-sync/releases/download/{{ .TagName }}/kube-sync-darwin-arm64.sha256sum
" .TagName }}
files:
- from: "*"
to: "."
bin: kubectl-sync
- selector:
matchLabels:
os: linux
arch: amd64
uri: "https://github.com/viveksyngh/kube-sync/releases/download/{{ .TagName }}/kube-sync-linux-amd64" .TagName }}
sha256: "https://github.com/viveksyngh/kube-sync/releases/download/{{ .TagName }}/kube-sync-linux-amd64.sha256sum
" .TagName }}
files:
- from: "*"
to: "."
bin: kubectl-sync
- selector:
matchLabels:
os: linux
arch: arm64
uri: "https://github.com/viveksyngh/kube-sync/releases/download/{{ .TagName }}/kube-sync-linux-arm64" .TagName }}
sha256: "https://github.com/viveksyngh/kube-sync/releases/download/{{ .TagName }}/kube-sync-linux-arm64.sha256sum
" .TagName }}
files:
- from: "*"
to: "."
bin: kubectl-sync
- selector:
matchLabels:
os: windows
arch: amd64
uri: "https://github.com/viveksyngh/kube-sync/releases/download/{{ .TagName }}/kube-sync-windows-amd64" .TagName }}
sha256: "https://github.com/viveksyngh/kube-sync/releases/download/{{ .TagName }}/kube-sync-windows-amd64.sha256sum
" .TagName }}
files:
- from: "*"
to: "."
bin: kubectl-sync
shortDescription: Sync/Copy ConfigMaps and secrets from one namespace to another.
description: |
CLI plugin to copy/sync ConfigMaps and secrets from one namespace to another.