Skip to content

Helm upgrade always fails due to the VolumeName value being changed #52

@ocofaigh

Description

@ocofaigh

Initial deploy sets VolumeName to "pvc-0c01d463-1ac9-4764-bb5e-25461e8574cc", but out helm upgrade is trying to set it to "". See error below on helm upgrade attempt:

 2025/07/01 20:38:52 Terraform apply | Error: failed to replace object: PersistentVolumeClaim "cloud-pak-deployer-status" is invalid: spec: Forbidden: spec is immutable after creation except resources.requests and volumeAttributesClassName for bound claims
 2025/07/01 20:38:52 Terraform apply |   core.PersistentVolumeClaimSpec{
 2025/07/01 20:38:52 Terraform apply |   	AccessModes:      {"ReadWriteOnce"},
 2025/07/01 20:38:52 Terraform apply |   	Selector:         nil,
 2025/07/01 20:38:52 Terraform apply |   	Resources:        {Requests: {s"storage": {i: {...}, s: "10Gi", Format: "BinarySI"}}},
 2025/07/01 20:38:52 Terraform apply | - 	VolumeName:       "pvc-0c01d463-1ac9-4764-bb5e-25461e8574cc",
 2025/07/01 20:38:52 Terraform apply | + 	VolumeName:       "",
 2025/07/01 20:38:52 Terraform apply |   	StorageClassName: &"ibmc-vpc-block-10iops-tier",
 2025/07/01 20:38:52 Terraform apply |   	VolumeMode:       &"Filesystem",
 2025/07/01 20:38:52 Terraform apply |   	... // 3 identical fields
 2025/07/01 20:38:52 Terraform apply |   }

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions