Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DSIP-66][k8s] Support User-customized K8s YAML Pod #16477

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Mighten
Copy link

@Mighten Mighten commented Aug 16, 2024

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

  • Added YamlUtils with jackson-dataformat-yaml(new dependency in pom.xml)
  • Updated K8sUtils with default namespace injection
  • Added user-customized YAML task mode, with frontend and backend

Verify this pull request

This change added tests and can be verified as follows:

  • Added YamlUtilsTest to verify YamlUtils

  • Added K8sUtilsTest to verify updates for K8sUtils

  • Manually verified the user-customized YAML task mode using both the web page and IDE output:

    1. Switch on the Custom Template mode, and paste Kubernetes YAML file content:

      1-enable-yaml-mode

      Conclusion: The user-customized YAML mode works correctly in the frontend.

    2. Online, Start the current workflow and review the log of the current task instance:

      2-view-pod-log

      Conclusion: The user-customized YAML mode works correctly in the backend.

    3. Review the pod output parameters parsed from the log in the IDE console (these are not listed in the task instance log window):

      3-get-pod-output-params

      Conclusion: The user-customized YAML mode correctly parses the output values from the log.

Copy link

boring-cyborg bot commented Aug 16, 2024

Thanks for opening this pull request! Please check out our contributing guidelines. (https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/contribute/join/pull-request.md)

@github-actions github-actions bot added UI ui and front end related backend test document labels Aug 16, 2024
@Mighten Mighten changed the title [Feature-#15301][k8s] Support User-customized K8s YAML Pod Task [Feature-15301][k8s] Support User-customized K8s YAML Pod Task Aug 16, 2024
@Gallardot
Copy link
Member

First you need to create a DSIP.

@Gallardot Gallardot added discussion discussion don't merge first time contributor First-time contributor labels Aug 16, 2024
@SbloodyS SbloodyS added this to the 3.3.0 milestone Aug 17, 2024
@ruanwenjun
Copy link
Member

First you need to create a DSIP.

Yes you need to create a DSIP, and provide detailed design, rather then directly submit a PR.

@fuchanghai
Copy link
Member

@Mighten Please modify the associated issue number

@Mighten Mighten changed the title [Feature-15301][k8s] Support User-customized K8s YAML Pod Task [DSIP-63][k8s] Support User-customized K8s YAML Pod Task Aug 18, 2024
@Mighten Mighten closed this Aug 19, 2024
@Mighten Mighten deleted the feature-15301 branch August 19, 2024 11:14
@Mighten Mighten restored the feature-15301 branch August 19, 2024 11:15
@Mighten Mighten changed the title [DSIP-63][k8s] Support User-customized K8s YAML Pod Task [DSIP-63][k8s] Support User-customized K8s YAML Pod Aug 19, 2024
@Mighten Mighten reopened this Aug 19, 2024
* Added `YamlUtils` with `jackson-dataformat-yaml`(new dependency in `pom.xml`)*
* Updated `K8sUtils` with default namespace injection*
* Added user-customized YAML task mode, with frontend and backend*
@Mighten Mighten changed the title [DSIP-63][k8s] Support User-customized K8s YAML Pod [DSIP-66][k8s] Support User-customized K8s YAML Pod Aug 19, 2024
Copy link

sonarcloud bot commented Aug 21, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
36.1% Coverage on New Code (required ≥ 60%)

See analysis details on SonarCloud

@SbloodyS SbloodyS removed this from the 3.3.0 milestone Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend discussion discussion document don't merge first time contributor First-time contributor test UI ui and front end related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DSIP-66][k8s] YAML Pod for User Customization
6 participants