Skip to content

Commit

Permalink
feat: Set default namespace and template for trial (#850)
Browse files Browse the repository at this point in the history
Signed-off-by: Ce Gao <[email protected]>
  • Loading branch information
gaocegege authored and k8s-ci-robot committed Oct 3, 2019
1 parent 6039a2e commit 142fdfc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ const styles = theme => ({

class TrialSpecParam extends React.Component {

componentDidMount() {
this.props.fetchTrialTemplates(this.props.trialNamespace);
this.props.changeTrialNamespace(this.props.trialNamespace);
}

onTrialNamespaceChange = (event) => {
this.props.fetchTrialTemplates(event.target.value);
this.props.changeTrialNamespace(event.target.value);
Expand Down
3 changes: 2 additions & 1 deletion pkg/ui/v1alpha3/frontend/src/reducers/hpCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ const initialState = {
},
],
allParameterTypes: ["int", "double", "categorical"],
trial: "cpuTrialTemplate.yaml",
trial: "defaultTrialTemplate.yaml",
currentYaml: '',
trialNamespace: "kubeflow",
};

const filterValue = (obj, key) => {
Expand Down

0 comments on commit 142fdfc

Please sign in to comment.