Skip to content

BUG: reloaders error while setting "reloader: true" in clusterProfile #1715

@Frusoz

Description

@Frusoz

Problem Description

I was trying to deploy this clusterProfile:

apiVersion: config.projectsveltos.io/v1beta1
kind: ClusterProfile
metadata:
  name: cluster-management-mgmt-profile
  namespace: projectsveltos
spec:
  clusterSelector:
    matchLabels:
      environment: mgmt
  syncMode: ContinuousWithDriftDetection
  reloader: true
  stopMatchingBehavior: WithdrawPolicies

  helmCharts:

    - repositoryURL: https://kubernetes-sigs.github.io/cluster-api-operator
      repositoryName: cluster-api
      chartName: cluster-api/cluster-api-operator
      chartVersion: 0.26.0
      releaseName: cluster-api-operator
      releaseNamespace: capi-operator-system
      helmChartAction: Install
      options:
        #waitForJobs: true
        wait: true
        #atomic: true
        #upgradeOptions:
        #  cleanupOnFail: true
      values: |-
        infrastructure:
          vsphere:
            namespace: capv-system
            configSecret: 
              name: vsphere-credentials-dev
        bootstrap:
          talos:
            namespace: cabpt-system
        controlPlane:
          talos:
            namespace: cabpt-system
            createNamespace: false
        ipam: 
          in-cluster:
            namespace: capi-ipam-system

Sveltos was trying to deploy CAPi unsuccessfully ending up in an infinite loop of "pending-upgrade" and "deployed" status.

Cert-manager was successfully deployed in the mgmt cluster by another clusterProfile.

I fixed setting the "reloader: false"

System Information

CLUSTERAPI VERSION: Not yet present, deploy was going on in the mgmt cluster
SVELTOS VERSION: 1.8.0
KUBERNETES VERSION: 1.35.0

Logs

2026-04-14T18:34:02.877984493Z E0414 18:34:02.877696 1 handlers_helm.go:190] "failed to deploy helmCharts" err="Reloader.lib.projectsveltos.io \"cluster-management-mgmt-profile--helm\" is invalid: [spec.reloaderInfo[0].namespace: Invalid value: \"\": spec.reloaderInfo[0].namespace in body should be at least 1 chars long, spec.reloaderInfo[1].namespace: Invalid value: \"\": spec.reloaderInfo[1].namespace in body should be at least 1 chars long]" logger="deployer" worker="4" key="mgmt:::mgmt:::Sveltos:::cluster-management-mgmt-profile-sveltos-mgmt:::Helm:::false" cluster="mgmt/mgmt" clusterSummary="cluster-management-mgmt-profile-sveltos-mgmt"

Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions