Skip to content

Commit

Permalink
Fixes after testing.
Browse files Browse the repository at this point in the history
Signed-off-by: Revital Sur <eres@il.ibm.com>
  • Loading branch information
revit13 committed Mar 11, 2024
1 parent 57b539e commit b8007b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions backend/src/v2/driver/driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ func Test_extendPodSpecPatch_Secret(t *testing.T) {
{
Name: "secret1",
VolumeSource: k8score.VolumeSource{
Secret: &k8score.SecretVolumeSource{SecretName: "secret1"},
Secret: &k8score.SecretVolumeSource{SecretName: "secret1", Optional: &[]bool{false}[0],},
},
},
},
Expand Down Expand Up @@ -727,7 +727,8 @@ func Test_extendPodSpecPatch_ConfigMap(t *testing.T) {
Name: "cm1",
VolumeSource: k8score.VolumeSource{
ConfigMap: &k8score.ConfigMapVolumeSource{
LocalObjectReference: k8score.LocalObjectReference{Name: "cm1"}},
LocalObjectReference: k8score.LocalObjectReference{Name: "cm1"},
Optional: &[]bool{false}[0],},
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_platform/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def pipeline():
mount_path='/mnt/my_vol')
```

### Secret: As mounted volume with optional field
### Secret: As optional source for a mounted volume
```python
from kfp import dsl
from kfp import kubernetes
Expand Down Expand Up @@ -113,7 +113,7 @@ def pipeline():
mount_path='/mnt/my_vol')
```

### ConfigMap: As mounted volume with optional field
### ConfigMap: As optional source for a mounted volume
```python
from kfp import dsl
from kfp import kubernetes
Expand Down

0 comments on commit b8007b2

Please sign in to comment.