Skip to content

Commit

Permalink
adds username and password
Browse files Browse the repository at this point in the history
  • Loading branch information
dipak-pawar committed Feb 9, 2018
1 parent a2ef6c6 commit 89578e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

<extension qualifier="openshift">
<property name="namespace.use.current">true</property>
</extension>

</arquillian>
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.arquillian.cube.openshift.impl.namespace;

import io.fabric8.kubernetes.api.model.v3_1.Namespace;
import io.fabric8.kubernetes.clnt.v3_1.Config;
import io.fabric8.kubernetes.clnt.v3_1.KubernetesClient;
import io.fabric8.kubernetes.clnt.v3_1.KubernetesClientException;
import io.fabric8.openshift.api.model.v3_1.ProjectRequest;
Expand Down Expand Up @@ -47,6 +48,9 @@ public ImmutableOpenshiftNamespaceService(KubernetesClient client, Configuration
public Namespace create(String namespace, Map<String, String> annotations) {
if (client.isAdaptable(OpenShiftClient.class)) {
OpenShiftClient openShiftClient = client.adapt(OpenShiftClient.class);
final Config configuration = client.getConfiguration();
configuration.setUsername("developer");
configuration.setPassword("developer");
logger.status("Creating project: " + namespace);
ProjectRequest projectRequest = new ProjectRequestBuilder()
.withNewMetadata()
Expand Down

0 comments on commit 89578e9

Please sign in to comment.