KubeDeckio / KubeTidy

KubeTidy - A PowerShell tool for cleaning up Kubernetes kubeconfig files by removing unreachable clusters, users, and contexts. Simplify your multi-cluster Kubernetes management with ease. Supports exclusion lists, automated backups, and a detailed summary report. Available on the PowerShell Gallery.
http://kubetidy.io/
MIT License
26 stars 3 forks source link

[Feature]: Support for macOS arm64 (Apple Silicon) #28

Open cheekm opened 1 week ago

cheekm commented 1 week ago

Summary

Support for Apple Silicon machines - macOS arm64

Use Case

This will widen the support of KubeTidy Mac users beyond x86_64 machines

Implementation Details

n/a

Additional Context

n/a

PixelRobots commented 1 week ago

Hello,

Thanks for the suggestion.

Are you wanting to use the PowerShell module or the Krew plugin.

Have you tried to use the PowerShell module? Did you get any errors?

Thanks

cheekm commented 1 week ago

I will use the Krew plugin.

By the way, I was able to get it installed and running by changing the arch value in the downloaded KubeTidy.yaml from amd64 to arm64.

Matt

From: Richard Hooper @.> Date: Friday, October 11, 2024 at 2:40 PM To: PixelRobots/KubeTidy @.> Cc: Cheek, Matthew @.>, Author @.> Subject: Re: [PixelRobots/KubeTidy] [Feature]: Support for macOS arm64 (Apple Silicon) (Issue #28)

Hello,

Thanks for the suggestion.

Are you wanting to use the PowerShell module or the Krew plugin.

Have you tried to use the PowerShell module? Did you get any errors?

Thanks

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/PixelRobots/KubeTidy/issues/28*issuecomment-2407945723__;Iw!!NHLzug!K4DOkaw6HKoTwLtACGKAc4GGBp5UbKj30-j_AqPKvg6hCx5f1ci_hbgx0Eg3UCvjuS2QgYI4q_ripTC_DUKJwZc$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AILE4P4A3W5Q3HJOIHPDZMDZ3ALS3AVCNFSM6AAAAABPO6SWKCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBXHE2DKNZSGM__;!!NHLzug!K4DOkaw6HKoTwLtACGKAc4GGBp5UbKj30-j_AqPKvg6hCx5f1ci_hbgx0Eg3UCvjuS2QgYI4q_ripTC_HWBe6fA$. You are receiving this because you authored the thread.Message ID: @.***>

PixelRobots commented 2 days ago

Thanks for confirming.

I have updated the kubeTidy.yaml file now and it gets populated into the release so you can use that for arm.

You can try this command to test:

# Fetch the latest release tag using GitHub's API
LATEST_VERSION=$(curl -s https://api.github.com/repos/KubeDeckio/KubeTidy/releases/latest | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/')

# Download the KubeTidy.yaml file from the latest release
curl -L -H "Cache-Control: no-cache" -O https://github.com/KubeDeckio/KubeTidy/releases/download/$LATEST_VERSION/KubeTidy.yaml

# Install the plugin using the downloaded KubeTidy.yaml file
kubectl krew install --manifest="./KubeTidy.yaml"

Let me know how you get on please.