Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Michelle Nguyen <[email protected]>
  • Loading branch information
aimichelle committed Jun 23, 2023
1 parent fb743d9 commit 867097b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/vizier/services/cloud_connector/bridge/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ spec:
serviceAccountName: pl-updater-service-account
containers:
- name: updater
image: gcr.io/pixie-oss/pixie-dev/vizier/vizier_updater_image:__VIZIER_UPDATER_IMAGE_TAG__
image: gcr.io/pixie-oss/pixie-prod/vizier/vizier_updater_image
envFrom:
- configMapRef:
name: pl-cloud-config
Expand Down
7 changes: 2 additions & 5 deletions src/vizier/services/cloud_connector/bridge/vzinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,12 +512,9 @@ func (v *K8sVizierInfo) ParseJobYAML(yamlStr string, imageTag map[string]string,
imgPath := imgTag[0]

tagVers := semver.MustParse(val)

repoPath := publicImageRepo
if len(tagVers.Pre) > 0 {
repoPath = privateImageRepo
if len(tagVers.Pre) > 0 && strings.HasPrefix(imgPath, publicImageRepo) {
imgPath = strings.Replace(imgPath, publicImageRepo, privateImageRepo, 1)
}
imgPath = repoPath + imgPath[strings.Index(imgPath, "/vizier/"):]

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

0 comments on commit 867097b

Please sign in to comment.