private void configureDefaultResources(NamespacedOpenShiftClient client, File resourcesDir) { String namespace = client.getNamespace(); KubeResourceApplier.applyIfDifferent(new File(resourcesDir, "brokeredinfraconfigs"), client.customResources(AdminCrd.brokeredInfraConfigs(), BrokeredInfraConfig.class, BrokeredInfraConfigList.class, DoneableBrokeredInfraConfig.class).inNamespace(namespace), BrokeredInfraConfig.class, Comparator.comparing(BrokeredInfraConfig::getVersion)); KubeResourceApplier.applyIfDifferent(new File(resourcesDir, "standardinfraconfigs"), client.customResources(AdminCrd.standardInfraConfigs(), StandardInfraConfig.class, StandardInfraConfigList.class, DoneableStandardInfraConfig.class).inNamespace(namespace), StandardInfraConfig.class, Comparator.comparing(StandardInfraConfig::getVersion)); KubeResourceApplier.createIfNoneExists(new File(resourcesDir, "addressplans"), client.customResources(AdminCrd.addressPlans(), AddressPlan.class, AddressPlanList.class, DoneableAddressPlan.class).inNamespace(namespace), AddressPlan.class); KubeResourceApplier.createIfNoneExists(new File(resourcesDir, "addressspaceplans"), client.customResources(AdminCrd.addressSpacePlans(), AddressSpacePlan.class, AddressSpacePlanList.class, DoneableAddressSpacePlan.class).inNamespace(namespace), AddressSpacePlan.class); }