-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The operartor-sdk init command fails for helm chart with bundled dependencies #6184
Comments
Operator-sdk internally uses helm's helpers to load the chart directory with the dependent sub charts ( operator-sdk/pkg/helm/release/manager_factory.go Lines 75 to 78 in b158b7e
failed to fetch chart dependencies: directory /repo/helm-charts/k10/charts/grafana not found I'm not sure if this is an issue with the input. Can you try helm template command to check if it works locally (https://helm.sh/docs/helm/helm_template/)
|
The most common reason this happens is you need to have all the dependencies downloaded locally on disk. That might fix your problem, if it doesn't please let us know. |
The problem is that the The helm chart I am using has both the sub-charts in their directories. The chart is valid since I can install the product using the command below...
You should be able to reproduce this issue by running
|
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
same probelm, is there any progress |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Can this issue be reopened? We are facing the same problem. |
Bug Report
What did you do?
Ran the
operator-sdk
init command against a helm chart which has bundled sub-charts and the mainChart.yaml
file has thedependencies
entry specified with thefile://
address resolver.Command
The
/repo/helm/k10/Chart.yaml
fileWhat did you expect to see?
Expected the
operator-sdk init
command to work successfully.What did you see instead? Under which circumstances?
The
operator-sdk init
command failed.It looks like the
operator-sdk init
command copies the bundled sub-charts as.tgz
files under the generatedhelm-charts
folder and the internally calledoperator-sdk create api
command fails to pick up the sub-charts since the dependencies repository locations in theChart.yaml
file are no longer resolvable.Complete logs...
Environment
Operator type:
/language helm
Kubernetes cluster type:
OpenShift 4.10.17
$ operator-sdk version
operator-sdk version: "v1.24.1", commit: "1a1c56f7d0c7cfcc16e1ff2140caaa6d831b669b", kubernetes version: "1.24.2", go version: "go1.18.7", GOOS: "linux", GOARCH: "amd64"
$ go version
(if language is Go)go version go1.19.3 linux/amd64
$ kubectl version
Possible Solution
Additional context
The text was updated successfully, but these errors were encountered: