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

Unable to test custom added addons on MacOS #144

Open
S-ayanide opened this issue May 14, 2023 · 0 comments
Open

Unable to test custom added addons on MacOS #144

S-ayanide opened this issue May 14, 2023 · 0 comments

Comments

@S-ayanide
Copy link

S-ayanide commented May 14, 2023

Summary

Unable to test local dev addons on microk8s on a Darwin based system. I installed microk8s using multipass and on execing into the vm I am getting an empty common folder in the /var/snap/microk8s/common file path.

Since snap is not available on mac, by getting it from homebrew and doing a sudo snap install microk8s --classic --channel latest/edge/addons I get this

Interacting with snapd is not yet supported on darwin.
This command has been left available for documentation purposes only.

Some alternatives I tried were pushing my enable and disable script to a GitHub repo and adding that repo to microk8s, but upon doing that I'm getting this

enable hook for litmus addon needs execute permissions
Removing /var/snap/microk8s/common/addons/litmus
An error occurred when trying to execute 'sudo microk8s.addons repo add litmus https://github.com/S-ayanide/microk8s-community-addons.git' with 'multipass': returned exit code 1.

What Should Happen Instead?

It should let me try local addons which have execute permissions. Or there should be an alternative to swapping /var/snap approach for darwin systems.

Reproduction Steps

To reproduce the above, try the following on a darwin system.

  1. Install microk8s and enable multipass
  2. Try adding your repository with a new addon where an enable script is added microk8s addons repo add <REPO_NAME> <REPO_URL>

Are you interested in contributing with a fix?

No

@S-ayanide S-ayanide changed the title Unable to test addons on MacOS Unable to test custom added addons on MacOS May 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant