outposts: ensure field_manager is also used for updates
This commit is contained in:
parent
bc9e7e8b93
commit
85c2db018e
|
@ -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,
|
||||
)
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
|
|
Reference in New Issue