Skip to content

Commit

Permalink
add tests for k8s input params
Browse files Browse the repository at this point in the history
Signed-off-by: Humair Khan <HumairAK@users.noreply.github.com>
  • Loading branch information
HumairAK committed Feb 14, 2025
1 parent ae85ff3 commit 804cb2d
Show file tree
Hide file tree
Showing 22 changed files with 1,905 additions and 89 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ deploymentSpec:
- -c
- "\nif ! [ -x \"$(command -v pip)\" ]; then\n python3 -m ensurepip ||\
\ python3 -m ensurepip --user || apt-get install python3-pip\nfi\n\nPIP_DISABLE_PIP_VERSION_CHECK=1\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.4.0'\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.11.0'\
\ '--no-deps' 'typing-extensions>=3.7.4,<5; python_version<\"3.9\"' && \"\
$0\" \"$@\"\n"
- sh
Expand Down Expand Up @@ -46,15 +46,18 @@ root:
taskInfo:
name: comp
schemaVersion: 2.1.0
sdkVersion: kfp-2.4.0
sdkVersion: kfp-2.11.0
---
platforms:
kubernetes:
deploymentSpec:
executors:
exec-comp:
configMapAsEnv:
- keyToEnv:
- envVar: CONFIG_MAP_VAR
configMapKey: foo
configMapName: my-cm
- configMapName: my-cm
configNameParameter:
runtimeValue:
constant: my-cm
keyToEnv:
- configMapKey: foo
envVar: CONFIG_MAP_VAR
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ deploymentSpec:
- -c
- "\nif ! [ -x \"$(command -v pip)\" ]; then\n python3 -m ensurepip ||\
\ python3 -m ensurepip --user || apt-get install python3-pip\nfi\n\nPIP_DISABLE_PIP_VERSION_CHECK=1\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.4.0'\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.11.0'\
\ '--no-deps' 'typing-extensions>=3.7.4,<5; python_version<\"3.9\"' && \"\
$0\" \"$@\"\n"
- sh
Expand Down Expand Up @@ -46,14 +46,17 @@ root:
taskInfo:
name: comp
schemaVersion: 2.1.0
sdkVersion: kfp-2.4.0
sdkVersion: kfp-2.11.0
---
platforms:
kubernetes:
deploymentSpec:
executors:
exec-comp:
configMapAsVolume:
- mountPath: /mnt/my_vol
configMapName: my-cm
optional: False
- configMapName: my-cm
configNameParameter:
runtimeValue:
constant: my-cm
mountPath: /mnt/my_vol
optional: false
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ deploymentSpec:
- -c
- "\nif ! [ -x \"$(command -v pip)\" ]; then\n python3 -m ensurepip ||\
\ python3 -m ensurepip --user || apt-get install python3-pip\nfi\n\nPIP_DISABLE_PIP_VERSION_CHECK=1\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.4.0'\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.11.0'\
\ '--no-deps' 'typing-extensions>=3.7.4,<5; python_version<\"3.9\"' && \"\
$0\" \"$@\"\n"
- sh
Expand Down Expand Up @@ -132,7 +132,7 @@ deploymentSpec:
- -c
- "\nif ! [ -x \"$(command -v pip)\" ]; then\n python3 -m ensurepip ||\
\ python3 -m ensurepip --user || apt-get install python3-pip\nfi\n\nPIP_DISABLE_PIP_VERSION_CHECK=1\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.4.0'\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.11.0'\
\ '--no-deps' 'typing-extensions>=3.7.4,<5; python_version<\"3.9\"' && \"\
$0\" \"$@\"\n"
- sh
Expand Down Expand Up @@ -214,7 +214,7 @@ root:
taskInfo:
name: producer
schemaVersion: 2.1.0
sdkVersion: kfp-2.4.0
sdkVersion: kfp-2.11.0
---
platforms:
kubernetes:
Expand All @@ -223,12 +223,20 @@ platforms:
exec-consumer:
pvcMount:
- mountPath: /data
pvcNameParameter:
taskOutputParameter:
outputParameterKey: name
producerTask: createpvc
taskOutputParameter:
outputParameterKey: name
producerTask: createpvc
exec-producer:
pvcMount:
- mountPath: /data
pvcNameParameter:
taskOutputParameter:
outputParameterKey: name
producerTask: createpvc
taskOutputParameter:
outputParameterKey: name
producerTask: createpvc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ deploymentSpec:
- -c
- "\nif ! [ -x \"$(command -v pip)\" ]; then\n python3 -m ensurepip ||\
\ python3 -m ensurepip --user || apt-get install python3-pip\nfi\n\nPIP_DISABLE_PIP_VERSION_CHECK=1\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.4.0'\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.11.0'\
\ '--no-deps' 'typing-extensions>=3.7.4,<5; python_version<\"3.9\"' && \"\
$0\" \"$@\"\n"
- sh
Expand Down Expand Up @@ -161,7 +161,7 @@ root:
taskInfo:
name: deletepvc
schemaVersion: 2.1.0
sdkVersion: kfp-2.4.0
sdkVersion: kfp-2.11.0
---
platforms:
kubernetes:
Expand All @@ -170,6 +170,10 @@ platforms:
exec-comp:
pvcMount:
- mountPath: /data
pvcNameParameter:
taskOutputParameter:
outputParameterKey: name
producerTask: createpvc
taskOutputParameter:
outputParameterKey: name
producerTask: createpvc
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ deploymentSpec:
- -c
- "\nif ! [ -x \"$(command -v pip)\" ]; then\n python3 -m ensurepip ||\
\ python3 -m ensurepip --user || apt-get install python3-pip\nfi\n\nPIP_DISABLE_PIP_VERSION_CHECK=1\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.4.0'\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.11.0'\
\ '--no-deps' 'typing-extensions>=3.7.4,<5; python_version<\"3.9\"' && \"\
$0\" \"$@\"\n"
- sh
Expand Down Expand Up @@ -126,7 +126,7 @@ deploymentSpec:
- -c
- "\nif ! [ -x \"$(command -v pip)\" ]; then\n python3 -m ensurepip ||\
\ python3 -m ensurepip --user || apt-get install python3-pip\nfi\n\nPIP_DISABLE_PIP_VERSION_CHECK=1\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.4.0'\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.11.0'\
\ '--no-deps' 'typing-extensions>=3.7.4,<5; python_version<\"3.9\"' && \"\
$0\" \"$@\"\n"
- sh
Expand Down Expand Up @@ -205,7 +205,7 @@ root:
taskInfo:
name: get-pvc-name
schemaVersion: 2.1.0
sdkVersion: kfp-2.4.0
sdkVersion: kfp-2.11.0
---
platforms:
kubernetes:
Expand All @@ -214,6 +214,10 @@ platforms:
exec-comp:
pvcMount:
- mountPath: /data
pvcNameParameter:
taskOutputParameter:
outputParameterKey: name
producerTask: createpvc
taskOutputParameter:
outputParameterKey: name
producerTask: createpvc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ deploymentSpec:
- -c
- "\nif ! [ -x \"$(command -v pip)\" ]; then\n python3 -m ensurepip ||\
\ python3 -m ensurepip --user || apt-get install python3-pip\nfi\n\nPIP_DISABLE_PIP_VERSION_CHECK=1\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.7.0'\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.11.0'\
\ '--no-deps' 'typing-extensions>=3.7.4,<5; python_version<\"3.9\"' && \"\
$0\" \"$@\"\n"
- sh
Expand Down Expand Up @@ -46,7 +46,7 @@ root:
taskInfo:
name: comp
schemaVersion: 2.1.0
sdkVersion: kfp-2.7.0
sdkVersion: kfp-2.11.0
---
platforms:
kubernetes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ deploymentSpec:
- -c
- "\nif ! [ -x \"$(command -v pip)\" ]; then\n python3 -m ensurepip ||\
\ python3 -m ensurepip --user || apt-get install python3-pip\nfi\n\nPIP_DISABLE_PIP_VERSION_CHECK=1\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.6.0'\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.11.0'\
\ '--no-deps' 'typing-extensions>=3.7.4,<5; python_version<\"3.9\"' && \"\
$0\" \"$@\"\n"
- sh
Expand Down Expand Up @@ -46,7 +46,7 @@ root:
taskInfo:
name: comp
schemaVersion: 2.1.0
sdkVersion: kfp-2.6.0
sdkVersion: kfp-2.11.0
---
platforms:
kubernetes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ deploymentSpec:
- -c
- "\nif ! [ -x \"$(command -v pip)\" ]; then\n python3 -m ensurepip ||\
\ python3 -m ensurepip --user || apt-get install python3-pip\nfi\n\nPIP_DISABLE_PIP_VERSION_CHECK=1\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.7.0'\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.11.0'\
\ '--no-deps' 'typing-extensions>=3.7.4,<5; python_version<\"3.9\"' && \"\
$0\" \"$@\"\n"
- sh
Expand Down Expand Up @@ -46,7 +46,7 @@ root:
taskInfo:
name: comp
schemaVersion: 2.1.0
sdkVersion: kfp-2.7.0
sdkVersion: kfp-2.11.0
---
platforms:
kubernetes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ deploymentSpec:
- -c
- "\nif ! [ -x \"$(command -v pip)\" ]; then\n python3 -m ensurepip ||\
\ python3 -m ensurepip --user || apt-get install python3-pip\nfi\n\nPIP_DISABLE_PIP_VERSION_CHECK=1\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.6.0'\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.11.0'\
\ '--no-deps' 'typing-extensions>=3.7.4,<5; python_version<\"3.9\"' && \"\
$0\" \"$@\"\n"
- sh
Expand Down Expand Up @@ -46,7 +46,7 @@ root:
taskInfo:
name: comp
schemaVersion: 2.1.0
sdkVersion: kfp-2.6.0
sdkVersion: kfp-2.11.0
---
platforms:
kubernetes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ deploymentSpec:
- -c
- "\nif ! [ -x \"$(command -v pip)\" ]; then\n python3 -m ensurepip ||\
\ python3 -m ensurepip --user || apt-get install python3-pip\nfi\n\nPIP_DISABLE_PIP_VERSION_CHECK=1\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.4.0'\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.11.0'\
\ '--no-deps' 'typing-extensions>=3.7.4,<5; python_version<\"3.9\"' && \"\
$0\" \"$@\"\n"
- sh
Expand Down Expand Up @@ -46,7 +46,7 @@ root:
taskInfo:
name: comp
schemaVersion: 2.1.0
sdkVersion: kfp-2.4.0
sdkVersion: kfp-2.11.0
---
platforms:
kubernetes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ deploymentSpec:
- -c
- "\nif ! [ -x \"$(command -v pip)\" ]; then\n python3 -m ensurepip ||\
\ python3 -m ensurepip --user || apt-get install python3-pip\nfi\n\nPIP_DISABLE_PIP_VERSION_CHECK=1\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.4.0'\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.11.0'\
\ '--no-deps' 'typing-extensions>=3.7.4,<5; python_version<\"3.9\"' && \"\
$0\" \"$@\"\n"
- sh
Expand Down Expand Up @@ -46,7 +46,7 @@ root:
taskInfo:
name: comp
schemaVersion: 2.1.0
sdkVersion: kfp-2.4.0
sdkVersion: kfp-2.11.0
---
platforms:
kubernetes:
Expand All @@ -58,3 +58,6 @@ platforms:
- envVar: SECRET_VAR
secretKey: password
secretName: my-secret
secretNameParameter:
runtimeValue:
constant: my-secret
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ deploymentSpec:
- -c
- "\nif ! [ -x \"$(command -v pip)\" ]; then\n python3 -m ensurepip ||\
\ python3 -m ensurepip --user || apt-get install python3-pip\nfi\n\nPIP_DISABLE_PIP_VERSION_CHECK=1\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.4.0'\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.11.0'\
\ '--no-deps' 'typing-extensions>=3.7.4,<5; python_version<\"3.9\"' && \"\
$0\" \"$@\"\n"
- sh
Expand Down Expand Up @@ -46,7 +46,7 @@ root:
taskInfo:
name: comp
schemaVersion: 2.1.0
sdkVersion: kfp-2.4.0
sdkVersion: kfp-2.11.0
---
platforms:
kubernetes:
Expand All @@ -55,5 +55,8 @@ platforms:
exec-comp:
secretAsVolume:
- mountPath: /mnt/my_vol
optional: false
secretName: my-secret
optional: False
secretNameParameter:
runtimeValue:
constant: my-secret
4 changes: 2 additions & 2 deletions kubernetes_platform/python/test/snapshot/data/timeout.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ deploymentSpec:
- -c
- "\nif ! [ -x \"$(command -v pip)\" ]; then\n python3 -m ensurepip ||\
\ python3 -m ensurepip --user || apt-get install python3-pip\nfi\n\nPIP_DISABLE_PIP_VERSION_CHECK=1\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.6.0'\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.11.0'\
\ '--no-deps' 'typing-extensions>=3.7.4,<5; python_version<\"3.9\"' && \"\
$0\" \"$@\"\n"
- sh
Expand Down Expand Up @@ -46,7 +46,7 @@ root:
taskInfo:
name: comp
schemaVersion: 2.1.0
sdkVersion: kfp-2.6.0
sdkVersion: kfp-2.11.0
---
platforms:
kubernetes:
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_platform/python/test/snapshot/data/toleration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ deploymentSpec:
- -c
- "\nif ! [ -x \"$(command -v pip)\" ]; then\n python3 -m ensurepip ||\
\ python3 -m ensurepip --user || apt-get install python3-pip\nfi\n\nPIP_DISABLE_PIP_VERSION_CHECK=1\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.6.0'\
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.11.0'\
\ '--no-deps' 'typing-extensions>=3.7.4,<5; python_version<\"3.9\"' && \"\
$0\" \"$@\"\n"
- sh
Expand Down Expand Up @@ -46,7 +46,7 @@ root:
taskInfo:
name: comp
schemaVersion: 2.1.0
sdkVersion: kfp-2.6.0
sdkVersion: kfp-2.11.0
---
platforms:
kubernetes:
Expand Down
Loading

0 comments on commit 804cb2d

Please sign in to comment.