congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
OpenShiftProviderConfigImpl.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.guvnor.ala.openshift.config.impl.OpenShiftProviderConfigImpl
constructor

Best Java code snippets using org.guvnor.ala.openshift.config.impl.OpenShiftProviderConfigImpl.<init> (Showing top 10 results out of 315)

origin: org.guvnor/guvnor-ala-openshift-provider

@Override
public OpenShiftProviderConfig asNewClone(OpenShiftProviderConfig origin) {
  return new OpenShiftProviderConfigImpl(origin);
}
origin: org.guvnor/guvnor-ala-openshift-provider

public OpenShiftProviderImpl(final String id, final OpenShiftProviderConfig config) {
  super(id, OpenShiftProviderType.instance(), new OpenShiftProviderConfigImpl(config));
}
origin: org.kie.workbench/kie-wb-common-ala-openshift-provider

  public static OpenShiftProviderImpl createOpenShiftProvider() {
    return new OpenShiftProviderImpl(PROVIDER_ID,
                     new OpenShiftProviderConfigImpl().clear());
  }
}
origin: org.guvnor/guvnor-ala-openshift-provider

  public static OpenShiftProviderImpl createOpenShiftProvider() {
    return new OpenShiftProviderImpl(PROVIDER_ID,
                     new OpenShiftProviderConfigImpl().clear());
  }
}
origin: org.guvnor/guvnor-ala-openshift-ui-backend

@Override
public OpenShiftProviderConfig toDomain(ProviderConfiguration modelValue) {
  if (modelValue == null) {
    return null;
  }
  OpenShiftProviderConfigImpl openShiftProviderConfig = new OpenShiftProviderConfigImpl();
  openShiftProviderConfig.clear();
  openShiftProviderConfig.setName(modelValue.getId());
  openShiftProviderConfig.setKubernetesMaster(getStringValue(modelValue.getValues(),
                                KUBERNETES_MASTER.inputKey()));
  openShiftProviderConfig.setKubernetesAuthBasicUsername(getStringValue(modelValue.getValues(),
                                     KUBERNETES_AUTH_BASIC_USERNAME.inputKey()));
  openShiftProviderConfig.setKubernetesAuthBasicPassword(getStringValue(modelValue.getValues(),
                                     KUBERNETES_AUTH_BASIC_PASSWORD.inputKey()));
  return openShiftProviderConfig;
}
origin: org.kie.workbench/kie-wb-common-ala-openshift-ui-backend

@Override
public OpenShiftProviderConfig toDomain(ProviderConfiguration modelValue) {
  if (modelValue == null) {
    return null;
  }
  OpenShiftProviderConfigImpl openShiftProviderConfig = new OpenShiftProviderConfigImpl();
  openShiftProviderConfig.clear();
  openShiftProviderConfig.setName(modelValue.getId());
  openShiftProviderConfig.setKubernetesMaster(getStringValue(modelValue.getValues(),
                                KUBERNETES_MASTER.inputKey()));
  openShiftProviderConfig.setKubernetesAuthBasicUsername(getStringValue(modelValue.getValues(),
                                     KUBERNETES_AUTH_BASIC_USERNAME.inputKey()));
  openShiftProviderConfig.setKubernetesAuthBasicPassword(getStringValue(modelValue.getValues(),
                                     KUBERNETES_AUTH_BASIC_PASSWORD.inputKey()));
  return openShiftProviderConfig;
}
origin: org.kie.workbench/kie-wb-common-ala-openshift-provider

@Test
public void testProviderConfig() {
  OpenShiftProviderConfigImpl providerConfig = new OpenShiftProviderConfigImpl().clear();
  providerConfig.setKubernetesMaster("https://localhost:8443");
  providerConfig.setKubernetesOapiVersion("v2");
  OpenShiftConfig clientConfig = OpenShiftAccessInterfaceImpl.buildOpenShiftConfig(providerConfig);
  assertEquals("https://localhost:8443/", clientConfig.getMasterUrl());
  assertEquals("https://localhost:8443/oapi/v2/", clientConfig.getOpenShiftUrl());
}
origin: org.guvnor/guvnor-ala-openshift-provider

