Dennis-Mircea commented on code in PR #1197:
URL:
https://github.com/apache/flink-kubernetes-operator/pull/1197#discussion_r4709002067
##########
flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/controller/bluegreen/BlueGreenKubernetesService.java:
##########
@@ -92,7 +96,7 @@ public static void
replaceFlinkBlueGreenDeployment(BlueGreenContext context) {
.getClient()
.resource(context.getBgDeployment())
.inNamespace(namespace)
- .replace();
+ .update();
Review Comment:
Yes, that's fine, and it is actually a better mechanism than `replace()`,
because it is a forced update with retries, silently overwriting on
retry/conflict. With an update in place, the conflict is brought to the surface
because the concurrent overwrite cannot come from the operator itself, only
from a user, and that kind of conflict should be exposed rather than hidden.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]