Enabling harbor (or neuvector) unit fails if flux-webui unit is disabled

Summary

When using following values on a management cluster:

---
units:
  harbor:
    enabled: false
  flux-webui:
    enabled: false

preview fails with error:

 ✗ Exiting as condition "reason" equals "InstallFailed" in unit HelmRelease/sylva-units, message: Helm install failed for release sylva-units-preview/sylva-units with chart sylva-units@0.0.0-git+eb365ef6e020.1: execution error at (sylva-units/templates/units.yaml:271:18): unit 'harbor-init' is declared with a dependency on disabled unit 'keycloak-add-client-scope'

Note: same case occurs with neuvector unit

Steps to reproduce

Just try to bootstrap/apply previous values in a management cluster

What is the expected correct behavior?

We should be able to activate harbor or neuvector without flux-webui

Relevant logs and/or screenshots

Possible fixes

Probably enabled_conditions from keycloak-add-client-scope should be reviewed

Assignee Loading
Time tracking Loading