Skip to content

Commit

Permalink
CI: Update volcano auto-updater (kubernetes#19692)
Browse files Browse the repository at this point in the history
  • Loading branch information
spowelljr authored Sep 24, 2024
1 parent 54007f4 commit 71154cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hack/update/volcano_version/update_volcano_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ func updateYAML(version string) {
klog.Fatalf("failed to read body: %v", err)
}
replacements := map[string]string{
`volcanosh\/vc-webhook-manager:.*`: "{{.CustomRegistries.vc_webhook_manager | default .ImageRepository | default .Registries.vc_webhook_manager}}{{.Images.vc_webhook_manager}}",
`volcanosh\/vc-controller-manager:.*`: "{{.CustomRegistries.vc_controller_manager | default .ImageRepository | default .Registries.vc_controller_manager}}{{.Images.vc_controller_manager}}",
`volcanosh\/vc-scheduler:.*`: "{{.CustomRegistries.vc_scheduler | default .ImageRepository | default .Registries.vc_scheduler}}{{.Images.vc_scheduler}}",
`docker\.io\/volcanosh\/vc-webhook-manager:.*`: "{{.CustomRegistries.vc_webhook_manager | default .ImageRepository | default .Registries.vc_webhook_manager}}{{.Images.vc_webhook_manager}}",
`docker\.io\/volcanosh\/vc-controller-manager:.*`: "{{.CustomRegistries.vc_controller_manager | default .ImageRepository | default .Registries.vc_controller_manager}}{{.Images.vc_controller_manager}}",
`docker\.io\/volcanosh\/vc-scheduler:.*`: "{{.CustomRegistries.vc_scheduler | default .ImageRepository | default .Registries.vc_scheduler}}{{.Images.vc_scheduler}}",
}
for re, repl := range replacements {
yaml = regexp.MustCompile(re).ReplaceAll(yaml, []byte(repl))
Expand Down

0 comments on commit 71154cc

Please sign in to comment.