eclipse-symphony / symphony

Symphony project
MIT License
34 stars 26 forks source link

Kubectl provider doesn't detect drift in the created resources #136

Open eedorenko opened 6 months ago

eedorenko commented 6 months ago

Kubectl provider doesn't detect and doesn't revert a drift in the created resources. For example, If we create a resource (e.g. job, stateful set, pvc, etc.) and then update it directly on the cluster, Symphony doesn't revert it back. However, if we delete the recourse, it will detect it and recreate it.

Haishi2016 commented 6 months ago

This is a tricky issue to handle, because Symphony in this case treats the k8s artifacts as black boxes. We may extend the K8s provider so that some of the artifact attributes are surfaced up in the validation rules, but the current validation rule syntax doesn't allow very elaborated expressions.