operator-framework/helm-operator-plugins

Hybrid is missing config for cert-manager and webhooks

camilamacedo86 opened this issue · 4 comments

Description

If we check in the config/default/kustomization.yaml, Hybrid provides the cert-manager and webhooks config but it is missing the specific directories.

Propose Solution

a) Add missing scaffolds

If we should support both then we need to ensure the scaffolds in the init, also we would need to add the flags and implement the create api subcommand. See:

The default scaffolds are:

OR

b) Remove options from config/default/kustomization.yaml (such as we do for helm)

We need to change the kustomize manifest to replace these points such as we do for the helm, see: https://github.com/operator-framework/operator-sdk/blob/master/testdata/helm/memcached-operator/config/default/kustomization.yaml

I will take a look into it.

@camilamacedo86 - I am able to recreate this and I agree with you. So either we need to add logic for adding these directories webhook and cert-manager with respective files or remove those commented code from scaffolding.

@camilamacedo86 The issue seems to be that for the sake of project to be compatible with Helm api, we are removing those files. But eventually its getting added due to Go. The solution for this would be to entirely remove the Webhooks/Certmanager part from config/default/kustomization.yaml as it is with plain Helm: https://github.com/operator-framework/operator-sdk/blob/master/testdata/helm/memcached-operator/config/default/kustomization.yaml. We would document it explicitly that Hybrid-Helm has not been tested against webhooks and hence there is no scaffolding for that. We will create a new issue to track that feature and test to add it with the right Go API. I would expect this logic to be a part of edit command just for this plugin.

cc: @laxmikantbpandhare

@jmrodri @joelanford any objections?