Skip to content

Splunk Operator: helm chart is not ready to be used in terraform #1462

@yaroslav-nakonechnikov

Description

@yaroslav-nakonechnikov

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

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions