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

SUBMARINE-623. Experiment templates cannot use pure digital parameters #415

Closed
wants to merge 2 commits into from

Conversation

JohnTing
Copy link
Contributor

@JohnTing JohnTing commented Sep 27, 2020

What is this PR for?

Now experiment templates cannot use pure digital parameters,
For example,

if the following "replicas", using
"{{Master.replicas}}", the experiment will fail.
If the "replicas" uses
{{Master.replicas}}
, it will not be parsed as json.
"spec": {
"Master": {
"replicas": 1,
"resources": "cpu=1,memory=1024M"
},
"Worker": {
"replicas": 1,
"resources": "cpu=1,memory=1024M"
}
}
 
This PR adds another way to map parameters
It will replace the parameter according to the json path.

{
  "name": "spec.Master.replicas",
  "value": 1,
  "required": true,
  "description": "Ps replicas."
}

What type of PR is it?

Bug Fix

Todos

  • - Fix Bug
  • - Update documentation

What is the Jira issue?

https://issues.apache.org/jira/browse/SUBMARINE-623

How should this be tested?

Screenshots (if appropriate)

Questions:

  • Does the licenses files need update? Yes/No
  • Is there breaking changes for older versions? Yes/No
  • Does this needs documentation? Yes/No

@JohnTing JohnTing marked this pull request as ready for review October 2, 2020 06:49
@JohnTing JohnTing marked this pull request as draft October 3, 2020 16:02
@JohnTing JohnTing marked this pull request as ready for review October 6, 2020 02:51
@JohnTing JohnTing marked this pull request as draft October 15, 2020 16:29
@JohnTing JohnTing marked this pull request as ready for review October 23, 2020 18:33
rebase squash

change

change

change

change

test2

change1

change2

change3

change4

change4

database

text1

doc

doc

doc

Update submarine-server/server-core/src/main/java/org/apache/submarine/server/experimenttemplate/ExperimentTemplateManager.java

Co-authored-by: HUAN-PING SU <pingsutw@gmail.com>

Update docs/database/submarine-data.sql

Co-authored-by: HUAN-PING SU <pingsutw@gmail.com>

Update docs/userdocs/k8s/api/experiment-template.md

Co-authored-by: HUAN-PING SU <pingsutw@gmail.com>

Update submarine-server/server-core/src/main/java/org/apache/submarine/server/experimenttemplate/ExperimentTemplateManager.java

Co-authored-by: HUAN-PING SU <pingsutw@gmail.com>

change to apache image

Resolve conflicts

Resolve conflicts

Resolve conflicts
@asfgit asfgit closed this in 1a58d0a Nov 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants