Skip to content

Commit

Permalink
Merge pull request #128 from icgc-argo/rc/2.8.0
Browse files Browse the repository at this point in the history
Rc/2.8.0
  • Loading branch information
andricDu authored Sep 17, 2020
2 parents d4b2789 + 0d8b3d0 commit 03d6b91
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>org.icgc.argo</groupId>
<artifactId>workflow-management</artifactId>
<version>2.7.0</version>
<version>2.8.0</version>
<name>workflow-management</name>
<description>ARGO Workflow Management</description>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ private CmdKubeRun createCmd(@NonNull Launcher launcher, @NonNull RunParams para
val workflowEngineParams = params.getWorkflowEngineParams();

// Create SecretName and K8s Secret
val rdpcSecretName = String.format("%s-%s", SECRET_SUFFIX, UUID.randomUUID());
val rdpcSecretName = String.format("%s-%s", runName, SECRET_SUFFIX);
secretProvider
.generateSecret()
.ifPresentOrElse(
Expand Down Expand Up @@ -323,8 +323,7 @@ private CmdKubeRun createCmd(@NonNull Launcher launcher, @NonNull RunParams para
k8sConfig.getServiceAccount(),
workflowEngineParams.getLaunchDir(),
workflowEngineParams.getProjectDir(),
workflowEngineParams.getWorkDir(),
rdpcSecretName);
workflowEngineParams.getWorkDir());
cmdParams.put("runConfig", List.of(config));

// Resume workflow by name/id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ public static String createNextflowConfigFile(
String serviceAccount,
String launchDir,
String projectDir,
String workDir,
String rdpcSecretName)
String workDir)
throws IOException {
val filePath = String.format("/tmp/%s.config", filename);

Expand All @@ -63,11 +62,6 @@ public static String createNextflowConfigFile(
// close it off
fileContent.add("}");

// Add K8s Secret Name
fileContent.add("params {");
writeFormattedLineIfValue(fileContent::add, "\trdpc_secret_name = '%s'", rdpcSecretName);
fileContent.add("}");

// Write contents to file
for (String line : fileContent) {
writer.write(line + System.lineSeparator());
Expand Down

0 comments on commit 03d6b91

Please sign in to comment.