forked from kubeflow/pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(backend): Implement RuntimeConfig in backend (kubeflow#8085)
* add runtime config model * add run store and tests * add runtime_config to model converter and tests * add runtime_config to api converter and its tests * change api server and related tests * remove v2 runtime_config test * add runtimeconfig to upgrade test * fix test values * upgrade test debug * tests * add more info for debug * use NullString instead of String, remove debug * fix type conversion * change function and add unit tests * run go fmt * Add comments for model * marshal params using v2 structpb values * fix small bug * Revert "run go fmt" This reverts commit 251c3a9. * No longer sort keys * test values and explain comparison using .String() * func toApiRuntimeConfig * tests updates * add api converter tests * change test * fix format * change test * simplify marshalling parameters
- Loading branch information
Showing
11 changed files
with
491 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright 2022 The Kubeflow Authors | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package model | ||
|
||
type RuntimeConfig struct { | ||
// Store parameters key-value pairs as serialized string. | ||
Parameters string `gorm:"column:RuntimeParameters; size:65535"` | ||
|
||
// A path in a object store bucket which will be treated as the root | ||
// output directory of the pipeline. It is used by the system to | ||
// generate the paths of output artifacts. Ref:(https://www.kubeflow.org/docs/components/pipelines/pipeline-root/) | ||
PipelineRoot string `gorm:"column:PipelineRoot; size:65535"` | ||
} |
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
Oops, something went wrong.