-
-
Notifications
You must be signed in to change notification settings - Fork 125
Description
Spegel version
from 0.3.0 to 0.4.0
Kubernetes distribution
EKS
Kubernetes version
v1.34.1-eks-113cf36
CNI
Amazon CNI
Describe the bug
We use the Helm chart to install Spegel on our clusters. The Helm chart is managed by Terraform using the helm_release resource.
The procedure to upgrade from version 0.3.0 to version 0.4.0 fails because of the following error:
│ Error: Error upgrading chart
│
│ with module.eks.helm_release.spegel,
│ on modules/eks/spegel.tf line 1, in resource "helm_release" "spegel":
│ 1: resource "helm_release" "spegel" {
│
│ Upgrade failed: failed to replace object: DaemonSet.apps
│ "spegel" is invalid: spec.selector: Invalid value:
│ {"matchLabels":{"app.kubernetes.io/component":"spegel","app.kubernetes.io/instance":"spegel","app.kubernetes.io/name":"spegel"}}:
│ field is immutable
I think the commit that introduced the error is: 8c5f7f4
The code to install the chart is:
resource "helm_release" "spegel" {
name = "spegel"
namespace = "spegel"
repository = "oci://ghcr.io/spegel-org/helm-charts"
chart = "spegel"
version = "0.4.0"
max_history = 3
timeout = 1800
create_namespace = true
values = [local.spegel_values]
}These are the values applied:
service:
registry:
nodeIp: 127.0.0.1
spegel:
mirrorResolveTimeout: 10sI already tried to use a couple of utilities offered by the Helm provider (doc):
force = true. (Boolean) Force resource update through delete/recreate if needed. Defaults to false.
replace = true. Re-use the given name, even if that name is already used. This is unsafe in production. Defaults to false.
Thank you for your help and for this fantastic tool!