feat: support preserve and namespace_config on EKS add-ons @johncblandii (#262)
## what- Expose the
preserveargument on theaddonsvariable, plumbed through to theaws_eks_addonresource. - Expose the add-on
namespace(via the resource'snamespace_configblock) on theaddonsvariable. - Both fields are optional and default to
null, so behavior is unchanged for existing callers.
why
- When an add-on is removed from Terraform management (for example when handing CoreDNS, the VPC CNI, or kube-proxy off to EKS Auto Mode), the module previously destroyed it with
preservedefaulting tofalse, tearing down the underlying DaemonSet/Deployment. Settingpreserve = trueleaves the running Kubernetes resources in place so the hand-off is non-disruptive. namespace_configlets add-ons that support a configurable namespace install their resources into a custom namespace, which the module had no way to set.- These were the only remaining configurable arguments of
aws_eks_addonnot surfaced by the module (the per-resourceregionoverride is intentionally left out to avoid drift on a regional cluster).