@Test
public void testProviderConfig() {
  OpenShiftProviderConfigImpl providerConfig = new OpenShiftProviderConfigImpl().clear();
  providerConfig.setKubernetesMaster("https://localhost:8443");
  providerConfig.setKubernetesOapiVersion("v2");
  OpenShiftConfig clientConfig = OpenShiftAccessInterfaceImpl.buildOpenShiftConfig(providerConfig);
  assertEquals("https://localhost:8443/", clientConfig.getMasterUrl());
  assertEquals("https://localhost:8443/oapi/v2/", clientConfig.getOpenShiftUrl());
}
origin: org.kie.workbench/kie-wb-common-ala-openshift-provider

/**
 * Make sure we can reuse the provider for two different runtimes.
 * TODO: replace with more lightweight image and non-internal (minishift?) environment.
 * @throws Exception
 */
@Test
public void testProviderConfigReuse() throws Exception {
  OpenShiftProviderConfigImpl providerConfig = new OpenShiftProviderConfigImpl().clear();
  providerConfig.setName(getClass().getSimpleName());
  providerConfig.setKubernetesMaster("https://ce-os-rhel-master.usersys.redhat.com:8443");
  providerConfig.setKubernetesAuthBasicUsername("admin");
  providerConfig.setKubernetesAuthBasicPassword("admin");
  OpenShiftClient client = new OpenShiftAccessInterfaceImpl().newOpenShiftClient(providerConfig);
  OpenShiftRuntimeConfigImpl runtimeConfigA = createRuntimeConfig("tpcr1");
  OpenShiftRuntimeConfigImpl runtimeConfigB = createRuntimeConfig("tpcr2");
  client.create(runtimeConfigA);
  client.create(runtimeConfigB);
  client.destroy(runtimeConfigA.getRuntimeId().toString());
  client.destroy(runtimeConfigB.getRuntimeId().toString());
}
origin: org.guvnor/guvnor-ala-openshift-provider

/**
 * Make sure we can reuse the provider for two different runtimes.
 * TODO: replace with more lightweight image and non-internal (minishift?) environment.
 * @throws Exception
 */
@Test
public void testProviderConfigReuse() throws Exception {
  OpenShiftProviderConfigImpl providerConfig = new OpenShiftProviderConfigImpl().clear();
  providerConfig.setName(getClass().getSimpleName());
  providerConfig.setKubernetesMaster("https://ce-os-rhel-master.usersys.redhat.com:8443");
  providerConfig.setKubernetesAuthBasicUsername("admin");
  providerConfig.setKubernetesAuthBasicPassword("admin");
  OpenShiftClient client = new OpenShiftAccessInterfaceImpl().newOpenShiftClient(providerConfig);
  OpenShiftRuntimeConfigImpl runtimeConfigA = createRuntimeConfig("tpcr1");
  OpenShiftRuntimeConfigImpl runtimeConfigB = createRuntimeConfig("tpcr2");
  client.create(runtimeConfigA);
  client.create(runtimeConfigB);
  client.destroy(runtimeConfigA.getRuntimeId().toString());
  client.destroy(runtimeConfigB.getRuntimeId().toString());
}
org.guvnor.ala.openshift.config.implOpenShiftProviderConfigImpl<init>

Popular methods of OpenShiftProviderConfigImpl

  • setKubernetesAuthBasicPassword
  • setKubernetesAuthBasicUsername
  • setKubernetesMaster
  • setName
  • clear
  • setKubernetesOapiVersion
  • setAllProxy
  • setHttpProxy
  • setHttpsProxy
  • setKubernetesApiVersion
  • setKubernetesAuthToken
  • setKubernetesCertsCaData
  • setKubernetesAuthToken,
  • setKubernetesCertsCaData,
  • setKubernetesCertsCaFile,
  • setKubernetesCertsClientData,
  • setKubernetesCertsClientFile,
  • setKubernetesCertsClientKeyAlgo,
  • setKubernetesCertsClientKeyData,
  • setKubernetesCertsClientKeyFile,
  • setKubernetesCertsClientKeyPassphrase

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • putExtra (Intent)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Socket (java.net)
    Provides a client-side TCP socket.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now