-
Notifications
You must be signed in to change notification settings - Fork 13
/
component.yaml
22 lines (22 loc) · 970 Bytes
/
component.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright 2021 The MLX Contributors
#
# SPDX-License-Identifier: Apache-2.0
name: Create Dataset Volume
description: Manage Dataset Lifecycle Framework datasets
inputs:
- {name: Action, type: String, default: 'create', description: 'Action to execute on Kubernetes'}
- {name: Dataset YAML, type: String, default: '{}', description: 'Raw Dataset serialized YAML for deployment'}
- {name: Namespace, type: String, default: 'default', description: 'Kubernetes namespace for deployment'}
outputs:
- {name: Dataset status, type: String, description: 'Dataset Status'}
implementation:
container:
image: aipipeline/dlf-to-pvc:0.0.1
command: ['python']
args: [
-u, dataset_manager.py,
--action, {inputValue: Action},
--namespace, {inputValue: Namespace},
--dataset_yaml, {inputValue: Dataset YAML},
--output-path, {outputPath: Dataset status}
]