Files
cozystack/packages/apps
Ivan Okhotnikov 5bf7219f73 test(apps/kubernetes): helm-unittest cases for OIDC modes
Cover the three branches of the new selector API:

  - `mode: None` (default) — every OIDC template is empty, the
    KamajiControlPlane has no extra args and the standard two talos
    volumes, the bootstrap Job is not rendered.
  - `mode: System` — per-cluster `KeycloakClient` + audience scope
    in the `cozy` realm, namespace-prefixed clientId, PKCE attribute
    on the client, soft-render when the EDP Keycloak operator CRDs
    are absent, the AuthenticationConfiguration Secret pinned to the
    cozy issuer, the chart-owned `--authentication-config` flag and
    `cozy-oidc-authn-config` mount injected into the KCP, the
    bootstrap Job carrying `policy.cozystack.io/allow-to-apiserver`,
    and one ClusterRoleBinding per `users[]` entry with the right
    ClusterRole (`cluster-admin` vs `view`).
  - `mode: CustomConfig` — inline config written verbatim; secretRef
    path mounted on the KCP without a chart-owned Secret; no
    Keycloak objects emitted; mutual-exclusion and missing-source
    guards both hard-fail.

Signed-off-by: Ivan Okhotnikov <ivan.okhotnikov@aenix.io>
2026-07-06 09:25:07 +03:00
..
2026-06-22 10:55:37 +00:00
2026-06-25 14:33:28 +03:00
2026-03-25 15:59:22 +05:00
2025-08-07 14:07:05 +03:00

How to test packages local

cd packages/core/installer
make image-cozystack REGISTRY=YOUR_CUSTOM_REGISTRY
make apply
kubectl delete po -l app=source-controller -n cozy-fluxcd