Comments (13)
Maybe this could mostly be accomplished by allowing the name field to be a regular expression?
from kustomize.
The idea in #122 can help this. If kustomize provides to way to declare a user defined transformation and use that, this transformation can will be applied during kustomize build
. To patch multiple objects with one patch, you only need to provide a proper transformer.
from kustomize.
I love this idea/feature as well. I work on mono-repo project where we manage kubernetes spec for 30 microservice. We have templated everything in spec so that adding new service is a breeze. Templating logic is so complicated we have decided to move away from that approach and start evaluating tools like Kompose. Kompose doesn't fit for the project structure as the selector for deployment works by metadata->name and I will end up overlays for each service and lots of duplication
from kustomize.
Does seem to make sense to be able to target resources with something other than name, label perhaps.
The README relates kustomize to sed it's like sed, in that it emits editted text.
, which is a great comparison, and is how i want it to work, but unless i'm missing something I can't use arbitrary values to target things for overlays? Name, label, or even just type would be great. I'd like to be as generic as possible.
from kustomize.
Regardless of the patches or transformation. The original request is to ask an easy way to update the container image name wherever it is used.
from kustomize.
@Liujingfang1 actually, I was concerned about transforming/sharing multiple pod values, not just the container name.
from kustomize.
@bickfordb What pod values you need to update? Can you give an example?
from kustomize.
I think there are 2 issues here:
- Write patches that can match label / names
- Support a simple way to update images without a patch
from kustomize.
I think there are 2 issues here:
Write patches that can match label / names
This can be solved by #122
Support a simple way to update images without a patch
This is supported by imageTags
. See the imageTags demo
from kustomize.
@Liujingfang1 are you particularly opposed to allowing patches to match on a label based selector?
from kustomize.
This is supported by imageTags. See the imageTags demo
The link is dead:
https://github.com/kubernetes-sigs/kustomize/blob/master/examples/imageTags.md
from kustomize.
@bickfordb This issue was closed because of it's name and the introduction of set imageTag command.
The notion of applying patches guided by a label based selection could certainly be opened as a new issue.
As could the If you have time, please look at the conversation in #300 (less so the one in #169) and feel free to comment. It's closely related so some of what you mentioned above w/r (outside the scope of changing only the image tag).
from kustomize.
👍
from kustomize.
Related Issues (20)
- Exec KRM function in 'generators:' don't get passed items from 'resources:' via ResourceList['items'] HOT 1
- nameReference transformer is not updating fields in all configured resource kinds HOT 1
- namespace transformer ignore "create" option if set to false HOT 2
- Replacements should support an inline value as a source HOT 2
- Support for patch files hosted in git repos HOT 2
- Changing .kind breaks nameReference transformer (at least) HOT 2
- Large Binary Size Increase due to Dependencies on Go's Dynamic Plugin Loader HOT 1
- Semver parsing does not terminate CRLF making it returns v0.0.0 when parsing HOT 4
- Labels support for Transformer Configurations HOT 8
- Container section gets overrriden when patching CronJob (batch/v1) HOT 1
- Replacements in components does not behave as expected HOT 9
- Add verbose and/or debug logging to kustomize command HOT 1
- git retrieval failures (such as a timeout) are not reported in certain scenarios HOT 2
- Bases deprecated - multiple resources in kustomization.yaml causes previous to be overwritten HOT 4
- Document the `fields` option for the `labels` built-in transformer HOT 4
- patches cause an error with $patch:delete in files with multiple patches HOT 1
- Documentation site not indexed by search engines HOT 2
- Buil fails when using components and strategic merge patch and null node HOT 2
- kustomize install from binaries with curl no longer working HOT 1
- `kustomize` should leave all ConfigMap values as quoted strings, since no other type is legal. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kustomize.