CRUDKubernetesDependentResource not updating the dependent CustomResource when a property is deleted from the spec #1729
Unanswered
prateekkohli21
asked this question in
Q&A
Replies: 1 comment 9 replies
-
Hi @prateekkohli21 are you able to upgrade to the newest version? |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Version - 4.0.0
I am using CRUDKubernetesDependentResource to update dependent CustomResource, it works well when any field is added or updated in the primary resource, but when I try to delete a property from a primary resource spec, dependent CustomResource is not getting updated.
Desired state for the dependent CustomResource is also changing, but it is not getting reflected in the backend.
For eg: Below is our primary resource
kind: CustomResourceKafka
spec:
kafka:
replicas: 3
config:
min.insync.replicas: 2
default.replication.factor: 3
So, when I try to change any value in the config property of primary resource, its reflecting in the dependent resource,
but when I try to remove the config section completely, my dependent resource is not getting updated.
Even when we remove any 1 of the property from config section, then also dependent resource is not getting updated, but the desired state is changing.
So, whenever we remove any properties, it's not getting reflected, but adding & updating is working fine.
Beta Was this translation helpful? Give feedback.
All reactions