Skip to content

BUG: kustomization prepareFileSystemWithFluxSource #1562

@aamoyel

Description

@aamoyel

Problem Description

I applied a simple cluster profile and got an error when kustomize prepares filesystem.
Here is my actual ClusterProfile from the cluster:

apiVersion: config.projectsveltos.io/v1beta1
kind: ClusterProfile
metadata:
  annotations:
    config.projectsveltos.io/stagename: dev
  creationTimestamp: "2025-12-18T10:41:25Z"
  finalizers:
  - clusterprofilefinalizer.projectsveltos.io
  generation: 1
  labels:
    config.projectsveltos.io/promotionname: webapp-color
    projectsveltos.io/cluster-name: dev
    projectsveltos.io/cluster-profile-name: webapp-color-dev
    projectsveltos.io/cluster-type: Sveltos
  name: webapp-color-dev
  ownerReferences:
  - apiVersion: config.projectsveltos.io/v1beta1
    kind: ClusterPromotion
    name: webapp-color
    uid: acbec7b9-ad7b-49ec-8782-7817910a7325
  resourceVersion: "330633"
  uid: 444f376b-dd10-4cb0-a0b6-c084a2bedcd0
spec:
  clusterSelector:
    matchLabels:
      env: dev
  continueOnConflict: false
  continueOnError: false
  kustomizationRefs:
  - deploymentType: Remote
    kind: GitRepository
    name: flux-system
    namespace: flux-system
    optional: false
    path: backend/webapp-color/deploy/overlays/dev
    tier: 100
  reloader: false
  stopMatchingBehavior: WithdrawPolicies
  syncMode: Continuous
  tier: 100
status:
  matchingClusters:
  - apiVersion: lib.projectsveltos.io/v1beta1
    kind: SveltosCluster
    name: dev
    namespace: projectsveltos
  updatedClusters: {}
  updatingClusters: {}

I got this error on the dashboard (profile section of the 'dev' cluster), it's also inside the Cluster Summary statuses:
prepareFileSystemWithFluxSource: tmp dir error: mkdirtemp kustomization-refs/heads/main@sha1:2ef6f38e6acbaed61c47acb8ac26e41aecb93dce: pattern contains path separator

System Information

SVELTOS VERSION: v1.3.0
KUBERNETES VERSION: v1.34.3

Logs

Theses are the logs about errors in the addon-controller
E1218 10:55:12.774126 1 clustersummary_controller.go:426] "failed to deploy" err="deploying kustomize resources failed: request is queued" controller="clustersummary" controllerGroup="config.projectsveltos.io" controllerKind="ClusterSummary" ClusterSummary="projectsveltos/webapp-color-dev-sveltos-dev" namespace="projectsveltos" name="webapp-color-dev-sveltos-dev" reconcileID="a9367003-78cb-47fc-bace-fb328b0ab68c"

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