forked from machine-learning-exchange/katalog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent.yaml
24 lines (23 loc) · 892 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
23
24
# Copyright 2021 The MLX Contributors
#
# SPDX-License-Identifier: Apache-2.0
name: 'Create Secret - Kubernetes Cluster'
description: |
Create secret to store pipeline credentials on Kubernetes Cluster
inputs:
- {name: token, description: 'Required. GitHub token for accessing private repository'}
- {name: url, description: 'Required. GitHub raw path for accessing the credential file'}
- {name: name, description: 'Required. Secret Name to be stored in Kubernetes'}
outputs:
- {name: secret_name, description: 'Kubernetes secret name'}
implementation:
container:
image: docker.io/aipipeline/wml-config:latest
command: ['python3']
args: [
/app/config.py,
--token, {inputValue: token},
--url, {inputValue: url},
--name, {inputValue: name},
--output-secret-name-file, {outputPath: secret_name},
]