From fe41873f1da9ce2f307f86967b9d71492f86ddca Mon Sep 17 00:00:00 2001 From: Scott Rigby Date: Fri, 28 Aug 2020 07:58:47 -0400 Subject: [PATCH] Keep default endpoint hub.helm.sh, so the helm org controls the domain. At least until artifacthub moves to CNCF incubation Signed-off-by: Scott Rigby --- cmd/helm/search_hub.go | 2 +- internal/monocular/client_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/helm/search_hub.go b/cmd/helm/search_hub.go index 6310f735e..82b555788 100644 --- a/cmd/helm/search_hub.go +++ b/cmd/helm/search_hub.go @@ -68,7 +68,7 @@ func newSearchHubCmd(out io.Writer) *cobra.Command { } f := cmd.Flags() - f.StringVar(&o.searchEndpoint, "endpoint", "https://artifacthub.io", "Hub instance to query for charts") + f.StringVar(&o.searchEndpoint, "endpoint", "https://hub.helm.sh", "Hub instance to query for charts") f.UintVar(&o.maxColWidth, "max-col-width", 50, "maximum column width for output table") bindOutputFlag(cmd, &o.outputFormat) diff --git a/internal/monocular/client_test.go b/internal/monocular/client_test.go index 80d8eb8c6..abf914ef5 100644 --- a/internal/monocular/client_test.go +++ b/internal/monocular/client_test.go @@ -21,11 +21,11 @@ import ( ) func TestNew(t *testing.T) { - c, err := New("https://artifacthub.io") + c, err := New("https://hub.helm.sh") if err != nil { t.Errorf("error creating client: %s", err) } - if c.BaseURL != "https://artifacthub.io" { - t.Errorf("incorrect BaseURL. Expected \"https://artifacthub.io\" but got %q", c.BaseURL) + if c.BaseURL != "https://hub.helm.sh" { + t.Errorf("incorrect BaseURL. Expected \"https://hub.helm.sh\" but got %q", c.BaseURL) } }