Skip to content

Commit b3eeeba

Browse files
HumairAKMatt Prahl
authored andcommitted
feat(backend/sdk): Add input parameterization for various k8s resources (kubeflow#11770)
* add backend support for k8s platform inputs This change adds driver support for input parameter support for the kubernetes platform spec. Input resolution change is extracted and made more generic so it may be re-used when building out the container spec for the k8s config. Also add unit tests for constant & runtime input parameters. TaskOutput parameter support are omitted due to a lack of appropriate mlmd mock framework. Signed-off-by: Humair Khan <[email protected]> * add sdk implementation for k8s params inputs Signed-off-by: Humair Khan <[email protected]> * add tests for k8s input params Signed-off-by: Humair Khan <[email protected]> * add setup/teardown of prereqs and secret tests and update/re-enable secret env tests Signed-off-by: Humair Khan <[email protected]> * have kfp sample tests use local python pkgs Signed-off-by: Humair Khan <[email protected]> * use a better configmap k8s name input... Add support for multiple input types for pull secrets. Clarify toleration docstring Remove unnecessary resolve function Signed-off-by: Humair Khan <[email protected]> --------- Signed-off-by: Humair Khan <[email protected]> (cherry picked from commit fd1b48b)
1 parent 522e4c6 commit b3eeeba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+3700
-623
lines changed

.github/workflows/kfp-samples.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,35 @@ jobs:
3131
with:
3232
python-version: 3.9
3333

34+
- name: apt-get update
35+
run: sudo apt-get update
36+
37+
- name: Install protobuf-compiler
38+
run: sudo apt-get install protobuf-compiler -y
39+
40+
- name: Install setuptools
41+
run: |
42+
pip3 install setuptools
43+
pip3 freeze
44+
45+
- name: Install Wheel
46+
run: pip3 install wheel==0.42.0
47+
48+
- name: Install protobuf
49+
run: pip3 install protobuf==4.25.3
50+
51+
- name: Generate API proto files
52+
working-directory: ./api
53+
run: make python
54+
55+
- name: Install kfp-pipeline-spec from source
56+
run: |
57+
python3 -m pip install api/v2alpha1/python
58+
59+
- name: Generate, Build, and Install Kubernetes API proto files & packages
60+
working-directory: ./kubernetes_platform
61+
run: make python && pip install python/dist/*.whl
62+
3463
- name: Create KFP cluster
3564
uses: ./.github/actions/kfp-cluster
3665
with:
@@ -65,4 +94,3 @@ jobs:
6594
with:
6695
name: kfp-samples-tests-artifacts-k8s-${{ matrix.k8s_version }}
6796
path: /tmp/tmp*/*
68-

0 commit comments

Comments
 (0)