From 4daf2a52bde4f278db2d22eadc53b460f130ab6c Mon Sep 17 00:00:00 2001 From: Jeremy Lewi Date: Tue, 21 Jan 2020 22:08:50 -0800 Subject: [PATCH] Define a v0.8 release * Update applications.yaml with a v0.8 release. * The purpose of this PR is to check that just by defining the appropriate release we can begin building images from release branches and updating the release branch of kubeflow/manifests * Related to kubeflow/testing#450 - Continuous delivery of Kubeflow applications --- apps-cd/applications.yaml | 23 +++++++++++++++++++++++ apps-cd/pipelines/base/deployment.yaml | 6 +++++- apps-cd/pipelines/base/kustomization.yaml | 5 +++-- 3 files changed, 31 insertions(+), 3 deletions(-) diff --git a/apps-cd/applications.yaml b/apps-cd/applications.yaml index 5865f3ca7..49c0f61f5 100644 --- a/apps-cd/applications.yaml +++ b/apps-cd/applications.yaml @@ -96,5 +96,28 @@ versions: params: - name: revision value: master + - name: url + value: git@github.com:kubeflow/manifests.git + # Define a v0-8 release + # This is primarily so we can test that the CI/CD infrastructure is workin + # with release branches. We don't plan on actually releasing 0.8 + - name: v0-8 + # A tag to prefix image names with + tag: "v0.8.0" + repos: + - name: kubeflow + resourceSpec: + type: git + params: + - name: revision + value: v0.8-branch + - name: url + value: git@github.com:kubeflow/kubeflow.git + - name: manifests + resourceSpec: + type: git + params: + - name: revision + value: v0.8-branch - name: url value: git@github.com:kubeflow/manifests.git \ No newline at end of file diff --git a/apps-cd/pipelines/base/deployment.yaml b/apps-cd/pipelines/base/deployment.yaml index fa3cb4cf4..9d53067ce 100644 --- a/apps-cd/pipelines/base/deployment.yaml +++ b/apps-cd/pipelines/base/deployment.yaml @@ -32,7 +32,11 @@ spec: - run # repo_dir is the directory where kubeflow testing should be checked out to - --repo_dir=/launcher_src/kubeflow/testing - - --repo=https://github.com/kubeflow/testing.git + # repo is the code to check out to get the configuration as well as code for + # launching the applications + #- --repo=https://github.com/kubeflow/testing.git + # TODO(jlewi): Do not submit this is only for debugging + - --repo=https://github.com/jlewi/testing.git?ref=cicd_0.8 # Extra arguments to be passed to update_kf_apps.py - --namespace=kf-releasing - --config=/launcher_src/kubeflow/testing/apps-cd/applications.yaml diff --git a/apps-cd/pipelines/base/kustomization.yaml b/apps-cd/pipelines/base/kustomization.yaml index e45c0c5ea..476ea03e6 100644 --- a/apps-cd/pipelines/base/kustomization.yaml +++ b/apps-cd/pipelines/base/kustomization.yaml @@ -1,8 +1,9 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization images: -- name: gcr.io/kubeflow-releasing/update_kf_apps - newName: gcr.io/kubeflow-releasing/update_kf_apps +- digest: sha256:3c9360314639724f4b5e1b675673186b9bad726852b2bc1d5bd14951b6ffd26c + name: gcr.io/kubeflow-releasing/update_kf_apps + newName: gcr.io/kubeflow-releasing/update_kf_apps:043da55-dirty resources: - service-account.yaml - deployment.yaml