Skip to content

Commit cc41923

Browse files
committed
Cleanup #69
* remove osweek branches from workflow files * fix typos * explicitly use python3
1 parent 81269b9 commit cc41923

File tree

16 files changed

+62
-27
lines changed

16 files changed

+62
-27
lines changed

.github/workflows/docker-landing-page.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Docker landing Page CI
1+
name: Docker Landing Page CI
22

33
on:
44
push:
55
branches: [ main ]
66
pull_request:
7-
branches: [ main, osweek23 ]
7+
branches: [ main ]
88

99
jobs:
1010

.github/workflows/docker-operator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [ main ]
66
pull_request:
7-
branches: [ main, osweek23 ]
7+
branches: [ main ]
88

99
jobs:
1010

.github/workflows/docker-try-now-page.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [ main ]
66
pull_request:
7-
branches: [ main, osweek23 ]
7+
branches: [ main ]
88

99
jobs:
1010

.github/workflows/docker-wondershaper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [ main ]
66
pull_request:
7-
branches: [ main, osweek23 ]
7+
branches: [ main ]
88

99
jobs:
1010

.github/workflows/service-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [ main ]
66
pull_request:
7-
branches: [ main, osweek23 ]
7+
branches: [ main ]
88

99
jobs:
1010

doc/docs/Building-Internal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ docker build --no-cache -t theiacloud/theia-cloud-operator:latest -f dockerfiles
6262
docker push theiacloud/theia-cloud-operator:latest
6363
```
6464

65-
Build and pish the git-init container:
65+
Build and push the git-init container:
6666

6767
```bash
6868
docker build -t theiacloud/theia-cloud-git-init:latest -f dockerfiles/git-init/Dockerfile .

dockerfiles/git-init/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM debian:11-slim
22

33
RUN apt update && \
4-
apt install python git -y && \
4+
apt install python3 git -y && \
55
apt clean && \
66
mkdir /user && \
77
chmod 777 /user && \

java/common/org.eclipse.theia.cloud.common/src/main/java/org/eclipse/theia/cloud/common/k8s/resource/SessionSpec.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public List<String> getEnvVarsFromSecrets() {
179179
return envVarsFromSecrets;
180180
}
181181

182-
public List<InitOperation> getinitOperations() {
182+
public List<InitOperation> getInitOperations() {
183183
return initOperations;
184184
}
185185

@@ -279,10 +279,9 @@ public boolean equals(Object obj) {
279279
@Override
280280
public String toString() {
281281
return "SessionSpec [name=" + name + ", appDefinition=" + appDefinition + ", user=" + user + ", url=" + url
282-
+ ", error=" + error + ", workspace=" + workspace + ", lastActivity=" + lastActivity
283-
+ ", sessionSecret=" + sessionSecret + ", envVars=" + envVars + ", envVarsFromConfigMaps="
284-
+ envVarsFromConfigMaps + ", envVarsFromSecrets=" + envVarsFromSecrets + ", initOperations="
285-
+ initOperations + "]";
282+
+ ", error=" + error + ", workspace=" + workspace + ", lastActivity=" + lastActivity + ", envVars="
283+
+ envVars + ", envVarsFromConfigMaps=" + envVarsFromConfigMaps + ", envVarsFromSecrets="
284+
+ envVarsFromSecrets + ", initOperations=" + initOperations + "]";
286285
}
287286

288287
public static boolean isEphemeral(String workspace) {

java/operator/org.eclipse.theia.cloud.operator/src/main/java/org/eclipse/theia/cloud/operator/handler/InitOperationHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@
2626
public interface InitOperationHandler {
2727

2828
static final String THEIA_CLOUD_INIT_LABEL = "theiaCloudInit";
29+
static final String THEIA_CLOUD_USER_LABEL = "theiaCloudUser";
2930

3031
String operationId();
3132

32-
void addInitContainer(String correlationId, TheiaCloudClient client, Deployment deployment,
33+
void handleInitOperation(String correlationId, TheiaCloudClient client, Deployment deployment,
3334
AppDefinition appDefinition, Session session, List<String> args);
3435

3536
}

java/operator/org.eclipse.theia.cloud.operator/src/main/java/org/eclipse/theia/cloud/operator/handler/impl/AddedHandlerUtil.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,9 @@ private static Optional<Integer> findContainerIdxInDeployment(Deployment deploym
342342
return Optional.empty();
343343
}
344344

345-
public static void addInitContainers(String correlationId, TheiaCloudClient client, Deployment deployment,
345+
public static void handleInitOperations(String correlationId, TheiaCloudClient client, Deployment deployment,
346346
AppDefinition appDefinition, Session session, Set<InitOperationHandler> initOperationHandlers) {
347-
List<InitOperation> initOperations = session.getSpec().getinitOperations();
347+
List<InitOperation> initOperations = session.getSpec().getInitOperations();
348348
if (initOperations == null) {
349349
return;
350350
}
@@ -356,7 +356,7 @@ public static void addInitContainers(String correlationId, TheiaCloudClient clie
356356
.format("No Init Handler found for operation with id {0}.", initOperation.getId())));
357357
continue;
358358
}
359-
handler.get().addInitContainer(correlationId, client, deployment, appDefinition, session,
359+
handler.get().handleInitOperation(correlationId, client, deployment, appDefinition, session,
360360
initOperation.getArguments());
361361
LOGGER.info(formatLogMessage(correlationId,
362362
MessageFormat.format("Added init container with id {0} to deployment.", initOperation.getId())));

0 commit comments

Comments
 (0)