Skip to content

Commit 540c606

Browse files
committed
Remove unused username
Signed-off-by: Jakub Stejskal <xstejs24@gmail.com>
1 parent 54ce80a commit 540c606

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/main/java/io/tealc/ClusterManager.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public static synchronized ClusterManager getInstance() {
2121
}
2222

2323
Config config = new ConfigBuilder()
24-
.withUsername(Environment.WORKER_01_USERNAME)
2524
.withOauthToken(Environment.WORKER_01_TOKEN)
2625
.withMasterUrl(Environment.WORKER_01_URL)
2726
.withDisableHostnameVerification(true)
@@ -31,7 +30,6 @@ public static synchronized ClusterManager getInstance() {
3130
CLIENTS.put(EClusters.WORKER_01, new KubeClient(config, "default"));
3231

3332
config = new ConfigBuilder()
34-
.withUsername(Environment.WORKER_02_USERNAME)
3533
.withOauthToken(Environment.WORKER_02_TOKEN)
3634
.withMasterUrl(Environment.WORKER_02_URL)
3735
.withDisableHostnameVerification(true)
@@ -41,7 +39,6 @@ public static synchronized ClusterManager getInstance() {
4139
CLIENTS.put(EClusters.WORKER_02, new KubeClient(config, "default"));
4240

4341
config = new ConfigBuilder()
44-
.withUsername(Environment.WORKER_03_USERNAME)
4542
.withOauthToken(Environment.WORKER_03_TOKEN)
4643
.withMasterUrl(Environment.WORKER_03_URL)
4744
.withDisableHostnameVerification(true)

src/main/java/io/tealc/Environment.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,20 @@ public class Environment {
1919
private static final Logger LOGGER = LoggerFactory.getLogger(Environment.class);
2020
private static final Map<String, String> VALUES = new HashMap<>();
2121

22-
public static final String WORKER_01_USERNAME_ENV = "WORKER_01_USERNAME";
2322
public static final String WORKER_01_TOKEN_ENV = "WORKER_01_OCP_TOKEN";
2423
public static final String WORKER_01_URL_ENV = "WORKER_01_URL";
25-
public static final String WORKER_02_USERNAME_ENV = "WORKER_02_USERNAME";
2624
public static final String WORKER_02_TOKEN_ENV = "WORKER_02_OCP_TOKEN";
2725
public static final String WORKER_02_URL_ENV = "WORKER_02_URL";
28-
public static final String WORKER_03_USERNAME_ENV = "WORKER_03_USERNAME";
2926
public static final String WORKER_03_TOKEN_ENV = "WORKER_03_OCP_TOKEN";
3027
public static final String WORKER_03_URL_ENV = "WORKER_03_URL";
3128

3229
/**
3330
* Set values
3431
*/
35-
public static final String WORKER_01_USERNAME = getOrDefault(WORKER_01_USERNAME_ENV, null);
3632
public static final String WORKER_01_TOKEN = getOrDefault(WORKER_01_TOKEN_ENV, null);
3733
public static final String WORKER_01_URL = getOrDefault(WORKER_01_URL_ENV, null);
38-
public static final String WORKER_02_USERNAME = getOrDefault(WORKER_02_USERNAME_ENV, null);
3934
public static final String WORKER_02_TOKEN = getOrDefault(WORKER_02_TOKEN_ENV, null);
4035
public static final String WORKER_02_URL = getOrDefault(WORKER_02_URL_ENV, null);
41-
public static final String WORKER_03_USERNAME = getOrDefault(WORKER_03_USERNAME_ENV, null);
4236
public static final String WORKER_03_TOKEN = getOrDefault(WORKER_03_TOKEN_ENV, null);
4337
public static final String WORKER_03_URL = getOrDefault(WORKER_03_URL_ENV, null);
4438

0 commit comments

Comments
 (0)