Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

could not download kubefed-charts 0.9.0 #1485

Closed
siyu618 opened this issue Jan 21, 2022 · 2 comments
Closed

could not download kubefed-charts 0.9.0 #1485

siyu618 opened this issue Jan 21, 2022 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@siyu618
Copy link

siyu618 commented Jan 21, 2022

What happened:
xxx@ubuntu:/kubernetes/kubefed-git$ helm repo list
NAME URL
kubefed-charts https://raw.githubusercontent.com/kubernetes-sigs/kubefed/master/charts
xxx@ubuntu:
/kubernetes/kubefed-git$ helm search repo kubefed
NAME CHART VERSION APP VERSION DESCRIPTION
kubefed-charts/kubefed 0.9.0 KubeFed helm chart
xxx@ubuntu:~/kubernetes/kubefed-git$ sudo helm --namespace kube-federation-system upgrade -i kubefed kubefed-charts/kubefed --version=0.9.0 --create-namespace --debug
history.go:56: [debug] getting history for release kubefed
Release "kubefed" does not exist. Installing it now.
install.go:178: [debug] Original chart version: "0.9.0"
Error: repo kubefed-charts not found
helm.go:88: [debug] repo kubefed-charts not found
helm.sh/helm/v3/pkg/downloader.pickChartRepositoryConfigByName
helm.sh/helm/v3/pkg/downloader/chart_downloader.go:328
helm.sh/helm/v3/pkg/downloader.(*ChartDownloader).ResolveChartVersion
helm.sh/helm/v3/pkg/downloader/chart_downloader.go:213
helm.sh/helm/v3/pkg/downloader.(*ChartDownloader).DownloadTo
helm.sh/helm/v3/pkg/downloader/chart_downloader.go:89
helm.sh/helm/v3/pkg/action.(*ChartPathOptions).LocateChart
helm.sh/helm/v3/pkg/action/install.go:753
main.runInstall
helm.sh/helm/v3/cmd/helm/install.go:194
main.newUpgradeCmd.func2
helm.sh/helm/v3/cmd/helm/upgrade.go:124
github.com/spf13/cobra.(*Command).execute
github.com/spf13/[email protected]/command.go:856
github.com/spf13/cobra.(*Command).ExecuteC
github.com/spf13/[email protected]/command.go:974
github.com/spf13/cobra.(*Command).Execute
github.com/spf13/[email protected]/command.go:902
main.main
helm.sh/helm/v3/cmd/helm/helm.go:87
runtime.main
runtime/proc.go:225
runtime.goexit
runtime/asm_amd64.s:1371

xxx@ubuntu:/kubernetes/kubefed-git$ kubefedctl version
kubefedctl version: version.Info{Version:"v0.8.1-17-g6b78e8281", GitCommit:"6b78e82816f358f5dc0fc2fcca34cf6743b29648", GitTreeState:"clean", BuildDate:"2021-11-18T10:22:53Z", GoVersion:"go1.16.6", Compiler:"gc", Platform:"linux/amd64"}
xxx@ubuntu:
/kubernetes/kubefed-git$ cat install.sh
VERSION=0.9.0
OS=linux
ARCH=amd64
curl -LO https://github.com/kubernetes-sigs/kubefed/releases/download/v${VERSION}/kubefedctl-${VERSION}-${OS}-${ARCH}.tgz
tar -zxvf kubefedctl-*.tgz
chmod u+x kubefedctl
sudo mv kubefedctl /usr/local/bin/ # make sure the location is in the PATH

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • Kubernetes version (use kubectl version)
  • KubeFed version
  • Scope of installation (namespaced or cluster)
  • Others

/kind bug

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jan 21, 2022
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 21, 2022
@jimmidyson
Copy link
Contributor

You have prefixed your helm upgrade command with sudo, which is using root account to try to run the command. helm is per-user configuration and you have not set up the kubefed repo for the root user on your machine.

Try running the upgrade command without sudo, simply helm --namespace kube-federation-system upgrade -i kubefed kubefed-charts/kubefed --version=0.9.0 --create-namespace --debug.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

4 participants