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
Kubernetes Prow Robot
af96bb4bda
Merge pull request #3914 from natasha41575/GkeServiceAccountGenerator
...
Gke service account generator
2021-05-27 15:36:23 -07:00
Natasha Sarkar
5a2a7709a4
add IAMPolicyGenerator
2021-05-26 16:54:38 -07:00
Jeff Regan
36408a120c
Update HelmChartInflationGenerator.go
2021-05-19 17:34:44 -07: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
monopole
5c4e363f11
Remove delegation to RNode in Resource.
2021-05-11 10:49:17 -07:00
monopole
01ddeb476d
Introduce resmap.ApplyFilter.
2021-05-10 20:47:57 -07:00
monopole
82abd7e9ea
Simplify kind and name change code.
2021-05-09 16:20:39 -07:00
monopole
c8dddac5b9
Move resid package from api to kyaml
2021-04-30 20:39:32 -07:00
monopole
3a508da641
Pin to kyaml/v0.10.18
2021-04-30 17:39:24 -07:00
Natasha Sarkar
038bc7713b
add replacement transformer
2021-04-15 14:12:33 -07:00
monopole
240cda089a
Add flag --enable-helm
2021-04-12 13:40:21 -07:00
monopole
6f6d41f17f
Remove dead merge conflict code.
2021-03-17 06:35:30 -07:00
Donny Xia
a9c20a2eb7
handle helm output properly
2021-03-16 13:09:04 -07:00
monopole
74d5646526
Allow patch removal of emptyDir {}
2021-03-15 18:34:36 -07:00
monopole
235101a614
Drop uses of 'unstructured' terminology.
2021-03-15 15:59:06 -07:00
monopole
123a5d6e56
Remove the wrappy layer.
2021-03-15 15:59:06 -07:00
Jeff Regan
e4bbd04a43
Merge pull request #3644 from natasha41575/AllowGeneralNameChanges
...
allow general name and kind changes via an options field in patches
2021-03-15 15:49:04 -07:00
Donny Xia
5fc6cab49f
support new version string in helm
2021-03-12 12:01:02 -08:00
Natasha Sarkar
f96ac2d61e
allow general name and kind changes via an options field in patches
2021-03-10 14:58:58 -08:00
Jan-Otto Kröpke
a5e6295923
HelmChartInflationGenerator: inherit environment variables to helm command
2021-03-09 19:44:53 +01:00
Donny Xia
8e8fa5409d
cleanup image transformer
2021-03-08 10:41:43 -08:00
Natasha Sarkar
722b0131f0
return error for duplicate keys rather than panicking
2021-03-03 12:13:24 -08:00
Natasha Sarkar
f71854a0c8
Refactored resource to store all previous names and namespaces
2021-02-03 12:01:09 -08:00
Donny Xia
507244e6f8
fix relative path to values file
2021-02-01 13:55:48 -08:00
Natasha Sarkar
48676fe34b
updated patch delete test
2021-01-26 16:42:59 -08:00
Natasha Sarkar
bd4580d73a
Manage name changes (prefix/suffix) via YAML annotations rather than via in-memory-only fields.
2021-01-11 13:08:45 -08:00
monopole
769f65d6c4
Short circuit anno/label transformer for performance.
2021-01-08 18:02:58 -08:00
monopole
614e853db3
Confine calls to ApplyToJSON.
2021-01-07 20:31:10 -08:00
jregan
8b97274af3
More merge tests, clearer method names.
2020-12-22 17:26:12 -08:00
Donny Xia
d016326877
avoid error when the node has local-config
2020-12-15 13:29:19 -08:00
Petr Michalec
494977b9d0
helm values on inflator config - builtin
...
Signed-off-by: Petr Michalec <epcim@apealive.net >
2020-12-15 08:38:59 +01:00
Jeff Regan
51ba54ad82
Revert "helm values on inflator config"
2020-12-07 12:52:31 -08:00
Jeff Regan
4144775a3b
Merge pull request #3316 from epcim/helmValuesOnInflatorConfigSpec
...
helm values on inflator config
2020-12-07 12:51:42 -08:00
Petr Michalec
f6e5eedee2
helm values on inflator config spec.
2020-12-07 13:49:30 +01:00
jregan
f66e5bb923
Extract conflict detection to it's own interface.
...
This PR
- defines a patch conflict detector interface,
- extracts implementations of the interface from the
merginator code, making the merginator code
independent of --enable_kyaml.
- injects those implementations into kustomize
as a function of --enable_kyaml.
So, instead of using different merginators to combine
resmaps, this pr allows the use of a single patch merge
code path that uses different conflict detectors.
So instead of debating how to merge, we're now only
considering whether to warn on conflict detection
in one transformer.
This PR is in service of #3304 , eliminating seven
instances where --enable_kyaml was consulted. These
were cases where conflict detection wasn't an issue
(but merging patches was).
2020-12-06 08:38:45 -08:00
jregan
1a5aa63d54
Spelling nits.
2020-12-04 12:29:39 -08:00
Kubernetes Prow Robot
a6c2e982f9
Merge pull request #3292 from Shell32-Natsu/helm-extra-args
...
Add field extraArgs to helm generator
2020-11-30 19:50:49 -08:00
Donny Xia
2bf73c60c3
Add field extraArgs to helm generator
2020-11-30 14:22:25 -08:00
jregan
4a55a07c14
Patchtransformers - drop copied code, improve deletion handling.
2020-11-30 11:58:43 -08:00
Donny Xia
b18910aa6d
format
2020-11-06 15:38:18 -08:00
Donny Xia
3b79944190
improve target in JSON6902 transformer
2020-11-03 17:13:43 -08:00
Donny Xia
e75d4fc87d
convert helm inflator to builtin plugin
2020-10-30 23:18:54 -07:00
Donny Xia
70dcc79bf4
cleanup namespace transformer
2020-10-22 13:18:20 -07:00
Natasha Sarkar
7c8c827a88
added IsEmpty() method
2020-09-30 12:17:14 -07:00
Natasha Sarkar
c93274c224
changed way to test for empty resource
2020-09-29 17:33:12 -07:00
Natasha Sarkar
f5feffbd23
fix for the patchdelete test
2020-09-28 13:28:06 -07:00
Natasha Sarkar
e17bab7e55
updated to include namespace
2020-09-28 11:01:01 -07:00
Natasha Sarkar
bd534441ce
fixed issue 2896
2020-09-28 11:01:01 -07:00
Donny Xia
31b395a33f
handle the "$patch: delete" in patch transformer
2020-09-21 11:46:39 -07:00