diff --git a/oper8/deploy_manager/openshift_deploy_manager.py b/oper8/deploy_manager/openshift_deploy_manager.py index ac886d7..7592939 100644 --- a/oper8/deploy_manager/openshift_deploy_manager.py +++ b/oper8/deploy_manager/openshift_deploy_manager.py @@ -920,8 +920,10 @@ def _apply(self, resource_definition, method: DeployMethod): # If the resource requires a replace operation then use put. Otherwise use # server side apply if ( - req_replace or method is DeployMethod.REPLACE - ) and method != DeployMethod.UPDATE: + (req_replace or method is DeployMethod.REPLACE) + and method != DeployMethod.UPDATE + and current != {} + ): apply_res = self._replace_resource( resource_definition, )