-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Modifying chart resources after they has been rendered #2554
Comments
I can definitely see why someone would want to have this available. Others have floated ideas to allow you to set specific attributes of a k8s manifest with an install (can't find the issue for the life of me right now). The way you have proposed it here would be difficult because you are having something out of band modify a chart and I would worry about edge cases where we lose track of the "true" manifest needed |
You mean with cli args? But it is really not clear how to provide a correct "address" of the attribute.
It is the responsibility of the user. |
Yeah, it would be a cli flag where you pass something like As for things being the responsibility of the user, I still worry about giving too much rope for people to hang themselves with. Also, I feel like it defeats the purpose of having something manage the state of the manifest if things are modified outside of it. There could be too many situations where an upgrade could stomp on it. But I could very well be wrong about my thinking |
How would you identify the resource exactly which should be modified? |
Oops, I forgot to put the resource name. It would be something like |
How do you know what particular deployment if you have multiple in your chart? Esp multiple resources of the same time in one template file? |
I think we should close this as something out of helm's scope similar to #2243. I know that If I'm wrong and there's still value in adding this feature and/or it's a relatively simple PR, please feel free to re-open! :) |
@bacongobbler generally I agree with you - but I think there are some cases where this does make sense. For example, I just used helm to install zookeeper. Everything that it sets up is fine, but the service is just a ClusterIP. In our development environment I’d like an internal load balancer setup so it can be accessed from outside the cluster. My options are, as far as I can tell:
#2/3 both feel wrong for such a simple need. #1 discourages experimentation. I could be missing something very simple though. |
Maybe this is out helm scope but there is definitely a problem with the inflexibility of official heml charts templates, I've heard this multiple times from devOps. Again I see those problems with current templates:
For my own charts I use TypeScript, which allows:
|
I think it is quite often situation when there is chart with needed service and in general it does what it should, but template is not quite flexible to to make what is exactly needed in particular case. As I understand the only option is to download chart source modify template and use these new one.
I think it would be convenient in some cases just to have script/hook that could access and make minor modification to already final resources rendered from the template, just to avoid cloning and keeping/messing with excessive chart sources.
What do you think about it? What are the problems of such approach?
The text was updated successfully, but these errors were encountered: