Skip to content

Commit 76b1700

Browse files
committed
Remove unused method
1 parent 11cde2e commit 76b1700

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/utils/bluegreen/BlueGreenUtils.java

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -59,27 +59,6 @@ public class BlueGreenUtils {
5959

6060
// ==================== Spec Operations ====================
6161

62-
/**
63-
* Adjusts name references in a spec by replacing deployment names with child deployment names.
64-
*
65-
* @param spec the spec to adjust
66-
* @param deploymentName the original deployment name
67-
* @param childDeploymentName the child deployment name to replace with
68-
* @param wrapperKey the JSON wrapper key
69-
* @param valueType the spec type
70-
* @return adjusted spec with name references updated
71-
*/
72-
public static <T> T adjustNameReferences(
73-
T spec,
74-
String deploymentName,
75-
String childDeploymentName,
76-
String wrapperKey,
77-
Class<T> valueType) {
78-
String serializedSpec = SpecUtils.writeSpecAsJSON(spec, wrapperKey);
79-
String replacedSerializedSpec = serializedSpec.replace(deploymentName, childDeploymentName);
80-
return SpecUtils.readSpecFromJSON(replacedSerializedSpec, wrapperKey, valueType);
81-
}
82-
8362
/**
8463
* Checks if the Blue/Green deployment spec has changed compared to the last reconciled spec.
8564
*

0 commit comments

Comments
 (0)