outposts: ensure field_manager is also used for updates

This commit is contained in:
Jens Langhammer 2021-01-02 00:52:42 +01:00
parent bc9e7e8b93
commit 85c2db018e
4 changed files with 16 additions and 4 deletions

View File

@ -140,5 +140,8 @@ class DeploymentReconciler(KubernetesObjectReconciler[V1Deployment]):
def update(self, current: V1Deployment, reference: V1Deployment):
return self.api.patch_namespaced_deployment(
current.metadata.name, self.namespace, reference
current.metadata.name,
self.namespace,
reference,
field_manager=FIELD_MANAGER,
)

View File

@ -67,5 +67,8 @@ class SecretReconciler(KubernetesObjectReconciler[V1Secret]):
def update(self, current: V1Secret, reference: V1Secret):
return self.api.patch_namespaced_secret(
current.metadata.name, self.namespace, reference
current.metadata.name,
self.namespace,
reference,
field_manager=FIELD_MANAGER,
)

View File

@ -67,5 +67,8 @@ class ServiceReconciler(KubernetesObjectReconciler[V1Service]):
def update(self, current: V1Service, reference: V1Service):
return self.api.patch_namespaced_service(
current.metadata.name, self.namespace, reference
current.metadata.name,
self.namespace,
reference,
field_manager=FIELD_MANAGER,
)

View File

@ -142,5 +142,8 @@ class IngressReconciler(KubernetesObjectReconciler[NetworkingV1beta1Ingress]):
self, current: NetworkingV1beta1Ingress, reference: NetworkingV1beta1Ingress
):
return self.api.patch_namespaced_ingress(
current.metadata.name, self.namespace, reference
current.metadata.name,
self.namespace,
reference,
field_manager=FIELD_MANAGER,
)