-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Closed
Labels
bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
Description
If a resource exists in the cluster and is to be adopted by helm install --take-ownership, it is left unchanged while helm reports the installation to have succeeded.
Reproduce
-
Helm version v3.17.1+g980d8ac
-
Install any CRD
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: datas.crd.com
spec:
group: crd.com
scope: Namespaced
names:
plural: datas
singular: data
kind: Data
versions:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
x-kubernetes-preserve-unknown-fields: true- Apply a custom resource onto the cluster.
kind: Data
apiVersion: crd.com/v1
metadata:
name: crd-test
namespace: kube-system
labels:
test: adopt
spec:
color: blue
size: largehelm install --take-ownershipa chart that contains a different version of the custom resource.
kind: Data
apiVersion: crd.com/v1
metadata:
name: crd-test
namespace: kube-system
labels:
test: adopt
spec:
weight: heavy- Notice that the custom resource has not changed at all (still at initial state) but helm reported the operation to have succeeded, including the creation of a helm release.
helm install foo ./foo --take-ownership
NAME: foo
LAST DEPLOYED: Wed Mar 5 17:10:16 2025
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
Suggested Solution
Transparently use three-way merge for --take-ownership.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.