order matters ;-)
@@ -75,17 +75,17 @@ public class RuntimeEnvironment {
if (isCloudUnlockedInCTFMode()) {
return true;
}
- if (isK8sUnlockedInCTFMode()) {
- return challenge.supportedRuntimeEnvironments().contains(runtimeEnvironment)
- || challenge.supportedRuntimeEnvironments().contains(DOCKER)
- || challenge.supportedRuntimeEnvironments().contains(K8S);
- }
if (isVaultUnlockedInCTFMode()) {
return challenge.supportedRuntimeEnvironments().contains(runtimeEnvironment)
|| challenge.supportedRuntimeEnvironments().contains(DOCKER)
|| challenge.supportedRuntimeEnvironments().contains(K8S)
|| challenge.supportedRuntimeEnvironments().contains(VAULT);
}
+ if (isK8sUnlockedInCTFMode()) {
+ return challenge.supportedRuntimeEnvironments().contains(runtimeEnvironment)
+ || challenge.supportedRuntimeEnvironments().contains(DOCKER)
+ || challenge.supportedRuntimeEnvironments().contains(K8S);
+ }
return challenge.supportedRuntimeEnvironments().contains(runtimeEnvironment)
|| !Collections.disjoint(envToOverlappingEnvs.get(runtimeEnvironment), challenge.supportedRuntimeEnvironments());
}
