-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Partial revert for k8s deployment purpose "Use programArgsList when d…
- Loading branch information
Showing
3 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
...tor/src/main/scala/pl/touk/nussknacker/engine/process/runner/FlinkK8sArgsDecodeHack.scala
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,17 @@ | ||
package pl.touk.nussknacker.engine.process.runner | ||
|
||
// K8s operator parses args as command line arguments - see KubernetesApplicationClusterEntrypoint, | ||
// ClusterEntrypointUtils.parseParametersOrExit and similar issue: https://issues.apache.org/jira/browse/FLINK-32126 | ||
// so we need to escape some characters | ||
// This class is used by external project only | ||
object FlinkK8sArgsDecodeHack { | ||
|
||
// FRH - flink replacement hack.... | ||
def prepareProgramArgs(list: Array[String]): Array[String] = list.map( | ||
_.replace("__FRH_", "\"") | ||
.replace("__FRH2_", "\n") | ||
.replace("__FRH3_", "'") | ||
.replace("__FRH4_", "#") | ||
) | ||
|
||
} |
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