Skip to content

Commit fd33856

Browse files
authored
Merge pull request opendatahub-io#11 from kubeflow/master
[pull] master from kubeflow:master
2 parents 743f436 + 1abffb6 commit fd33856

File tree

168 files changed

+5937
-4059
lines changed

Some content is hidden

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

168 files changed

+5937
-4059
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# - The help target was derived from https://stackoverflow.com/a/35730328/5601796
1717

1818
VENV ?= .venv
19-
KFP_TEKTON_RELEASE ?= v1.2.1
19+
KFP_TEKTON_RELEASE ?= v1.3.0
2020
export VIRTUAL_ENV := $(abspath ${VENV})
2121
export PATH := ${VIRTUAL_ENV}/bin:${PATH}
2222
DOCKER_REGISTRY ?= aipipeline

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.1
1+
1.3.0

backend/src/apiserver/client/minio.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func CreateMinioClient(minioServiceHost string, minioServicePort string,
5757
return minioClient, nil
5858
}
5959

60-
func CreateMinioClientOrFatal(minioServiceHost string, minioServicePort string,
60+
func CreateObjectStoreClientOrFatal(minioServiceHost string, minioServicePort string,
6161
accessKey string, secretKey string, secure bool, region string, initConnectionTimeout time.Duration) *minio.Client {
6262
var minioClient *minio.Client
6363
var err error

backend/src/apiserver/client_manager.go

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,22 @@ import (
3535
)
3636

3737
const (
38-
minioServiceHost = "MINIO_SERVICE_SERVICE_HOST"
39-
minioServicePort = "MINIO_SERVICE_SERVICE_PORT"
40-
minioServiceRegion = "MINIO_SERVICE_REGION"
41-
minioServiceSecure = "MINIO_SERVICE_SECURE"
42-
pipelineBucketName = "MINIO_PIPELINE_BUCKET_NAME"
43-
pipelinePath = "MINIO_PIPELINE_PATH"
44-
mysqlServiceHost = "DBConfig.Host"
45-
mysqlServicePort = "DBConfig.Port"
46-
mysqlUser = "DBConfig.User"
47-
mysqlPassword = "DBConfig.Password"
48-
mysqlDBName = "DBConfig.DBName"
49-
mysqlGroupConcatMaxLen = "DBConfig.GroupConcatMaxLen"
50-
mysqlExtraParams = "DBConfig.ExtraParams"
51-
archiveLogFileName = "ARCHIVE_LOG_FILE_NAME"
52-
archiveLogPathPrefix = "ARCHIVE_LOG_PATH_PREFIX"
53-
dbConMaxLifeTime = "DBConfig.ConMaxLifeTime"
38+
objectStoreServiceHost = "MINIO_SERVICE_SERVICE_HOST"
39+
objectStoreServicePort = "MINIO_SERVICE_SERVICE_PORT"
40+
objectStoreServiceRegion = "MINIO_SERVICE_REGION"
41+
objectStoreServiceSecure = "MINIO_SERVICE_SECURE"
42+
pipelineBucketName = "MINIO_PIPELINE_BUCKET_NAME"
43+
pipelinePath = "MINIO_PIPELINE_PATH"
44+
mysqlServiceHost = "DBConfig.Host"
45+
mysqlServicePort = "DBConfig.Port"
46+
mysqlUser = "DBConfig.User"
47+
mysqlPassword = "DBConfig.Password"
48+
mysqlDBName = "DBConfig.DBName"
49+
mysqlGroupConcatMaxLen = "DBConfig.GroupConcatMaxLen"
50+
mysqlExtraParams = "DBConfig.ExtraParams"
51+
archiveLogFileName = "ARCHIVE_LOG_FILE_NAME"
52+
archiveLogPathPrefix = "ARCHIVE_LOG_PATH_PREFIX"
53+
dbConMaxLifeTime = "DBConfig.ConMaxLifeTime"
5454

5555
visualizationServiceHost = "ML_PIPELINE_VISUALIZATIONSERVER_SERVICE_HOST"
5656
visualizationServicePort = "ML_PIPELINE_VISUALIZATIONSERVER_SERVICE_PORT"
@@ -175,7 +175,7 @@ func (c *ClientManager) init() {
175175
c.resourceReferenceStore = storage.NewResourceReferenceStore(db)
176176
c.dBStatusStore = storage.NewDBStatusStore(db)
177177
c.defaultExperimentStore = storage.NewDefaultExperimentStore(db)
178-
c.objectStore = initMinioClient(common.GetDurationConfig(initConnectionTimeout))
178+
c.objectStore = initObjectStoreClient(common.GetDurationConfig(initConnectionTimeout))
179179

180180
// Use default value of client QPS (5) & burst (10) defined in
181181
// k8s.io/client-go/rest/config.go#RESTClientFor
@@ -381,32 +381,32 @@ func initMysql(driverName string, initConnectionTimeout time.Duration) string {
381381
return mysqlConfig.FormatDSN()
382382
}
383383

384-
func initMinioClient(initConnectionTimeout time.Duration) storage.ObjectStoreInterface {
385-
// Create minio client.
386-
minioServiceHost := common.GetStringConfigWithDefault(
387-
"ObjectStoreConfig.Host", os.Getenv(minioServiceHost))
388-
minioServicePort := common.GetStringConfigWithDefault(
389-
"ObjectStoreConfig.Port", os.Getenv(minioServicePort))
390-
minioServiceRegion := common.GetStringConfigWithDefault(
391-
"ObjectStoreConfig.Region", os.Getenv(minioServiceRegion))
392-
minioServiceSecure := common.GetBoolConfigWithDefault(
393-
"ObjectStoreConfig.Secure", common.GetBoolFromStringWithDefault(os.Getenv(minioServiceSecure), false))
384+
func initObjectStoreClient(initConnectionTimeout time.Duration) storage.ObjectStoreInterface {
385+
// Create client.
386+
objectStoreServiceHost := common.GetStringConfigWithDefault(
387+
"ObjectStoreConfig.Host", os.Getenv(objectStoreServiceHost))
388+
objectStoreServicePort := common.GetStringConfigWithDefault(
389+
"ObjectStoreConfig.Port", os.Getenv(objectStoreServicePort))
390+
objectStoreServiceRegion := common.GetStringConfigWithDefault(
391+
"ObjectStoreConfig.Region", os.Getenv(objectStoreServiceRegion))
392+
objectStoreServiceSecure := common.GetBoolConfigWithDefault(
393+
"ObjectStoreConfig.Secure", common.GetBoolFromStringWithDefault(os.Getenv(objectStoreServiceSecure), false))
394394
accessKey := common.GetStringConfigWithDefault("ObjectStoreConfig.AccessKey", "")
395395
secretKey := common.GetStringConfigWithDefault("ObjectStoreConfig.SecretAccessKey", "")
396396
bucketName := common.GetStringConfigWithDefault("ObjectStoreConfig.BucketName", os.Getenv(pipelineBucketName))
397397
pipelinePath := common.GetStringConfigWithDefault("ObjectStoreConfig.PipelinePath", os.Getenv(pipelinePath))
398398
disableMultipart := common.GetBoolConfigWithDefault("ObjectStoreConfig.Multipart.Disable", true)
399399

400-
minioClient := client.CreateMinioClientOrFatal(minioServiceHost, minioServicePort, accessKey,
401-
secretKey, minioServiceSecure, minioServiceRegion, initConnectionTimeout)
402-
createMinioBucket(minioClient, bucketName, minioServiceRegion)
400+
client := client.CreateObjectStoreClientOrFatal(objectStoreServiceHost, objectStoreServicePort, accessKey,
401+
secretKey, objectStoreServiceSecure, objectStoreServiceRegion, initConnectionTimeout)
402+
createBucket(client, bucketName, objectStoreServiceRegion)
403403

404-
return storage.NewMinioObjectStore(&storage.MinioClient{Client: minioClient}, bucketName, pipelinePath, disableMultipart)
404+
return storage.NewMinioObjectStore(&storage.MinioClient{Client: client}, bucketName, pipelinePath, disableMultipart)
405405
}
406406

407-
func createMinioBucket(minioClient *minio.Client, bucketName, region string) {
407+
func createBucket(client *minio.Client, bucketName, region string) {
408408
// Check to see if we already own this bucket.
409-
exists, err := minioClient.BucketExists(bucketName)
409+
exists, err := client.BucketExists(bucketName)
410410
if err != nil {
411411
glog.Fatalf("Failed to check if Minio bucket exists. Error: %v", err)
412412
}
@@ -415,7 +415,7 @@ func createMinioBucket(minioClient *minio.Client, bucketName, region string) {
415415
return
416416
}
417417
// Create bucket if it does not exist
418-
err = minioClient.MakeBucket(bucketName, region)
418+
err = client.MakeBucket(bucketName, region)
419419
if err != nil {
420420
glog.Fatalf("Failed to create Minio bucket. Error: %v", err)
421421
}

backend/src/apiserver/common/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ const (
4646
ApplyTektonCustomResource string = "APPLY_TEKTON_CUSTOM_RESOURCE"
4747
TerminateStatus string = "TERMINATE_STATUS"
4848
Path4InternalResults string = "PATH_FOR_INTERNAL_RESULTS"
49+
ObjectStoreAccessKey string = "OBJECTSTORECONFIG_ACCESSKEY"
50+
ObjectStoreSecretKey string = "OBJECTSTORECONFIG_SECRETKEY"
4951
)
5052

5153
func IsPipelineVersionUpdatedByDefault() bool {

backend/src/cache/server/mutation.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ func mutateContainer(results map[string][]*tektonv1beta1.TaskRunResult, original
297297
args := []string{}
298298
args = append(args, "printf 'This step output is taken from cache.\n\n'")
299299
for _, result := range outputs {
300-
arg := fmt.Sprintf("printf '%s: %s\n'; printf '%s' > /tekton/results/%s", result.Name, result.Value, result.Value, result.Name)
300+
arg := fmt.Sprintf("printf '%s: %s\n'; printf '%s' > /tekton/results/%s", result.Name, result.Value.StringVal, result.Value.StringVal, result.Name)
301301
args = append(args, arg)
302302
}
303303

@@ -335,7 +335,6 @@ func unmarshalResult(taskResult string) (map[string][]*tektonv1beta1.TaskRunResu
335335
if err != nil {
336336
return nil, err
337337
}
338-
339338
return results, nil
340339
}
341340

guides/kfp_tekton_install.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ To install the standalone Kubeflow Pipelines with Tekton, run the following step
5353
-p '{"data":{"enable-custom-tasks": "true"}}'
5454
```
5555

56-
3. Install Kubeflow Pipelines with Tekton backend (`kfp-tekton`) `v1.2.1` [custom resource definitions](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/)(CRDs).
56+
3. Install Kubeflow Pipelines with Tekton backend (`kfp-tekton`) `v1.3.0` [custom resource definitions](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/)(CRDs).
5757
> Note: You can ignore the error `no matches for kind "Application" in version "app.k8s.io/v1beta1"` since it's a warning saying `application` CRD is not yet ready.
5858
```shell
59-
kubectl apply --selector kubeflow/crd-install=true -f install/v1.2.1/kfp-tekton.yaml
59+
kubectl apply --selector kubeflow/crd-install=true -f install/v1.3.0/kfp-tekton.yaml
6060
```
6161

62-
4. Install Kubeflow Pipelines with Tekton backend (`kfp-tekton`) `v1.2.1` deployment
62+
4. Install Kubeflow Pipelines with Tekton backend (`kfp-tekton`) `v1.3.0` deployment
6363
```shell
64-
kubectl apply -f install/v1.2.1/kfp-tekton.yaml
64+
kubectl apply -f install/v1.3.0/kfp-tekton.yaml
6565
```
6666

6767
5. Then, if you want to expose the Kubeflow Pipelines endpoint outside the cluster, run the following commands:
@@ -91,7 +91,7 @@ To install the standalone Kubeflow Pipelines with Tekton, run the following step
9191

9292
1. Follow the [Kubeflow install instructions](https://www.kubeflow.org/docs/ibm/deploy/install-kubeflow-on-iks/#kubeflow-installation)
9393
to install the entire Kubeflow stack with `kfp-tekton`.
94-
Kubeflow `v1.5.0` uses Tekton `v0.30.0` and `kfp-tekton` `v1.1.1`. <!-- TODO update-->
94+
Kubeflow `v1.6.0` uses Tekton `v0.31.4` and `kfp-tekton` `v1.2.1`. <!-- TODO update-->
9595

9696
2. Visit [KFP Tekton User Guide](/guides/kfp-user-guide) and start learning how to use Kubeflow pipeline.
9797

0 commit comments

Comments
 (0)