kubeblocks icon indicating copy to clipboard operation
kubeblocks copied to clipboard

[Features] should have dependency between addons, enable an addon will automatically install all addons that it depends

Open weicao opened this issue 2 years ago • 0 comments

What is the user interaction of your feature Is your feature request related to a problem? Please describe.

When I try to enable neon, the error log of the pod shows

Defaulted container "helm" out of: helm, copy-charts (init)
Release "kb-addon-neon" does not exist. Installing it now.
Error: unable to build kubernetes objects from release manifest: [resource mapping not found for name: "neonvm-serving-cert" namespace: "neonvm-system" from "": no matches for kind "Certificate" in version "cert-manager.io/v1"
ensure CRDs are installed first, resource mapping not found for name: "neonvm-selfsigned-issuer" namespace: "neonvm-system" from "": no matches for kind "Issuer" in version "cert-manager.io/v1"
ensure CRDs are installed first

which means I should enable the addon cert-manager first.

If this is a new feature, please describe the motivation and goals. Describe the solution you'd like I think the neon addon yaml should describe itself as it depends on cert-manager, and when I install it, cert-manager should be installed before the installation actions of the neon addon automatically.

weicao avatar Nov 06 '23 02:11 weicao