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 darwin/arm64 support #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ builds:
goarch:
- amd64
- "386"
- arm64
env:
- CGO_ENABLED=0
- GO111MODULE=on
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ GOOS ?= $(shell go env GOOS)
GOPATH ?= $(shell go env GOPATH)

BUILDDIR := out
PLATFORMS ?= darwin/amd64 windows/amd64 linux/amd64
PLATFORMS ?= darwin/amd64 windows/amd64 linux/amd64 darwin/arm64
DISTFILE := $(BUILDDIR)/$(VERSION).tar.gz
ASSETS := $(BUILDDIR)/pod-dive-$(GOARCH)-darwin.tar.gz $(BUILDDIR)/pod-dive-$(GOARCH)-linux.tar.gz $(BUILDDIR)/pod-dive-$(GOARCH)-windows.zip
CHECKSUMS := $(patsubst %,%.sha256,$(ASSETS))
Expand Down Expand Up @@ -128,6 +128,7 @@ dist: $(DISTFILE) ## create a tar archive of the source code
compact: build
@cp LICENSE $(BUILDDIR) && \
cd $(BUILDDIR) && \
tar cvvfz pod-dive-arm64-darwin.tar.gz pod-dive-arm64-darwin LICENSE && \
tar cvvfz pod-dive-amd64-darwin.tar.gz pod-dive-amd64-darwin LICENSE && \
tar cvvfz pod-dive-amd64-linux.tar.gz pod-dive-amd64-linux LICENSE && \
zip pod-dive-amd64-windows.exe.zip pod-dive-amd64-windows.exe LICENSE
Expand Down Expand Up @@ -158,4 +159,5 @@ clean: ## clean up build directory and binaries files

$(BUILDDIR)/pod-dive-amd64-linux: build
$(BUILDDIR)/pod-dive-amd64-darwin: build
$(BUILDDIR)/pod-dive-arm64-darwin: build
$(BUILDDIR)/pod-dive-amd64-windows.exe: build
28 changes: 20 additions & 8 deletions deploy/krew/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ kind: Plugin
metadata:
name: pod-dive
spec:
version: "v0.1.4"
version: "v0.1.5"
platforms:
- selector:
matchLabels:
os: linux
arch: amd64
uri: https://github.com/caiobegotti/pod-dive/releases/download/v0.1.4/pod-dive-amd64-linux.tar.gz
sha256: "663d7f981b3c01dc13bfc2119b0abd0b5b20c85b4b755f6fec9e8cb8be34f343"
uri: https://github.com/caiobegotti/pod-dive/releases/download/v0.1.5/pod-dive-amd64-linux.tar.gz
sha256: "6ba0fb94abda46018a1409f7517868e135be44bbfa1ab76ebd0ce244954748f5"
files:
- from: "./LICENSE"
to: "."
Expand All @@ -21,20 +21,32 @@ spec:
matchLabels:
os: darwin
arch: amd64
uri: https://github.com/caiobegotti/pod-dive/releases/download/v0.1.4/pod-dive-amd64-darwin.tar.gz
sha256: "d314e57e5807afc4669c5a25852a733f1bc3140441bbd397b5666b22b5090617"
uri: https://github.com/caiobegotti/pod-dive/releases/download/v0.1.5/pod-dive-amd64-darwin.tar.gz
sha256: "cf0f3e6b630e334a366759e3549977f6c540650aaf7a22af376f41d3e345b564"
files:
- from: "./LICENSE"
to: "."
- from: "./pod-dive-amd64-darwin"
to: "."
bin: "pod-dive-amd64-darwin"
- selector:
matchLabels:
os: darwin
arch: arm64
uri: https://github.com/caiobegotti/pod-dive/releases/download/v0.1.5/pod-dive-arm64-darwin.tar.gz
sha256: "e2ce0619e56acd353358910a76586b3eb7864775ce16966077d7a06edcea9f49"
files:
- from: "./LICENSE"
to: "."
- from: "./pod-dive-arm64-darwin"
to: "."
bin: "pod-dive-arm64-darwin"
- selector:
matchLabels:
os: windows
arch: amd64
uri: https://github.com/caiobegotti/pod-dive/releases/download/v0.1.4/pod-dive-amd64-windows.exe.zip
sha256: "199481b1a5caffe419cf7d2972f19043655ace20ca79394784636e98693b1540"
uri: https://github.com/caiobegotti/pod-dive/releases/download/v0.1.5/pod-dive-amd64-windows.exe.zip
sha256: "00d0a7f65b27e5d253d1f7be46730917583dc20ff27bd13c39e875f2e37e13b0"
files:
- from: "./LICENSE"
to: "."
Expand All @@ -52,7 +64,7 @@ spec:
The purpose is to have meaningful pod info at a glance without needing to
run multiple kubectl commands to see what else is running next to your
pod in a given node inside a huge cluster, because sometimes all
you've got from an alert is the pod name.
you've got from an alert is the pod name.

Usage
$ kubectl pod-dive [pod name]
Expand Down