Closed adiii717 closed 3 years ago
closed by #56
Same issue, please reopen
I have the same issue, have re raised here for visibility: https://github.com/yahoo/kubectl-flame/issues/74
Same issue
Updated the local copy of plugin index.
Installing plugin: flame
W0821 10:30:04.442884 61694 install.go:164] failed to install plugin "flame": plugin "flame" does not offer installation for this platform
failed to install some plugins: [flame]: plugin "flame" does not offer installation for this platform
Same issue
W0509 08:05:00.232364 26345 install.go:164] failed to install plugin "flame": plugin "flame" does not offer installation for this platform
failed to install some plugins: [flame]: plugin "flame" does not offer installation for this platform```
you can build and install manually on apple silicon :
# CLONE THE REPO
export PLUGIN_VERSION=v0.2.4
export PLUGIN_COMMIT=dede84c3ad0857ce5a53be8aeb09ae70b253fcfa
export PLUGIN_DATE=$(date +"%Y-%m-%dT%H:%M:%SZ")
CGO_ENABLED=0 GOOS=darwin go build -ldflags "-X github.com/VerizonMedia/kubectl-flame/cli/cmd/version.semver=$PLUGIN_VERSION -X github.com/VerizonMedia/kubectl-flame/cli/cmd/version.date=$PLUGIN_DATE -X github.com/VerizonMedia/kubectl-flame/cli/cmd/version.commit=$PLUGIN_COMMIT" -o kubectl-flame ./cli/main.go
zip kubectl-flame.zip kubectl-flame LICENSE
export PLUGIN_SHA=$(shasum -a 256 kubectl-flame.zip | awk '{print $1}')
cat <<EOF > manifest.yaml
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: flame
spec:
version: $PLUGIN_VERSION
homepage: https://github.com/VerizonMedia/kubectl-flame
shortDescription: A Kubernetes plugin for flame graph generation.
platforms:
- uri: https://localhost:8000/kubectl-flame.zip
sha256: $PLUGIN_SHA
bin: kubectl-flame
files:
- from: kubectl-flame
to: .
- from: LICENSE
to: .
selector:
matchLabels:
os: darwin
arch: arm64
EOF
# IN THE ROOT FOLDER RUN
python3 -m http.server
# IN A NEW TERMINAL AT THE ROOL FOLDER RUN
kubectl krew install --manifest=manifest.yaml --archive=kubectl-flame.zip
Getting below error when tried to install on Apple M1.