code: func (r *ChartRepository) setCredentials() {
  	if t, ok := r.Client.(*getter.HttpGetter); ok {
  		t.SetCredentials(r.Config.Username, r.Config.Password)
  	}
  }
docs: // If HttpGetter is used, this method sets the configured repository credentials on the HttpGetter.