Skip to content

Commit 867097b

Browse files
committed
update
Signed-off-by: Michelle Nguyen <michellenguyen@pixielabs.ai>
1 parent fb743d9 commit 867097b

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/vizier/services/cloud_connector/bridge/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ spec:
8181
serviceAccountName: pl-updater-service-account
8282
containers:
8383
- name: updater
84-
image: gcr.io/pixie-oss/pixie-dev/vizier/vizier_updater_image:__VIZIER_UPDATER_IMAGE_TAG__
84+
image: gcr.io/pixie-oss/pixie-prod/vizier/vizier_updater_image
8585
envFrom:
8686
- configMapRef:
8787
name: pl-cloud-config

src/vizier/services/cloud_connector/bridge/vzinfo.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -512,12 +512,9 @@ func (v *K8sVizierInfo) ParseJobYAML(yamlStr string, imageTag map[string]string,
512512
imgPath := imgTag[0]
513513

514514
tagVers := semver.MustParse(val)
515-
516-
repoPath := publicImageRepo
517-
if len(tagVers.Pre) > 0 {
518-
repoPath = privateImageRepo
515+
if len(tagVers.Pre) > 0 && strings.HasPrefix(imgPath, publicImageRepo) {
516+
imgPath = strings.Replace(imgPath, publicImageRepo, privateImageRepo, 1)
519517
}
520-
imgPath = repoPath + imgPath[strings.Index(imgPath, "/vizier/"):]
521518

522519
job.Spec.Template.Spec.Containers[i].Image = imgPath + ":" + val
523520
}

0 commit comments

Comments
 (0)