Add E2E tests

What it does

New workload cluster type

The workload cluster type "workload-preview" is supported (as in the SylvaUnitsRelease operator)

The SylvaWorkloadCluster operator is checking a dedicated annotation (instead of modifying the operator CRD) to deploy a workload-preview instead of usual workload cluster

This new type is enabling one to test workload cluster deployment without actually a new k8s cluster since Kustomizations, sources or HelmReleases are suspended

E2E Tests

Add E2E Tests to deploy workload clusters

  • Bootstrap a kind cluster
  • Install SylvaUnitsRelease operator, Flux and ESO
  • Run tests
  • Clean the kind cluster

CRD ValuesFrom modification

Since the present operator inherits ther SUR valuesFrom definition, the valuesFrom are described as supporting OCI and Git repo type. This not yet true, to be quickly fixed

Versions

  • Bump sylvactl to 0.9.3 and SylvaUnitsRelease to 0.4.2
  • Bump the go to 1.25 version following updates of sylvactl & SUR

It would close several current renovate MRs

Tests

CI Tests

  • Create a SylvaUnitsRelease Template and a managed setting configmap to emulate what would have been created by a management cluster
  • Create an external secret which will be used as a valuesFrom
  • Deploy a workload cluster of which the type is workload-preview
  • Ensure the HelmRelease is deployed

Rocket local deployment

  • worklad-team-defs: 0.4.0
  • SylvaUnitsRelease : v0.4.2
Edited by vladimir braquet

Merge request reports

Loading