-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
operator-sdk failes to Initialize a new project when parent helm chart contains dependent charts #6557
Comments
This issue was raised earlier but not resolved - #6184 |
Seems like a duplicate of #2942, which we triaged and found to be an issue with upstream helm libraries (that remains unresolved). Apparently, it's not that widespread. Regardless there are a few workarounds proposed there. Do any of those work for you? |
@joelanford , one of the workarounds includes using |
Can you do both of the following?
|
@joelanford Yeah I've tried it. Now there is a different issue with this approach. If we remove the dependencies from parent chart, than the customizations we've made in sub-charts doesn't work. |
Can you be more specific? What kinds of customizations are being made? And what doesn't work? |
@joelanford If you look at this example: https://github.com/r4rajat/operator-sdk-bug-2 If we remove the |
You've actually run this and tested it out? In your root CR, you should be able to set |
Yes, If you try |
Perhaps the original context of this issue has run its course? It seems like leaving sub-chart directories within the parent chart's Now it sounds like you may have a separate issue about how sub-charts are incorrectly enabled? Can we close this and start a new issue about that? |
Sure @joelanford , I'll close this one and raise another issue. |
@joelanford, I've created another issue: #6575 |
Bug Report
While initializing a new project using a helm chart, which contains dependent charts: It fails.
Sample helm operator demonstrating the problem: https://github.com/r4rajat/operator-sdk-bug
What did you do?
Trying to initialize a New Project using
operator-sdk init
on the repository mentioned above.The Parent Helm Chart has Dependency on Grafana, which is stored in charts folder locally.
What did you expect to see?
Successfull execution of the command
What did you see instead? Under which circumstances?
Environment
Operator type:
/language helm
Kubernetes cluster type:
The type of cluster used for testing/deployment: OpenShift v4.12.25
$ operator-sdk version
operator-sdk version: "v1.31.0", commit: "e67da35ef4fff3e471a208904b2a142b27ae32b1", kubernetes version: "1.26.0", go version: "go1.19.11", GOOS: "linux", GOARCH: "amd64"
$ go version
(if language is Go)go version go1.20.6 linux/amd64
$ kubectl version
Client Version: v1.28.0
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.25.11+1485cc9
WARNING: version difference between client (1.28) and server (1.25) exceeds the supported minor version skew of +/-1
Possible Solution
Additional context
#6184
The text was updated successfully, but these errors were encountered: