strimzi / drain-cleaner

Utility to help with draining nodes running Strimzi-managed Apache Kafka® or ZooKeeper® pods
Apache License 2.0
50 stars 29 forks source link

Unable to install drain-cleaner chart clusterrole exists already #84

Closed jlcrow closed 1 year ago

jlcrow commented 1 year ago

NAME CHART VERSION APP VERSION DESCRIPTION
strimzi/strimzi-drain-cleaner 0.4.2 0.4.2 Utility which helps with moving the Apache Kafk...

Kubernetes version v1.25.5

I already have the strimzi-operator running, when I attempt to helm install the drain-cleaner it fails with an error saying the ClusterRole exists and cannot be imported, because it exists from the operator install.

helm upgrade --install strimzi-drain-cleaner strimzi/strimzi-kafka-operator -n strimzi-drain-cleaner --create-namespace

Release "strimzi-drain-cleaner" does not exist. Installing it now. Error: rendered manifests contain a resource that already exists. Unable to continue with install: ClusterRole "strimzi-cluster-operator-namespaced" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key "meta.helm.sh/release-name" must equal "strimzi-drain-cleaner": current value is "kafkastrimzioperator"; annotation validation error: key "meta.helm.sh/release-namespace" must equal "strimzi-drain-cleaner": current value is "kafka-strimzi"