use of oracle.kubernetes.operator.wlsconfig.WlsRetriever in project weblogic-kubernetes-operator by oracle.
the class RestBackendImpl method getWLSConfiguredClusters.
private Map<String, WlsClusterConfig> getWLSConfiguredClusters(String namespace, String adminServerServiceName, String adminSecretName) {
WlsRetriever wlsConfigRetriever = WlsRetriever.create(namespace, adminServerServiceName, adminSecretName);
WlsDomainConfig wlsDomainConfig = wlsConfigRetriever.readConfig(principal);
return wlsDomainConfig.getClusterConfigs();
}
use of oracle.kubernetes.operator.wlsconfig.WlsRetriever in project weblogic-kubernetes-operator by oracle.
the class RestBackendImpl method getWLSConfiguredClusterSize.
private int getWLSConfiguredClusterSize(String adminServerServiceName, String cluster, String namespace, String adminSecretName) {
WlsRetriever wlsConfigRetriever = WlsRetriever.create(namespace, adminServerServiceName, adminSecretName);
WlsDomainConfig wlsDomainConfig = wlsConfigRetriever.readConfig(principal);
WlsClusterConfig wlsClusterConfig = wlsDomainConfig.getClusterConfig(cluster);
return wlsClusterConfig.getClusterSize();
}
Aggregations