diff --git a/.krew.yaml b/.krew.yaml index 349225e..24e3334 100644 --- a/.krew.yaml +++ b/.krew.yaml @@ -11,33 +11,33 @@ spec: and then prompts you to confirm by typing 'yes' before proceeding to execute the kubectl command. platforms: - - bin: kubectl-confirm - {{addURIAndSha "https://github.com/brianpursley/kubectl-confirm/releases/download/{{ .TagName }}/kubectl-confirm-{{ .TagName }}-darwin-amd64.tar.gz" .TagName }} - selector: + - selector: matchLabels: os: darwin arch: amd64 - - bin: kubectl-confirm - {{addURIAndSha "https://github.com/brianpursley/kubectl-confirm/releases/download/{{ .TagName }}/kubectl-confirm-{{ .TagName }}-darwin-arm64.tar.gz" .TagName }} - selector: + {{addURIAndSha "https://github.com/brianpursley/kubectl-confirm/releases/download/{{ .TagName }}/kubectl-confirm-{{ .TagName }}-darwin-amd64.tar.gz" .TagName }} + bin: kubectl-confirm + - selector: matchLabels: os: darwin arch: arm64 - - bin: kubectl-confirm - {{addURIAndSha "https://github.com/brianpursley/kubectl-confirm/releases/download/{{ .TagName }}/kubectl-confirm-{{ .TagName }}-linux-amd64.tar.gz" .TagName }} - selector: + {{addURIAndSha "https://github.com/brianpursley/kubectl-confirm/releases/download/{{ .TagName }}/kubectl-confirm-{{ .TagName }}-darwin-arm64.tar.gz" .TagName }} + bin: kubectl-confirm + - selector: matchLabels: os: linux arch: amd64 - - bin: kubectl-confirm - {{addURIAndSha "https://github.com/brianpursley/kubectl-confirm/releases/download/{{ .TagName }}/kubectl-confirm-{{ .TagName }}-linux-arm64.tar.gz" .TagName }} - selector: + {{addURIAndSha "https://github.com/brianpursley/kubectl-confirm/releases/download/{{ .TagName }}/kubectl-confirm-{{ .TagName }}-linux-amd64.tar.gz" .TagName }} + bin: kubectl-confirm + - selector: matchLabels: os: linux arch: arm64 - - bin: kubectl-confirm.exe - {{addURIAndSha "https://github.com/brianpursley/kubectl-confirm/releases/download/{{ .TagName }}/kubectl-confirm-{{ .TagName }}-windows-amd64.tar.gz" .TagName }} - selector: + {{addURIAndSha "https://github.com/brianpursley/kubectl-confirm/releases/download/{{ .TagName }}/kubectl-confirm-{{ .TagName }}-linux-arm64.tar.gz" .TagName }} + bin: kubectl-confirm + - selector: matchLabels: os: windows arch: amd64 + {{addURIAndSha "https://github.com/brianpursley/kubectl-confirm/releases/download/{{ .TagName }}/kubectl-confirm-{{ .TagName }}-windows-amd64.tar.gz" .TagName }} + bin: kubectl-confirm.exe diff --git a/README.md b/README.md index 6581bcf..f6c99cd 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Kubectl Confirm is a plugin for Kubectl that displays information and asked for The following information is displayed: * Configuration: Context name, Cluster, User, and Namespace * Dry Run Output (if the executed command supports the `--dry-run` flag) -* Diff Output (`apply` command only) +* Diff Output (if the executed command supports the `--dry-run` and `--output` flags) ## Example Output ```