-
Notifications
You must be signed in to change notification settings - Fork 123
Open
Description
Please select the type of request
Bug
Tell us more
Describe the request
if you are using terraform to deploy helm chart to EKS, and using something like:
"splunkOperator.persistentVolumeClaim.storageClassName" = "gp3"
so on next deployment it will fail with:
Error: failed to replace object: PersistentVolumeClaim "splunk-operator-app-download" is invalid: spec: Forbidden: spec is immutable after creation except resources.requests and volumeAttributesClassName for bound claims
No attribute specified when one (and only one) of
core.PersistentVolumeClaimSpec{
AccessModes: {"ReadWriteOnce"},
Selector: nil,
Resources: {Requests: {s"storage": {i: {...}, s: "10Gi", Format: "BinarySI"}}},
- VolumeName: "pvc-1d7b55ee-1939-4788-8347-bec50cedbc32",
+ VolumeName: "",
StorageClassName: &"gp3",
VolumeMode: &"Filesystem",
... // 3 identical fields
}
with helm_release.splunk-operator,
on splunk-operator.tf line 22, in resource "helm_release" "splunk-operator":
22: resource "helm_release" "splunk-operator" {
Expected behavior
It works without issues like this.
Metadata
Metadata
Assignees
Labels
No labels