-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CHE-58: Refactoring. Introducing new classes for handling Kubernetes …
…resources (KubernetesContainer, KubernetesService, KubernetesEnvVar) Signed-off-by: Ilya Buziuk <ibuziuk@redhat.com>
- Loading branch information
Showing
20 changed files
with
927 additions
and
503 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...enshift-client/src/main/java/org/eclipse/che/plugin/openshift/client/CheServicePorts.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2012-2017 Red Hat, Inc. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Red Hat, Inc. - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.che.plugin.openshift.client; | ||
|
||
import java.util.Map; | ||
import com.google.common.collect.ImmutableMap; | ||
|
||
/** | ||
* Provides mapping between port and Che service name that is using it | ||
*/ | ||
public final class CheServicePorts { | ||
private static final Map<Integer, String> CHE_SERVICE_PORTS = ImmutableMap.<Integer, String> builder(). | ||
put(22, "sshd"). | ||
put(4401, "wsagent"). | ||
put(4403, "wsagent-jpda"). | ||
put(4411, "terminal"). | ||
put(8080, "tomcat"). | ||
put(8000, "tomcat-jpda"). | ||
put(9876, "codeserver").build(); | ||
|
||
private CheServicePorts() { | ||
} | ||
|
||
public static Map<Integer, String> get() { | ||
return CHE_SERVICE_PORTS; | ||
} | ||
} |
Oops, something went wrong.