Commit Graph

122 Commits

Author SHA1 Message Date
Chen Sun 0aa513eb93
Release KFP SDK and v2 launcher 1.8.4 (#6666) 2021-10-04 14:06:15 -07:00
Yaqi Ji e602793d5c
chore: Release KFP SDK and v2 launcher 1.8.3 (#6631)
* Update RELEASE.md

* Update RELEASE.md

* Update __init__.py

* Update v2_compat.py
2021-09-28 23:38:47 -07:00
Chen Sun 177a307330
chore: Release KFP SDK and v2 launcher 1.8.2 (#6577) 2021-09-16 12:20:53 -07:00
Yaqi Ji dec03067ca
chore: Release KFP SDK and v2 launcher 1.8.1 (#6544)
* Update RELEASE.md

* Update __init__.py

* Update v2_compat.py
2021-09-10 12:53:58 -07:00
Chen Sun d1f90b34d6
chore: Release KFP SDK and v2 launcher 1.8.0 (#6505) 2021-09-03 16:29:10 -07:00
Yaqi Ji 8f10bcdf16
chore: Release KFP SDK and v2 launcher 1.7.2 (#6442)
* Update RELEASE.md

* Update __init__.py

* Update v2_compat.py

* Update RELEASE.md
2021-08-25 19:58:04 -07:00
Chen Sun 7f6e11dedc
chore: Release KFP SDK and v2 launcher 1.7.1 (#6369) 2021-08-17 16:38:37 -07:00
Yaqi Ji 3044989dbf
chore: release KFP SDK and v2 launcher 1.7.0 (#6257)
* Update __init__.py

* Update v2_compat.py

* Update goldens
2021-08-06 17:18:25 -07:00
Chen Sun f4c6631e51
chore: release KFP SDK and v2 launcher 1.6.6 (#6125)
* release 1.6.6

* skip failing UT
2021-07-23 14:49:39 -07:00
Chen Sun 9bb80efedf
chore: release KFP SDK and v2 launcher 1.6.5 (#6084) 2021-07-19 13:21:14 -07:00
Ilias Katsakioris 52b0792e9f
feat(sdk): Add credentials to authenticate with ServiceAccountTokens. Part of #5138 (#5676)
* Introduce ServiceAccountTokenVolumeCredentials

Part of kubeflow/pipelines#5138

This is a subclass of TokenCredentials and implements the logic of
retrieving a service account token provided via a ProjectedVolume.

The 'get_token()' method reads and doesn't store the token as the
kubelet is refreshing it quite often.

Relevant docs:
https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#service-account-token-volume-projection

* Attemp to use credentials when in-cluster

If the KFP client detects it's running inside a pod and the user hasn't
provided any credentials, it now attempts to set up credentials based on
a projected service account token.

* Move credentials to kfp.auth module

Also change some names and values to avoid "ml-pipeline" references.

* Import kfp.auth lazily during the Client init

* Have credentials handle errors internally

* Let ServiceAccountTokenVolumeCredentials handle OSErrors internally
* Have the default-creds-setter only check if credentials provide a
  valid value
* Use Configuration's 'refresh_api_key_hook' instead of having duplicate
  code

* Remove dead code

* Add kfp.auth in the setup.py

* Move abstraction to the 'refresh_api_key_hook' method
2021-07-08 16:48:22 -07:00
Yaqi Ji 07ac566fcb
chore: release KFP SDK and v2 launcher 1.6.4 (#5916)
* Update __init__.py

* Update v2_compat.py
2021-06-24 16:30:43 -07:00
Yaqi Ji 63093d29e5
release: KFP SDK and v2 launcher 1.6.3 (#5796)
* Update __init__.py to 1.6.3

* Update v2_compat.py
2021-06-03 14:26:36 -07:00
Chen Sun 1db9db5be8
chore: restore KFP SDK version to 1.6.2, decouple SDK release from KFP main release. (#5739)
* Update __init__.py

* Update bump-version-in-place.sh
2021-05-27 01:21:17 -07:00
Yuan Gong 1c66f93f51 chore(release): bumped version to 1.6.0 2021-05-24 13:36:51 +08:00
Chen Sun 7608fcdbb4
release: KFP SDK and v2 launcher 1.6.2 (#5682) 2021-05-18 23:08:42 -07:00
Chen Sun bbce172335
release(sdk): release SDK 1.6.1 with minor fix in AIPlatformClient (#5679) 2021-05-18 13:55:14 -07:00
Chen Sun 0ae53a95af
Update __init__.py (#5678) 2021-05-18 13:34:08 -07:00
Ilias Katsakioris 89364315e9
feat(sdk): Introduce the token credentials interface. Part of #4683 (#5287)
* Introduce TokenCredentials abstract class

As presented in kubeflow/pipelines#4683, in this commit we introduce a
TokenCredentials abstract class which encapsulates the retrieval and
refresh of token credentials.

The reason we are using a class for the credentials is the fact that
usually tokens are short-lived and the client needs to refresh them.

All subclasses should define a 'get_token()' method responsible for
fetching and refreshing (if needed) a token for authentication.

* Configure credentials when initializing KFP client
2021-05-18 01:10:41 -07:00
Yuan Gong bc329aa816 chore(release): bumped version to 1.6.0-rc.0 2021-05-13 07:17:55 +00:00
Alexey Volkov cc83e1089b
Assigned copyright to the project authors (#5587) 2021-05-05 13:53:22 +08:00
Yuan (Bob) Gong 3d72a2d9d5
chore(release): bump version to 1.5.0 on master branch (#5508) 2021-04-20 01:51:38 -07:00
Yuan Gong 3b5030aefa chore(release): bumped version to 1.5.0-rc.3 2021-04-09 13:28:26 +00:00
Yuan Gong f870570a79 chore(release): bumped version to 1.5.0-rc.2 2021-04-02 10:06:48 +00:00
Yuan Gong 1cd189567d chore(release): bumped version to 1.5.0-rc.1 2021-04-01 11:59:53 +08:00
Yuan Gong d2c66deb93 chore(release): bumped version to 1.5.0-rc.0 2021-03-22 21:25:52 +08:00
Chen Sun efdf80feb8
chore(release): KFP SDK 1.4.1-rc.1 (#5332) 2021-03-18 15:22:16 -07:00
Chen Sun 5990285894
chore(release): KFP SDK 1.4.1-rc.0 (#5323) 2021-03-18 00:41:16 -07:00
Yuan (Bob) Gong 8b3d741c6e
chore(release): after release, also bump master to 1.4.1 (#5196)
* update release instructions

* chore(release): bump version to 1.4.1

* Update setup.py
2021-03-01 12:10:16 -08:00
Lin Yiming 8af15a3ad0
feat(sdk): Add local runner which will run ops in docker or locally. Fixes #1138 (#4983)
* add local runner which will run ops in docker or locally

* use str.format rather than f-string

* add some brief doc string in local client

* comment the unittest about running op in docker, which is not supported in CI env for now

* Add some brief docstring about DAG used in local client

* make graph/reverse_graph of DAG as property to keep them in sync

* make some methods of LocalClient static

* remove circular reference in local client

* Incapsulate artifact storage root in the constuctor of LocalClient

* Add Alpha notice for kfp.run_pipeline_func_locally

* Support list of local images in kfp.run_pipeline_func_locally

* make staticmethod to module level private method

* Trivial modification according to code review, some renaming or docstring

* local runner support components without '--' as argument prefix

* make output file of op in loop unique

* Local runner decides whether run component in docker or in local process base on ExecutionMode
2021-02-23 21:07:14 -08:00
Chen Sun abdcc2d7c1
release(sdk): Bump KFP SDK version to 1.4.0 (#5081) 2021-02-02 18:30:36 -08:00
Chen Sun 26de102f82 chore(release): bumped version to 1.4.0-rc.1 2021-02-01 00:18:50 -08:00
Yang Pan c484cfa46c chore(release): bumped version to 1.3.0 2021-01-07 00:39:26 -08:00
Chen Sun 5445ce82c7 chore(release): bumped version to 1.2.0 2020-12-17 23:24:32 -08:00
Chen Sun dc5386e801
chore(release): bump kfp sdk version to 1.1.2 (#4870) 2020-12-04 15:59:25 -08:00
Rui Fang a0a1a5d0cf chore(release): bumped version to 1.1.2-rc.1 2020-12-04 07:09:17 +00:00
hilcj c1aebb5d22 chore(release): bumped version to 1.1.1-beta.1 2020-11-26 17:58:04 +00:00
hilcj 4fe4a30545 Revert "chore(release): bumped version to 1.1.1-beta.1"
This reverts commit 9af3e79c10.
2020-11-26 16:10:10 +00:00
hilcj 9af3e79c10 chore(release): bumped version to 1.1.1-beta.1 2020-11-26 04:32:09 +00:00
hilcj bd86072a8c Revert "chore(release): bumped version to 1.1.1.beta.1"
This reverts commit 5928a2659b.
2020-11-26 04:20:10 +00:00
hilcj 5928a2659b chore(release): bumped version to 1.1.1.beta.1 2020-11-26 03:07:26 +00:00
Chen Sun 148dd8dcdb
chore(sdk): pin kfp-pipeline-spec version (#4748)
* pin kfp-pipeline-spec version

* kfp 1.1.1
2020-11-11 16:32:28 -08:00
Chen Sun 7cf620323f
chore(sdk): Use pipeline_spec proto from kfp-pipeline-spec package (#4745)
* Use pipeline_spec proto from kfp-pipeline-spec package

* update imports

* use pre-released kfp-pipeline-spec (temporarily)

* Revert "use pre-released kfp-pipeline-spec (temporarily)"

This reverts commit 77f2e9a39c.

* test_requires

* version

* make kfp a namespace package

* move to the top

* version rc0
2020-11-10 16:14:41 -08:00
Chen Sun 79e9f688a1
kfp sdk version to 1.1.0 (#4740) 2020-11-09 14:35:59 -08:00
Yuan Gong 7d36f48482 chore(release): bumped version to 1.1.0-alpha.1 2020-11-02 03:01:27 +00:00
Yuan (Bob) Gong d91a0c9da1
chore(release): bump version to 1.0.1 on master branch (#4492)
* chore(release): bump version to 1.0.1 on master branch

* remove rc changelog
2020-09-14 01:28:58 -07:00
Yuan (Bob) Gong 988f5b02e4
chore(release): bump version to 1.0.0 on master branch (#4249) 2020-07-20 02:04:51 -07:00
Renmin 9c16e12ba0
update version (#3694) 2020-05-06 19:37:09 -07:00
hongye-sun 3dbbb16903
update version to 0.5.0 (#3566) 2020-04-22 14:00:50 -07:00
Jiaxiao Zheng cfcd824ed1
update version (#3467) 2020-04-07 14:13:44 -07:00
Ajay Gopinathan d6abac5e8d
Bump version to 0.3.0 (#3329)
* Bump version to 0.3.0

* Fix formatting

* More formatting fixes

* More formatting fixes

* update requirements.txt

* update version
2020-03-22 19:44:45 -07:00
Yuan (Bob) Gong 688aa08d42
Release 0.2.5 - e66dcb1860 (#3179)
* Updated component images to version e66dcb1860

* Updated components to version 3f4b80127f

* Update setup.py

* Fix swagger codegen download url

* Update versions
2020-02-26 23:59:19 -08:00
Renmin 23e9d3786d
bump version to 0.2.4 and tiny BTW doc fix (#3115)
* update guide for cluster size

* bump version to 0.2.4

* remove ALPHA

* update sample source link

* fix snapshot

* done

Co-authored-by: renmingu <40223865+renmingu@users.noreply.github.com>
2020-02-19 03:54:25 -08:00
jingzhang36 881cde2be1
update version from 0.2.2 to 0.2.3 for kfp (#3072)
* update version from 0.2.2 to 0.2.3 for kfp

* 0.2.2 -> 0.2.3
2020-02-13 03:54:34 -08:00
Renmin ae3ae79dc3
bump version (#2988)
Co-authored-by: renmingu <40223865+renmingu@users.noreply.github.com>
2020-02-04 23:13:55 -08:00
Ajay Gopinathan fdcbdaf4b6
Bump version for release 0.2.1 of Pipelines (#2961) 2020-02-02 19:33:20 -08:00
Renmin 232dd393f2 from 0.1.40 to 0.2.0 (#2872)
* done

* all done

* bump version to 0.2.1

* correct to 0.2.0

* done

Co-authored-by: renmingu <40223865+renmingu@users.noreply.github.com>
2020-01-18 23:05:35 -08:00
Renmin 10a4f55e3a Release bae654dc5c v0.1.40 (#2818)
* Updated component images to version bae654dc5c

* Updated components to version ff116b6f1a

* 0.1.40

* append old items

* fix line

Co-authored-by: renmingu <40223865+renmingu@users.noreply.github.com>
2020-01-09 01:33:46 -08:00
Ning dd207b1bcf
release 0.1.39 (#2799) 2020-01-06 13:15:17 -08:00
Alexey Volkov cd08f9afc8 SDK - Bump version to 0.1.38 (#2734) 2019-12-17 12:13:58 -08:00
hongye-sun 1b04983d96
update server and sdk version to 0.1.37 (#2701)
* update server and sdk version to 0.1.37

* update api package version to latest

* fix test error
2019-12-05 17:05:07 -05:00
Jiaxiao Zheng 4ca121d136 Bump version to 0.1.36 (#2661)
* update component sdk version

* bump python SDK and manifest version

* Revert "update component sdk version" to prevent conflict

This reverts commit 1fd6ddc8
2019-11-26 15:59:20 -08:00
Yuan (Bob) Gong 12a9fa95d2 Bump version to 0.1.35 (#2598)
* Bump version to 0.1.35

* Update kustomization.yaml

* Update __init__.py
2019-11-13 10:43:31 -08:00
jingzhang36 4f8e9fb169 Increase kfp version in kustomize and sdk init (#2567) 2019-11-07 14:00:26 -08:00
IronPan a321525952 Update __init__.py (#2527) 2019-11-01 15:57:41 -07:00
hongye-sun aab5a50120 Update sdk release version (#2434)
* Update sdk release version

* Update the server image version
2019-10-18 12:19:08 -07:00
Alexey Volkov 8025511c30 SDK - Added version (#2374) 2019-10-14 15:35:51 -07:00
Alexey Volkov 3ec743a3e4 SDK - Started to explicitly import submodules into kfp namespace (#2117) 2019-09-13 19:06:39 -07:00
Alexey Volkov 08104d6cf9 SDK - Containers - Build python container image based on current working directory (#1970)
* SDK - Containers - Build container image from current environment

* Removed the ability to capture the active python environment (as requested by @hongye-sun)

* Added the type hint and docstring to for the return type.

* Renamed `build_image_from_env` function to `build_image_from_working_dir`
as requested by @hongye-sun

* Explained the function behavior in the documentation.

* Removed extra empty line

* Improved caching by copying python files only after installing python packages

* Made test more portable

* Added support for specifying the base_image
`kfp.containers.default_base_image = ...`
The image can also be a callable returning the image name.

* Renamed `get_python_image` to `get_python_image_for_current_version`

* Switched the default base image to Google Deep Learning container image as requested by @hongye-sun
The size of this image is 4.35GB which really concerns me. The GPU image size is 6.45GB.

* Stopped importing kfp.containers.* into kfp.*

* Fixed test

* Fixed the regex string

* Fixed the type annotation style

* Addressed @hongye-sun feedback

* Removed the container image size warning

* Fixed import failure
2019-09-06 15:19:19 -07:00
Alexey Volkov ecd93a5056 SDK - Added kfp.run_pipeline_func_on_cluster function (#1521)
This commit adds alias to the kfp.Client.create_run_from_pipeline_func method as the root kfp.run_pipeline_func_on_cluster function.
In future more runners can be added (local, etc).
2019-09-03 12:26:58 -07:00
Ning c829115574 Add type check (#938)
* add core types and type checking function

* fix unit test bug

* avoid defining dynamic classes

* typo fix

* add component metadata format

* add a construct for the component decorator

* add default values for the meta classes

* add input/output types to the metadata

* add from_dict in TypeMeta

* small fix

* add unit tests

* use python struct for the openapi schema

* add default in parameter

* add default value

* remove the str restriction for the param default

* bug fix

* add pipelinemeta

* add pipeline metadata

* ignore annotation if it is not str/BaseType/dict

* update param name in the check_type functions
remove schema validators for GCRPath, and adjust for GCRPath, GCSPath
change _check_valid_dict to _check_valid_type_dict to avoid confusion
fix typo in the comments
adjust function order for readability

* remove default values for non-primitive types in the function signature
update the _check_valid_type_dict name

* pass metadata from component decorator and task factory to containerOp

* pass pipeline metadata to Pipeline

* fix unit test

* typo in the comments

* move the metadata classes to a separate module

* fix unit test

* small change

* add __eq__ to meta classes
not export _metadata classes

* nothing

* fix unit test

* unit test python component

* unit test python pipeline

* fix bug: duplicate variable of args

* fix unit tests

* move python_component and _component decorator in _component file

* remove the print

* change parameter default value to None

* add functools wraps around _component decorator

* TypeMeta accept both str and dict

* fix indent, add unit test for type as strings

* do not set default value for the name field in ParameterMeta, ComponentMeta, and PipelineMeta

* add type check in task factory

* output error message

* add type check in component decorator; move the metadata assignment out of the containerop __init__ function

* fix bug; add unit test

* add more unit tests

* more unit tests; fix bugs

* more unit tests; fix bugs

* add unit tests

* more unit tests

* add type check switch; add unit tests

* add compiler option for type check

* resolving pr comments

* add unit test for pipeline param check with component types; fix the bug; also fix the bug when there are not a single return annotations
2019-03-11 11:22:12 -07:00
Pascal Vicaire 633e2ddcc8 Initial commit of the kubeflow/pipeline project. 2018-11-02 14:02:31 -07:00