We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7003fc7 commit 4cf2db1Copy full SHA for 4cf2db1
operator/src/main/java/oracle/kubernetes/operator/Namespaces.java
@@ -256,7 +256,7 @@ public static SelectionStrategy fromValue(String value) {
256
*/
257
static SelectionStrategy getSelectionStrategy() {
258
return Optional.ofNullable(HelmAccess.getHelmVariable(SELECTION_STRATEGY_KEY))
259
- .or(() -> Optional.ofNullable(TuningParameters.getInstance().get(SELECTION_STRATEGY_KEY)))
+ .or(() -> Optional.ofNullable(TuningParameters.getInstance()).map(i -> i.get(SELECTION_STRATEGY_KEY)))
260
.map(SelectionStrategy::fromValue)
261
.orElse(SelectionStrategy.LABEL_SELECTOR);
262
}
0 commit comments