k8ssandra-operator: v0.38.4: Error: services "k8ssandra-operator-webhook-service" already exists when deploying with helm

I am having a problem with the webhook service. It gets deployed by helm, but there is a collision with a webhook downstream from the chart. I can confirm that rolling back to 0.38.2 solves the issue.

I am using the following terraform:

resource "helm_release" "k8ssandra-operator" {
  name = "k8ssandra-operator"
  namespace = "syndb-k8ssandra"

  repository = "https://helm.k8ssandra.io/stable"
  chart = "k8ssandra-operator"

  set {
    name = "global.clusterScoped"
    value = true
  }
}

You can also reproduce through helm (provided 0.38.4 is latest):

helm install k8ssandra-operator k8ssandra/k8ssandra-operator -n k8ssandra-operator --create-namespace 

The error raised by terraform:

module.k8ssandra.helm_release.k8ssandra-operator: Creating...
╷
│ Warning: Helm release "k8ssandra-operator" was created but has a failed status. Use the `helm` command to investigate the error, correct it, then run Terraform again.
│ 
│   with module.k8ssandra.helm_release.k8ssandra-operator,
│   on modules/k8ssandra/resource.tf line 5, in resource "helm_release" "k8ssandra-operator":
│    5: resource "helm_release" "k8ssandra-operator" {
│ 
╵
╷
│ Error: services "k8ssandra-operator-webhook-service" already exists
│ 
│   with module.k8ssandra.helm_release.k8ssandra-operator,
│   on modules/k8ssandra/resource.tf line 5, in resource "helm_release" "k8ssandra-operator":
│    5: resource "helm_release" "k8ssandra-operator" {

helm -n syndb-k8ssandra list:

NAME                    NAMESPACE       REVISION        UPDATED                                 STATUS  CHART                           APP VERSION
k8ssandra-operator      syndb-k8ssandra 1               2022-11-16 09:21:10.457506861 +0100 CET failed  k8ssandra-operator-0.38.4       1.3.0

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (7 by maintainers)

Most upvoted comments

No need to do --set-name, just use: helm install k8ssandra k8ssandra/k8ssandra-operator -n .., the second parameter is the used name.