Skip to content

Commit 2569f8c

Browse files
committed
chore: s/anonymous/library
1 parent 919997b commit 2569f8c

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

cmd/buildtools/addon.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func (c *addonComponent) resolveUpstreamImageRepoAndTag(ctx context.Context, ima
7878
tag := fmt.Sprintf("%s-%s@%s", TagFromImage(image), arch, digest)
7979

8080
repo := FamiliarImageName(RemoveTagFromImage(image))
81-
repo = addProxyAnonymousPrefix(repo)
81+
repo = addProxyPrefix(repo)
8282

8383
return repo, tag, nil
8484
}
@@ -113,7 +113,7 @@ func (c *addonComponent) resolveCustomImageRepoAndTag(ctx context.Context, image
113113
tag := fmt.Sprintf("%s-%s@%s", TagFromImage(customImage), arch, digest)
114114

115115
repo := FamiliarImageName(RemoveTagFromImage(customImage))
116-
repo = addProxyAnonymousPrefix(repo)
116+
repo = addProxyPrefix(repo)
117117

118118
return repo, tag, nil
119119
}
@@ -132,7 +132,7 @@ func (c *addonComponent) resolveApkoImageRepoAndTag(ctx context.Context, arch st
132132
tag := fmt.Sprintf("%s-%s@%s", TagFromImage(builtImage), arch, digest)
133133

134134
repo := FamiliarImageName(RemoveTagFromImage(builtImage))
135-
repo = addProxyAnonymousPrefix(repo)
135+
repo = addProxyPrefix(repo)
136136

137137
return repo, tag, nil
138138
}

cmd/buildtools/embeddedclusteroperator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ var updateOperatorAddonCommand = &cli.Command{
6767
} else {
6868
chartURL = "proxy.replicated.com/library/embedded-cluster-operator"
6969
}
70-
chartURL = addProxyAnonymousPrefix(chartURL)
70+
chartURL = addProxyPrefix(chartURL)
7171
chartURL = fmt.Sprintf("oci://%s", chartURL)
7272

7373
imageOverride := os.Getenv("INPUT_OPERATOR_IMAGE")

cmd/buildtools/openebs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ var updateOpenEBSAddonCommand = &cli.Command{
9797
}
9898

9999
upstream := fmt.Sprintf("%s/openebs", os.Getenv("CHARTS_DESTINATION"))
100-
upstream = addProxyAnonymousPrefix(upstream)
100+
upstream = addProxyPrefix(upstream)
101101
withproto := fmt.Sprintf("oci://%s", upstream)
102102

103103
linuxUtilsVersion, err := findOpenEBSLinuxUtilsVersionFromChart(hcli, withproto, nextChartVersion)

cmd/buildtools/registry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ var updateRegistryAddonCommand = &cli.Command{
7373
}
7474

7575
upstream := fmt.Sprintf("%s/docker-registry", os.Getenv("CHARTS_DESTINATION"))
76-
upstream = addProxyAnonymousPrefix(upstream)
76+
upstream = addProxyPrefix(upstream)
7777
withproto := fmt.Sprintf("oci://%s", upstream)
7878

7979
logrus.Infof("updating registry images")

cmd/buildtools/seaweedfs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ var updateSeaweedFSAddonCommand = &cli.Command{
7070
}
7171

7272
upstream := fmt.Sprintf("%s/seaweedfs", os.Getenv("CHARTS_DESTINATION"))
73-
upstream = addProxyAnonymousPrefix(upstream)
73+
upstream = addProxyPrefix(upstream)
7474
withproto := fmt.Sprintf("oci://%s", upstream)
7575

7676
logrus.Infof("updating seaweedfs images")

cmd/buildtools/utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,9 +562,9 @@ func getLatestImageNameAndTag(ctx context.Context, ref string, constraints *semv
562562
return fmt.Sprintf("%s:%s", ref, tag), nil
563563
}
564564

565-
func addProxyAnonymousPrefix(image string) string {
565+
func addProxyPrefix(image string) string {
566566
if strings.HasPrefix(image, "proxy.replicated.com/") {
567567
return image
568568
}
569-
return fmt.Sprintf("proxy.replicated.com/anonymous/%s", image)
569+
return fmt.Sprintf("proxy.replicated.com/library/%s", image)
570570
}

cmd/buildtools/velero.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ var updateVeleroAddonCommand = &cli.Command{
9393
}
9494

9595
upstream := fmt.Sprintf("%s/velero", os.Getenv("CHARTS_DESTINATION"))
96-
upstream = addProxyAnonymousPrefix(upstream)
96+
upstream = addProxyPrefix(upstream)
9797
withproto := fmt.Sprintf("oci://%s", upstream)
9898

9999
veleroVersion, err := findVeleroVersionFromChart(c.Context, hcli, withproto, nextChartVersion)

0 commit comments

Comments
 (0)