You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a kubernetes app containing a configmap where we collect all kinds of configuration information from outside the cluster (e.g. aks-resourcegroup or node-resource-group).
We now would like to use one of the keys (nfs_host) for postBuild.substituteFrom in a kustomization.
The kustomization complains about the keys not being well-formed but doesn't subsitute the well-formed variable.
when trying to reconcile the kustomization files with error messages like
post build failed for 'data-backup': envsubst error: 'resource-group' var name is invalid, must match '^[_[:alpha:]][_[:alpha:][:digit:]]*$'
or
post build failed for 'data-backup': envsubst error: 'aks-resource-group' var name is invalid, must match '^[_[:alpha:]][_[:alpha:][:digit:]]*$'
data-backup is another persistentvolume in the same resource which does not even contain variable references
Expected behavior
I would expect that non-referenced keys from the configmap are simply ignored.
That error should only occur if invalid variable references are embedded in the resource
Describe the bug
We have a kubernetes app containing a configmap where we collect all kinds of configuration information from outside the cluster (e.g. aks-resourcegroup or node-resource-group).
We now would like to use one of the keys (nfs_host) for postBuild.substituteFrom in a kustomization.
The kustomization complains about the keys not being well-formed but doesn't subsitute the well-formed variable.
Steps to reproduce
Have a configmap in namespace flux-system
Have a kustomization in the same namespace:
In path ./infrastructure/dev/storage have resource using variable nfs_host
when trying to reconcile the kustomization files with error messages like
or
data-backup
is another persistentvolume in the same resource which does not even contain variable referencesExpected behavior
I would expect that non-referenced keys from the configmap are simply ignored.
That error should only occur if invalid variable references are embedded in the resource
Screenshots and recordings
No response
OS / Distro
Ubuntu-Linux 22.04
Flux version
v2.3.0
Flux check
► checking prerequisites
✗ flux 2.2.2 <2.3.0 (new CLI version is available, please upgrade)
✔ Kubernetes 1.29.2 >=1.26.0-0
► checking version in cluster
✔ distribution: flux-v2.3.0
✔ bootstrapped: false
► checking controllers
✔ helm-controller: deployment ready
► ghcr.io/fluxcd/helm-controller:v1.0.1
✔ image-automation-controller: deployment ready
► ghcr.io/fluxcd/image-automation-controller:v0.38.0
✔ image-reflector-controller: deployment ready
► ghcr.io/fluxcd/image-reflector-controller:v0.32.0
✔ kustomize-controller: deployment ready
► ghcr.io/fluxcd/kustomize-controller:v1.3.0
✔ notification-controller: deployment ready
► ghcr.io/fluxcd/notification-controller:v1.3.0
✔ source-controller: deployment ready
► ghcr.io/fluxcd/source-controller:v1.3.0
► checking crds
✔ alerts.notification.toolkit.fluxcd.io/v1beta3
✔ buckets.source.toolkit.fluxcd.io/v1beta2
✔ gitrepositories.source.toolkit.fluxcd.io/v1
✔ helmcharts.source.toolkit.fluxcd.io/v1
✔ helmreleases.helm.toolkit.fluxcd.io/v2
✔ helmrepositories.source.toolkit.fluxcd.io/v1
✔ imagepolicies.image.toolkit.fluxcd.io/v1beta2
✔ imagerepositories.image.toolkit.fluxcd.io/v1beta2
✔ imageupdateautomations.image.toolkit.fluxcd.io/v1beta2
✔ kustomizations.kustomize.toolkit.fluxcd.io/v1
✔ ocirepositories.source.toolkit.fluxcd.io/v1beta2
✔ providers.notification.toolkit.fluxcd.io/v1beta3
✔ receivers.notification.toolkit.fluxcd.io/v1
✔ all checks passed
Git provider
No response
Container Registry provider
No response
Additional context
The cluster we're testing with is a 2 node kind cluster running on Ubuntu-22.04
Code of Conduct
The text was updated successfully, but these errors were encountered: