Skip to content

Commit d95d352

Browse files
committed
wip
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
1 parent d0a996a commit d95d352

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

sample-operators/metrics-processing/src/main/java/io/javaoperatorsdk/operator/sample/metrics/MetricsHandlingSampleOperator.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,6 @@ public class MetricsHandlingSampleOperator {
5555

5656
private static final Logger log = LoggerFactory.getLogger(MetricsHandlingSampleOperator.class);
5757

58-
public static boolean isLocal() {
59-
String deployment = System.getProperty("test.deployment");
60-
boolean remote = (deployment != null && deployment.equals("remote"));
61-
log.info("Running the operator {} ", remote ? "remotely" : "locally");
62-
return !remote;
63-
}
64-
6558
/**
6659
* Based on env variables a different flavor of Reconciler is used, showcasing how the same logic
6760
* can be implemented using the low level and higher level APIs.
@@ -164,4 +157,12 @@ private static Map<String, String> loadConfigFromYaml() {
164157
}
165158
return configMap;
166159
}
160+
161+
// only for testing purposes
162+
public static boolean isLocal() {
163+
String deployment = System.getProperty("test.deployment");
164+
boolean remote = (deployment != null && deployment.equals("remote"));
165+
log.info("Running the operator {} ", remote ? "remotely" : "locally");
166+
return !remote;
167+
}
167168
}

0 commit comments

Comments
 (0)