class ClusterCreationEnvironmentValidator {

    public boolean hasFreeIpaKerberosConfig(Stack stack) {
        return kerberosConfigService.get(stack.getEnvironmentCrn(), stack.getName())
                .map(kc -> KerberosType.FREEIPA == kc.getType())
                .orElse(Boolean.FALSE);
    }

}