canonical / microk8s-community-addons

The add-ons shipped with MicroK8s
Apache License 2.0
65 stars 69 forks source link

Add CloudNativePG addon #207

Closed sxd closed 9 months ago

sxd commented 10 months ago

Thank you for making MicroK8s better

Please reference the issue this PR is fixing, or provide a description of the problem addressed.

Also verify you have:

ktsakalozos commented 10 months ago

Thank you for this PR @sxd . We would like to have at least on integration test, see https://github.com/canonical/microk8s-community-addons/tree/main/tests and you also need to update https://github.com/canonical/microk8s-community-addons/blob/main/addons.yaml

sxd commented 10 months ago

hi! @ktsakalozos

I've tried to run the test locally, but it can't find the repo, is that normal? should I run it from this pipeline or there's a way to run it locally?

Regards!

ktsakalozos commented 9 months ago

I've tried to run the test locally, but it can't find the repo, is that normal? should I run it from this pipeline or there's a way to run it locally?

You can add the addons repository with microk8s addons repo add <repo> --reference <branch> then you should be able to run the tests locally.

sxd commented 9 months ago

Hi @ktsakalozos

Any idea why it can't find the operator in the test? I test it locally and it works

Regards!

ktsakalozos commented 9 months ago

We are all set @sxd . The tests were not passing because the operator does not work on strict confinement.

ktsakalozos commented 9 months ago

The addon will be available with the 1.29 release!

sxd commented 9 months ago

@ktsakalozos can you point me to the doc about what it's an "strict confinement" ? we may want to make it work

ktsakalozos commented 9 months ago

@sxd try installing MicroK8s without the --classic and see if you get apparmor denials when you start the operator. Have a look at https://snapcraft.io/docs/debug-snaps on how you can debug a strictly confined snap.