Skip to content

Commit

Permalink
chore: MetadataStore - Update to release metadata-envoy in each relea…
Browse files Browse the repository at this point in the history
…se (#4026)
  • Loading branch information
dushyanthsc authored and Bobgy committed Jul 2, 2020
1 parent 3243f73 commit 195a700
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .release.cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,14 @@ steps:
- name: 'gcr.io/cloud-builders/docker'
args: ['pull', 'gcr.io/$PROJECT_ID/metadata-envoy:$COMMIT_SHA']
id: 'pullMetadataEnvoy'
- id: 'tagMetadataEnvoyVersionNumber'
name: 'gcr.io/cloud-builders/docker'
args: ['tag', 'gcr.io/$PROJECT_ID/metadata-envoy:$COMMIT_SHA', 'gcr.io/ml-pipeline/metadata-envoy:$TAG_NAME']
waitFor: ['pullMetadataEnvoy']
- id: 'tagMetadataEnvoyCommitSHA'
name: 'gcr.io/cloud-builders/docker'
args: ['tag', 'gcr.io/$PROJECT_ID/metadata-envoy:$COMMIT_SHA', 'gcr.io/ml-pipeline/metadata-envoy:$COMMIT_SHA']
waitFor: ['pullMetadataEnvoy']
- name: 'gcr.io/cloud-builders/docker'
args: ['tag', 'gcr.io/$PROJECT_ID/metadata-envoy:$COMMIT_SHA', 'gcr.io/ml-pipeline/google/pipelines/metadataenvoy:$TAG_NAME']
id: 'tagMetadataEnvoyForMarketplace'
Expand Down Expand Up @@ -598,6 +606,8 @@ images:
- 'gcr.io/ml-pipeline/inverse-proxy-agent:$COMMIT_SHA'
- 'gcr.io/ml-pipeline/visualization-server:$TAG_NAME'
- 'gcr.io/ml-pipeline/visualization-server:$COMMIT_SHA'
- 'gcr.io/ml-pipeline/metadata-envoy:$TAG_NAME'
- 'gcr.io/ml-pipeline/metadata-envoy:$COMMIT_SHA'
- 'gcr.io/ml-pipeline/metadata-writer:$TAG_NAME'
- 'gcr.io/ml-pipeline/metadata-writer:$COMMIT_SHA'
- 'gcr.io/ml-pipeline/cache-server:$TAG_NAME'
Expand Down
2 changes: 2 additions & 0 deletions manifests/kustomize/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ images:
newTag: 1.0.0-rc.2
- name: gcr.io/ml-pipeline/cache-deployer
newTag: 1.0.0-rc.2
- name: gcr.io/ml-pipeline/metadata-envoy
newTag: 1.0.0-rc.2
# Used by Kustomize
configMapGenerator:
- name: pipeline-install-config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: container
image: gcr.io/ml-pipeline/envoy:metadata-grpc
image: gcr.io/ml-pipeline/metadata-envoy:dummy
ports:
- name: md-envoy
containerPort: 9090
Expand Down
5 changes: 5 additions & 0 deletions test/cloudbuild/batch_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ steps:
name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', '$_GCR_BASE/cache-deployer', '-f', 'backend/src/cache/deployer/Dockerfile', '.']
waitFor: ["-"]
- id: 'buildMetadataEnvoy'
name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', '$_GCR_BASE/metadata-envoy', '-f', 'third_party/metadata_envoy/Dockerfile', '.']
waitFor: ["-"]
options:
machineType: N1_HIGHCPU_8 # use a fast machine to build because there a lot of work
images:
Expand All @@ -53,4 +57,5 @@ images:
- "$_GCR_BASE/metadata-writer"
- "$_GCR_BASE/cache-server"
- "$_GCR_BASE/cache-deployer"
- "$_GCR_BASE/metadata-envoy"
timeout: 1800s # 30min
1 change: 1 addition & 0 deletions test/deploy-pipeline-lite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ if [ -z "$KFP_DEPLOY_RELEASE" ]; then
kustomize edit set image gcr.io/ml-pipeline/metadata-writer=${GCR_IMAGE_BASE_DIR}/metadata-writer:${GCR_IMAGE_TAG}
kustomize edit set image gcr.io/ml-pipeline/cache-server=${GCR_IMAGE_BASE_DIR}/cache-server:${GCR_IMAGE_TAG}
kustomize edit set image gcr.io/ml-pipeline/cache-deployer=${GCR_IMAGE_BASE_DIR}/cache-deployer:${GCR_IMAGE_TAG}
kustomize edit set image gcr.io/ml-pipeline/metadata-envoy=${GCR_IMAGE_BASE_DIR}/metadata-envoy:${GCR_IMAGE_TAG}
cat kustomization.yaml

kubectl apply -k .
Expand Down

0 comments on commit 195a700

Please sign in to comment.