Search in sources :

Example 1 with WlsRetriever

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();
}
Also used : WlsRetriever(oracle.kubernetes.operator.wlsconfig.WlsRetriever) WlsDomainConfig(oracle.kubernetes.operator.wlsconfig.WlsDomainConfig)

Example 2 with WlsRetriever

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();
}
Also used : WlsRetriever(oracle.kubernetes.operator.wlsconfig.WlsRetriever) WlsClusterConfig(oracle.kubernetes.operator.wlsconfig.WlsClusterConfig) WlsDomainConfig(oracle.kubernetes.operator.wlsconfig.WlsDomainConfig)

Aggregations

WlsDomainConfig (oracle.kubernetes.operator.wlsconfig.WlsDomainConfig)2 WlsRetriever (oracle.kubernetes.operator.wlsconfig.WlsRetriever)2 WlsClusterConfig (oracle.kubernetes.operator.wlsconfig.WlsClusterConfig)1