-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Create a service account generator #3978
Comments
@natasha41575: This issue is currently awaiting triage. SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the The 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. |
@natasha41575 we are looking to migrate all of our GCP resource provisioning from terraform to Config Connector. Related to your comment in #3914 (comment), I was wondering if you've thought about how to manage transformer configs for such cases. For projects that expose such a large surface area of CRDs, it seems completely unmanageable for us to maintain transformer configs (like I created #4095 a few weeks ago, which I think would ultimately be a big part of the solution here too. It surprises me that this doesn't seem to be a bigger problem for people. Am I missing something or does everyone just get by with brittle transformer configs like we do? |
A bit of a sidenote, but I think this could be another use case for Catalog: instead of building transformers that implement functionality specific to a cloud provider as built-ins, these could be distributed in cloud-provider-specific Catalogs. cc @jeremyrickard |
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:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
Hi @natasha41575, Thanks |
Partly answering my own question : I've read the source code and figured out the syntax, in case this is useful to someone else : kustomization.yaml :
gkesa.yaml :
which results in this output :
Good. However, unless I'm missing something you now need a If that's correct, then I'm not convinced that this generator is a massive simplification over a In fact for such a simple resource, a generator feels like a lot of cognitive overhead for a small DRY benefit : instead of writing slightly different 7 lines long Not to mention that, in this (laudable) effort to address valid real-world use cases while still eschewing templating and unstructured edits, you guys end up having to create highly specific generators like this one for each and every common situation that Forgive me for beating a dead horse, but I think it goes to show how hard it is to work around templating, when the obvious universal solution to this entire class of problems is probably templating :) I have the utmost respect for the difficult job of upholding a software architecture vision while fielding hundreds of end user requests for exceptions, and I agree that YAML in / YAML out is a worthy goal. But I hope you can take the feedback that you're paying (and making users pay) a very high price for that goal, in the form of these absurdly complex constructs that don't even achieve as much as the simpler, less pure alternative. The eschewed features page argues that "The source yaml gets polluted with $VARs and can no longed be applied as is to the cluster (it must be processed).". I'm sorry, but while true this is purely academic : I can't think of any real world Kustomize installation where the source YAML might be applied as is to the cluster. Processing is always a given. You do list other (perhaps stronger) arguments, but the fact that you're comfortable including this one at all says a lot about your priorities, I think. Like most engineers, I intellectually admire clean software architectures and long term vision, but please consider that Kustomize is a tool that helps people to do a job, not a piece of art. If you find yourself constantly advising users to use plugins or a pre/post-processing step for use cases that 95% of them have, or (like with |
#3914 introduces a basic service account generator.
This is necessary because it has a value
gsa-name@project-id.iam.gserviceaccount.com
- where project-id must be a configurable value. GKE users currently usevars
for this, andreplacements
will be unable to do so because project-id is not delimited.We need to
If any interested users can provide some information about their use cases here, that would be very helpful.
Related issues:
Adding this to the Kustomization v1 project because it is tangentially related to vars deprecation.
The text was updated successfully, but these errors were encountered: