-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update ApplicationBuilder for improved metadata, parameter comp…
…atibility, and env handling - added a new option parameter to set application metadata, enabling metadata specification within the KCLRun file. This addresses a limitation when building with the kcl kubeclt plugin. - renamed `env` to `appenv` and `cluster` to `appcluster` to avoid conflicts with system environment variables, especially when using `env` as a key in options with KCLRun. - modified `ApplicationBuilder` to use `EnvMap` instead of a list of dictionaries for envs, ensuring compatibility with the container env parameter structure. Signed-off-by: Emin Aktas <[email protected]>
- Loading branch information
Showing
4 changed files
with
18 additions
and
19 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__META_APP_NAME = option("app") or "sampleapp" | ||
__META_APP_NAMESPACE = option("appns") or "sampleappns" | ||
__META_ENV_TYPE_NAME = option("env") or "prod" | ||
__META_CLUSTER_NAME = option("cluster") or Undefined | ||
__META_APP_NAME = option("app") or option("params").app or "sampleapp" | ||
__META_APP_NAMESPACE = option("appns") or option("params").appns or "sampleappns" | ||
__META_ENV_TYPE_NAME = option("appenv") or option("params").appenv or "prod" | ||
__META_CLUSTER_NAME = option("appcluster") or option("params").appcluster or Undefined |
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