hashicorp / terraform-provider-kubernetes-alpha

A Terraform provider for Kubernetes that uses dynamic resource types and server-side apply. Supports all Kubernetes resources.
https://registry.terraform.io/providers/hashicorp/kubernetes-alpha/latest
Mozilla Public License 2.0
491 stars 63 forks source link

Implement Field Management #208

Open EronWright opened 3 years ago

EronWright commented 3 years ago

Description

Terraform should consider the managedFields annotation of a given Kubernetes object, e.g. when computing changes. Only those fields that are managed by terraform should be considered. In other words, the provider should not assume exclusive control over the object. Other managers should be able to set annotations and other unrelated fields.

Note: @alexsomesan mentioned that full support is being worked on: https://github.com/hashicorp/terraform-provider-kubernetes-alpha/issues/134#issuecomment-802759361 but I don't see a tracking issue.

References

Community Note

alexsomesan commented 3 years ago

Thanks for documenting this, @EronWright. I was convinced we already have a tracking issue for this.

This has always been on our radar and is the next major feature we plan to add to this provider. I am already in contact with engineers in sig-api-machinery to make sure we get field management support.

mmingdai commented 3 years ago

Hi @alexsomesan , I run into the same issue. Is someone still working on this?