yugo kobayashi
401cf9579c
update golangci-lint v1.49.0
2022-09-22 13:24:40 +00:00
Agustina Barbetta
5948f6aa63
[Address #3937 ] Add labels to template/metadata if includeTemplates is true ( #4209 )
...
* add labels in template/metadata by default
* update comment
* fix kustomization labels test
* Add spec/template/metadata/labels when includeTemplate is true
* remove unnecessary test changes
* add error wrap
* Revert "add error wrap"
This reverts commit 0a203df83edb90a400b35d5521487b984619e919.
* add error wrap at template fieldSpec merge
2022-05-05 11:24:22 -07:00
Dipto Chakrabarty
a464ed0c59
add tagsuffix to take image tag suffix ( #4364 )
...
* add tagsuffix to take image tag suffix
* add comments to warn about specifications
* add test and error handle
* fix indent
* update comment
* fix merge errors and return updates
* update image update and fix example
* fix yamls formats
remove tabs in yamls
fix space in image name
tag error in name
* fix spacing issue
format of yaml
set example as above
* spacing of spec in testing templates
* change to switch case
2022-04-14 10:00:47 -07:00
Katrina Verey
0fa010c7e7
Add missing boilerplate
2022-04-04 14:24:04 -04:00
Katrina Verey
71bf0d5d14
Update full linter list and enable some easily resolved new ones
2022-03-31 11:37:26 -04:00
Katrina Verey
14947e449b
Address new linter complaints
2022-03-31 11:37:26 -04:00
Dingzhu Lurong
b1086ac49b
fix broken link
2022-03-09 16:00:59 +08:00
Natasha Sarkar
bcebad1664
new command kustomize edit add buildmetadata ( #4413 )
...
* new command kustomize edit add buildmetadata
* new commands kustomize edit set buildmetadata and kustomize edit remove buildmetadata
2022-01-26 15:34:50 -08:00
natasha41575
9577d61167
move origin to be an attribute of KustTarget
2022-01-19 17:26:19 -08:00
natasha41575
2c23b960ff
set transformer annotation when the option is specified
2022-01-19 17:17:47 -08:00
natasha41575
2554d690c8
deprecate enable-managedby-label flag in favor of a field
2022-01-19 16:53:27 -08:00
natasha41575
a8f58b4080
collect origin data only when the option is set
2021-12-13 11:38:03 -08:00
natasha41575
d8f406d06f
add omitempty tag to replacement sources and targets
2021-11-08 12:33:30 -08:00
Natasha Sarkar
1e1b9b484a
exec function working dir is the kustomization that referenced it ( #4125 )
...
* exec function working dir is the kustomization that referenced it
* suggested changes
* more code review
* use a field instead of an annotation
* more code review
2021-08-19 20:15:24 -07:00
Natasha Sarkar
3350c7213c
option for origin data as annotation
2021-08-12 20:09:41 -07:00
Natasha Sarkar
9a27a9f19f
replace genargs with two separate annotations
2021-07-29 15:46:09 -07:00
Natasha Sarkar
91f74e8d16
replace Resource.options with annotations ( #4061 )
2021-07-23 18:19:05 -07:00
Khris Richardson
727e24f365
append AsCurrentUser to FnPluginLoadingOptions
2021-06-15 12:29:59 -07:00
Natasha Sarkar
7458a53a73
copy method for selector
2021-06-08 11:18:38 -07:00
Natasha Sarkar
cf6e6ca4db
omitempty for replacement type
2021-06-08 11:18:27 -07:00
Jeff Regan
d9435bd1b1
Merge pull request #3898 from dmizelle/add-helm-include-crds
...
Add includeCRDs Field to HelmChart
2021-05-27 16:04:07 -07:00
Natasha Sarkar
5a2a7709a4
add IAMPolicyGenerator
2021-05-26 16:54:38 -07:00
Devon Mizelle
73da51d0ac
Apply suggestions from code review
...
Co-authored-by: Steven E. Harris <seh@panix.com >
2021-05-17 12:18:33 -04:00
Devon Mizelle
df10d5a17d
Add includeCRDs Field to HelmChart
...
This commit adds functionality for a user to specify that `helm` should
include CRDs when inflating a Helm Chart.
As of Helm v3, the `install-crd` hook is no more, with
`CustomResourceDefinitions` existing in the root of the chart, under the
`crds` directory.
When calling `helm template`, `helm` does not output these CRDs unless
the user passes the `--include-crds` flag to the command.
With this commit, users can set `includeCRDs: true` as part of their helm
chart definition in `kustomize.yaml` to have these included as part of
the output.
Signed-off-by: Devon Mizelle <devon.mizelle@onepeloton.com >
2021-05-14 16:46:30 -04:00
Kubernetes Prow Robot
b8e7cf04b6
Merge pull request #3832 from cehoffman/helm-chart-namespace
...
Add ability to set target namespace for helm chart template
2021-05-11 13:09:13 -07:00
monopole
c8dddac5b9
Move resid package from api to kyaml
2021-04-30 20:39:32 -07:00
monopole
c828b1e49a
Use resid.ResId in replacements.
2021-04-23 09:30:05 -07:00
Chris Hoffman
53f78260a9
Add ability to set target namespace for helm chart template
2021-04-22 18:31:26 -05:00
Jeff Regan
06add3ab35
Merge pull request #3737 from natasha41575/ReplacementTransformer
...
replacement transformer that uses the new replacement filter
2021-04-22 11:22:51 -07:00
Kubernetes Prow Robot
21e65990c1
Merge pull request #3795 from jlandowner/master
...
Support immutable attribute on generators
2021-04-15 22:36:22 -07:00
Natasha Sarkar
038bc7713b
add replacement transformer
2021-04-15 14:12:33 -07:00
jlandowner
82ff64c374
Support immutable attribute on generators
2021-04-13 01:02:58 +00:00
monopole
240cda089a
Add flag --enable-helm
2021-04-12 13:40:21 -07:00
monopole
3af1ae4159
Enhance test harness.
2021-04-11 18:14:30 -07:00
Natasha Sarkar
a40c74e545
use field options to refine replacements
2021-04-09 11:15:49 -07:00
Natasha Sarkar
0fe3f303e8
add use of rejects field in replacement filter
2021-04-07 16:00:18 -07:00
Natasha Sarkar
94c45e0f9f
add more tests for replacement filter
2021-04-02 11:30:10 -07:00
Kubernetes Prow Robot
ca527a8e4c
Merge pull request #3735 from natasha41575/ReplacementFilter
...
add replacement filter to support replacmenttransformer
2021-03-31 18:03:21 -07:00
Natasha Sarkar
fa0b237178
add replacement filter to support replacmenttransformer
2021-03-31 17:04:43 -07:00
Jeff Regan
197bb9d9e3
Merge pull request #3744 from KnVerey/plugin-dir-error
...
Do no require exec/go plugin home to use fn plugins
2021-03-26 11:26:48 -07:00
Katrina Verey
3255c73c71
Loader FS and empty env fix
2021-03-24 18:44:29 -07:00
Donny Xia
ccb95ab269
add conflict check
2021-03-24 10:41:37 -07:00
Katrina Verey
e77c284924
Do no require exec/go plugin home to use fn plugins
2021-03-23 10:47:16 -07:00
Donny Xia
5ed2067be9
Add labels field to kustomization
2021-03-22 17:01:45 -07:00
monopole
235101a614
Drop uses of 'unstructured' terminology.
2021-03-15 15:59:06 -07:00
Natasha Sarkar
f96ac2d61e
allow general name and kind changes via an options field in patches
2021-03-10 14:58:58 -08:00
monopole
a8b851f84a
Reinstate configmap/secret generator env field.
2021-03-07 20:42:41 -08:00
Jeff Regan
61daea0202
Merge pull request #3245 from natasha41575/UseOpenApiVersions
...
Use `openApi` field in kustomization file to specify OpenAPI schema version
2021-02-03 10:35:08 -08:00
monopole
b3a9314e27
Expose smart path splitter as a utility.
2021-01-31 06:45:04 -08:00
Natasha Sarkar
866dbf2017
added an openapi field to the kustomization file
2021-01-22 16:06:57 -08:00