Skip to content

Instantly share code, notes, and snippets.

@Geremie
Created February 28, 2021 19:34
Show Gist options
  • Save Geremie/d3355145f7517d68f3b9ff113bdfa9d5 to your computer and use it in GitHub Desktop.
Save Geremie/d3355145f7517d68f3b9ff113bdfa9d5 to your computer and use it in GitHub Desktop.
Never struggle again to share data between your Kubeflow Pipelines components
name: Deployment Checker
description: The component checks whether to deploy model new version or not
inputs:
- name: project_id
description: ''
type: String
- name: model_name
description: ''
type: String
- name: model_folder
description: ''
type: String
outputs:
- name: dest
description: ''
type: String
implementation:
container:
image: gcr.io/taxi-fare-predictor-kf/taxi-fare-utils:latest
command: ['python3', '-m', 'deploy_checker']
args: [
'--project_id', {inputValue: project_id},
'--model_name', {inputValue: model_name},
'--model_folder', {inputValue: model_folder},
'--output_dest', {outputPath: dest}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment