Skip to content

Commit

Permalink
argo s3 artifact repository configuration added (kubeflow#2238)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrzostowski authored and k8s-ci-robot committed Jan 8, 2019
1 parent 51a3a81 commit 5f5426a
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
34 changes: 33 additions & 1 deletion kubeflow/argo/argo.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,39 @@
local workflowControllerConfigmap = {
apiVersion: "v1",
data: {
config: @"executorImage: " + params.executorImage,
config: std.format(|||
{
executorImage: %s,
artifactRepository:
{
s3: {
bucket: %s,
keyPrefix: %s,
endpoint: %s,
insecure: %s,
accessKeySecret: {
name: %s,
key: %s
},
secretKeySecret: {
name: %s,
key: %s
}
}
}
}
|||,
[
params.executorImage,
params.artifactRepositoryBucket,
params.artifactRepositoryKeyPrefix,
params.artifactRepositoryEndpoint,
params.artifactRepositoryInsecure,
params.artifactRepositoryAccessKeySecretName,
params.artifactRepositoryAccessKeySecretKey,
params.artifactRepositorySecretKeySecretName,
params.artifactRepositorySecretKeySecretKey,
]),
},
kind: "ConfigMap",
metadata: {
Expand Down
8 changes: 8 additions & 0 deletions kubeflow/argo/prototypes/argo.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
// @optionalParam workflowControllerImage string argoproj/workflow-controller:v2.2.0 workflowControllerImage
// @optionalParam uiImage string argoproj/argoui:v2.2.0 uiImage
// @optionalParam executorImage string argoproj/argoexec:v2.2.0 executorImage
// @optionalParam artifactRepositoryKeyPrefix string artifacts artifactRepositoryKeyPrefix
// @optionalParam artifactRepositoryEndpoint string minio-service.kubeflow:9000 artifactRepositoryEndpoint
// @optionalParam artifactRepositoryBucket string mlpipeline artifactRepositoryBucket
// @optionalParam artifactRepositoryInsecure string true artifactRepositoryInsecure
// @optionalParam artifactRepositoryAccessKeySecretName string mlpipeline-minio-artifact artifactRepositoryAccessKeySecretName
// @optionalParam artifactRepositoryAccessKeySecretKey string accesskey artifactRepositoryAccessKeySecretKey
// @optionalParam artifactRepositorySecretKeySecretName string mlpipeline-minio-artifact artifactRepositorySecretKeySecretName
// @optionalParam artifactRepositorySecretKeySecretKey string secretkey artifactRepositorySecretKeySecretKey

local argo = import "kubeflow/argo/argo.libsonnet";
local instance = argo.new(env, params);
Expand Down

0 comments on commit 5f5426a

Please sign in to comment.