-
-
Notifications
You must be signed in to change notification settings - Fork 259
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
"needs:" dependency does not work if kubecontext contains a forward slash #203
Comments
@fbordallo please show your command? |
Yes, sorry. I thought it was enough info. helmfilebug.yaml: releases:
- name: releaseA
namespace: kube-system
kubeContext: arn:aws:eks:eu-central-1:123456789:cluster/mycluster
installed: true
chart: ../../../../charts/cluster
labels:
name: cluster-support
version: 0.1.0
- name: releaseB
namespace: prod
kubeContext: arn:aws:eks:eu-central-1:123456789:cluster/mycluster
installed: true
chart: ../../../../charts/namespace
labels:
name: namespace-support
version: 0.1.0
needs:
- arn:aws:eks:eu-central-1:123456789:cluster/mycluster/kube-system/releaseA
Command run:
|
Thanks for reporting! Helmfile usese I think a way to fix this would be to change the separator between the internal id components to something that doesn't intersect with the characters allowed in kubecontext, ns name, and the release name.. or maybe make it possible to use a Go struct rather than a Go string as the identifier. For the latter, we might need to somehow enhance https://github.com/variantdev/dag, which Helmfile uses under the hood to calculate the dep graph of needs. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Operating system
Ubuntu 20.04
Helmfile Version
v0.144.0
Helm Version
version.BuildInfo{Version:"v3.7.0", GitCommit:"eeac83883cb4014fe60267ec6373570374ce770b", GitTreeState:"clean", GoVersion:"go1.16.8"}
Bug description
This issue was mentioned at roboll/helmfile#2048 (comment) .
Helmfile fails to evaluate a needs: dependency correctly if the entry has KUBECONTEXT/NAMESPACE/RELEASE_NAME structure and KUBECONTEXT contains a forward slash.
AWS EKS Cluster context names usually have this structure: arn:aws:eks:AWS_REGION:AWS_ACCOUNT:cluster/CLUSTER_NAME.
Example helmfile.yaml
Error message you've seen (if any)
Steps to reproduce
N/A
Relevant discussion
No response
The text was updated successfully, but these errors were encountered: