Fails to install a chart with a pre-install hook running a job using a configmap · Issue #334 · werf/nelm · GitHub
More Web Proxy on the site http://driver.im/
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
ds-varian
changed the title
Nelm fails to install a chart with a pre-install hook using a configmap
Fails to install a chart with a pre-install hook using a configmap
May 21, 2025
ds-varian
changed the title
Fails to install a chart with a pre-install hook using a configmap
Fails to install a chart with a pre-install hook running a job using a configmap
May 22, 2025
Uh oh!
There was an error while loading. Please reload this page.
Before proceeding
Version
1.4.0
How to reproduce
Trying to migrate from helm to nelm and I have a problem with a helm chart.
The helm chart has a pre-install hook with a job referencing a configmap. The pods of the job fails to start because of missing configmap.
Result
Checking the logs this is what I see
Processing resources
Transforming hook resources
Transforming general resources
Validating resources
Building releasable resources
Building releasable hook resources
Building releasable general resources
Validating releasable resources
Building deployable standalone CRDs
Building deployable hook resources
Building deployable general resources
Validating deployable resources
Building deployable resource infos
Getting resource "ConfigMap/xxx-api-resource-json"
Getting resource "ConfigMap/xxx-client-resource-json"
Getting resource "Job/xxx-client-pre-install"
Getting resource "Job/xxx-pre-install"
Getting resource "ConfigMap/xxx-appsettings-json"
Getting resource "ConfigMap/xxx-extra-envs"
Server-side dry-run applying resource "Job/xxx-pre-install"
Getting resource "ConfigMap/xxx-operator-envs"
Getting resource "ConfigMap/xxx-redis-configuration"
Getting resource "ConfigMap/xxx-redis-health"
Getting resource "ConfigMap/xxx-redis-scripts"
Getting resource "Deployment/xxx"
Getting resource "HorizontalPodAutoscaler/xxx"
Getting resource "IngressRoute/xxx"
Getting resource "Middleware/xxx-forward-auth-jwt"
Getting resource "Middleware/xxx-forward-oauth"
Getting resource "Secret/xxx-bootstrap-client-secret"
Getting resource "Service/xxx-redis-headless"
Getting resource "Service/xxx-redis-master"
Getting resource "Service/xxx-redis-replicas"
Getting resource "Service/xxx-service"
Getting resource "ServiceAccount/xxx-redis"
Getting resource "StatefulSet/xxx-redis-master"
Getting resource "StatefulSet/xxx-redis-replicas"
Validating adoptable resources
Constructing new release
Constructing new deploy plan
Setting up init operations
Setting up standalone CRDs operations
Setting up pre hook resources operations
Setting up general resources operations
Setting up post hook resources operations
Setting up prev release general resources operations
Setting up finalization operations
Connecting stages
Connecting internal dependencies
Optimizing plan
Starting tracking
Executing release install plan
Create resource: ConfigMap/xxx-api-resource-json
Server-side applying resource "ConfigMap/xxx-api-resource-json"
Delete resource: ConfigMap/xxx-api-resource-json
Deleting resource "ConfigMap/xxx-api-resource-json"
Recreate resource: Job/xxx-pre-install
Deleting resource "Job/xxx-pre-install"
┌ Progress status
│ RESOURCE (→READY) STATE INFO
│ ConfigMap/xxx-api-resource-json READY
│ ConfigMap/xxx-appsettings-json WAITING
│ ConfigMap/xxx-client-resource-json WAITING
│ ConfigMap/xxx-extra-envs WAITING
│ ConfigMap/xxx-operator-envs WAITING
│ ConfigMap/xxx-redis-configuration WAITING
│ ConfigMap/xxx-redis-health WAITING
│ ConfigMap/xxx-redis-scripts WAITING
│ Deployment/xxx WAITING
│ HorizontalPodAutoscaler/xxx WAITING
│ IngressRoute/xxx WAITING
│ Job/xxx-client-pre-install WAITING
│ Job/xxx-pre-install WAITING
│ Middleware/xxx-forward-auth-jwt WAITING
│ Middleware/xxx-forward-oauth WAITING
│ Secret/xxx-bootstrap-client-secret WAITING
│ Service/xxx-redis-headless WAITING
│ Service/xxx-redis-master WAITING
│ Service/xxx-redis-replicas WAITING
│ Service/xxx-service WAITING
│ ServiceAccount/xxx-redis WAITING
│ StatefulSet/xxx-redis-master WAITING
│ StatefulSet/xxx-redis-replicas WAITING
│
│ RESOURCE (→ABSENT) STATE INFO
│ ConfigMap/xxx-api-resource-json ABSENT
│ ConfigMap/xxx-client-resource-json WAITING
│ Job/xxx-client-pre-install WAITING
│ Job/xxx-pre-install WAITING
│ Job/xxx-pre-install WAITING
└ Progress status
Server-side applying resource "Job/xxx-pre-install"
┌ Progress status
│ RESOURCE (→READY) STATE INFO
│ Job/xxx-pre-install WAITING Ready:0/1
│ • Pod/xxx-pre-install-ht7sk UNKNOWN Status:Init:0/1
│ ConfigMap/xxx-appsettings-json WAITING
│ ConfigMap/xxx-client-resource-json WAITING
│ ConfigMap/xxx-extra-envs WAITING
│ ConfigMap/xxx-operator-envs WAITING
│ ConfigMap/xxx-redis-configuration WAITING
│ ConfigMap/xxx-redis-health WAITING
│ ConfigMap/xxx-redis-scripts WAITING
│ Deployment/xxx WAITING
│ HorizontalPodAutoscaler/xxx WAITING
│ IngressRoute/xxx WAITING
│ Job/xxx-client-pre-install WAITING
│ Middleware/xxx-forward-auth-jwt WAITING
│ Middleware/xxx-forward-oauth WAITING
│ Secret/xxx-bootstrap-client-secret WAITING
│ Service/xxx-redis-headless WAITING
│ Service/xxx-redis-master WAITING
│ Service/xxx-redis-replicas WAITING
│ Service/xxx-service WAITING
│ ServiceAccount/xxx-redis WAITING
│ StatefulSet/xxx-redis-master WAITING
│ StatefulSet/xxx-redis-replicas WAITING
│
│ RESOURCE (→ABSENT) STATE INFO
│ ConfigMap/xxx-client-resource-json WAITING
│ Job/xxx-client-pre-install WAITING
│ Job/xxx-pre-install ABSENT
│ Job/xxx-pre-install WAITING
└ Progress status
The pod fails to start because ConfigMap does not exist xxx-api-resource-json
While waiting, I double-checked the cluster and the ConfigMap doesn't exist.
Expected result
Same configuration works fine via helm and this is the expectation also with nelm
Additional information
No response
The text was updated successfully, but these errors were encountered: