[DSIP-66][k8s] Support User-customized K8s YAML Pod #16477
+1,629
−25
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose of the pull request
This pull request adds user-customized YAML support for Kubernetes Pod task,
and aims to close: #16482
Brief change log
YamlUtils
withjackson-dataformat-yaml
(new dependency inpom.xml
)K8sUtils
with default namespace injectionVerify this pull request
This change added tests and can be verified as follows:
Added
YamlUtilsTest
to verifyYamlUtils
Added
K8sUtilsTest
to verify updates forK8sUtils
Manually verified the user-customized YAML task mode using both the web page and IDE output:
Switch on the Custom Template mode, and paste Kubernetes YAML file content:
Conclusion: The user-customized YAML mode works correctly in the frontend.
Online, Start the current workflow and review the log of the current task instance:
Conclusion: The user-customized YAML mode works correctly in the backend.
Review the pod output parameters parsed from the log in the IDE console (these are not listed in the task instance log window):
Conclusion: The user-customized YAML mode correctly parses the output values from the log.