Skip to content

Commit

Permalink
Merge pull request #157 from entando-k8s/IT-515
Browse files Browse the repository at this point in the history
ENG-5451: Upgrade Operator for Args parameter
  • Loading branch information
eugeniosant authored Jan 31, 2024
2 parents 9083949 + 35404d9 commit 8763550
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 @@ -65,6 +65,10 @@ default List<String> getNamesOfSecretsToMount() {
return Collections.emptyList();
}

default List<String> getArgs() {
return Collections.emptyList();
}

default List<SecretToMount> getSecretsToMount() {
return getNamesOfSecretsToMount().stream().map(s -> new SecretToMount(s, ENTANDO_SECRET_MOUNTS_ROOT + "/" + s))
.collect(Collectors.toList());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ private Container newContainer(EntandoImageResolver imageResolver, DeployableCon
.withImage(imageResolver.determineImageUri(deployableContainer.getDockerImageInfo()))
.withImagePullPolicy(EntandoOperatorConfig.getPullPolicyOverride().orElse("IfNotPresent"))
.withPorts(buildPorts(deployableContainer))
.withArgs(deployableContainer.getArgs())
.withReadinessProbe(buildReadinessProbe(deployableContainer, supportStartupProbes))
.withLivenessProbe(buildLivenessProbe(deployableContainer, supportStartupProbes))
.withStartupProbe(buildStartupProbe(deployableContainer, supportStartupProbes))
Expand Down

0 comments on commit 8763550

Please sign in to comment.