Katrina Verey
55a37de686
Fix other linters on modified lines
2022-08-10 19:34:25 -04:00
Katrina Verey
f6b72077c8
Stop using deprecated ioutil functions
2022-08-10 18:22:46 -04:00
Katrina Verey
5762794793
Revert "[address #4717 ] create template/metadata when using includeTemplates if not present"
2022-08-10 14:06:33 -04:00
Agustina Barbetta
15545cc228
create template/metadata in includeTemplates if not present
2022-08-07 20:48:51 -03:00
Katrina Verey
0c37ee89af
Option to customize NamespaceTransfomer role binding subject handling
2022-07-27 23:12:55 -04:00
Katrina Verey
0c6e827ab8
Option to customize NamespaceTransformer overwrite behaviour ( #4708 )
...
* Option to customize NamespaceTransformer overwrite behaviour
* Code review feedback
2022-07-14 12:00:58 -07:00
Kubernetes Prow Robot
e1b6aa393a
Merge pull request #4692 from koba1t/chore/add_support_for_go_workspace_mode
...
[proposal] add support for go workspace mode
2022-07-08 10:29:47 -07:00
Kubernetes Prow Robot
344d0eec83
Merge pull request #4700 from KnVerey/ns_transformer_err_on_ambiguous_ns
...
Correctly detect ambiguity between potential referrers when targeting a name+namespace reference
2022-07-07 15:48:37 -07:00
Katrina Verey
387c95be1f
Correctly detect ambiguity between potential referrers when targeting a name+namespace reference
2022-07-07 18:33:48 -04:00
koba1t
bc981fcbc3
merge upstream master
2022-07-02 15:18:26 +09:00
Anna Song
d1102fb726
Move demandDirectoryRoot into kyaml/filesys ( #4677 )
...
* Move demandDirectoryRoot into kyaml/filesys
* Make root directory platform-agnostic
Support windows root directory. Dogfood own error package.
* Use cleaner windows support implementation
* Address feedback
* Address feedback x2
* Re-apply go.sum changes to avoid CI errors
2022-06-30 11:12:07 -07:00
koba1t
8c8a2125b7
update all go.mod to go1.18
2022-06-29 05:14:33 +09:00
Anna Song
3fdf88d10e
Allow tests to only run locally ( #4664 )
...
* Allow tests to only run locally
Allow tests that are flaky or currently unsupported on the server to run locally
* Address feedback
2022-06-08 10:04:23 -07:00
Kubernetes Prow Robot
d3d92157fa
Merge pull request #4567 from mvgmb/master
...
Add support for remote OpenAPI schema
2022-05-10 11:01:43 -07: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
Anna Song
c0dc68d6e7
Add url tests
...
Write comprehensive suite of integration tests for remote resources, as specified by Issue #4588
2022-05-03 13:53:03 -07:00
annelausf
188e35fbfd
Added code for fields with dots(.) in their names work as needed ( #4591 )
...
* Added code for fields with dots(.) in their names work as needed
Co-authored-by: sarjamil <sjamil@salesforce.com >
* Fixed imports
Co-authored-by: sarjamil <sjamil@salesforce.com >
* Removed comments
Co-authored-by: sarjamil <sjamil@salesforce.com >
* Fix filter method
Co-authored-by: sarjamil <sjamil@salesforce.com >
* Fixed failing tests
Co-authored-by: sarjamil <sjamil@salesforce.com >
* Remove comments
Add co-author to PR.
Co-authored-by: sarjamil <sjamil@salesforce.com >
* Add co-author to PR.
Co-authored-by: sarjamil sjamil@salesforce.com
Co-authored-by: sarjamil <sjamil@salesforce.com >
2022-05-02 14:30:33 -07:00
Kubernetes Prow Robot
233b6adf7e
Merge pull request #4605 from m-Bilal/fix-4559
...
Fix kustomize 4.5.3+ breaking remote resources (4559)
2022-05-02 13:34:31 -07:00
Mohd Bilal
66e4e1582b
fix kustomize 4.5.3+ breaking remote resources (4559)
2022-04-23 06:25:24 +00:00
Mário Bezerra
94af647556
Add support for remote OpenAPI schema
2022-04-19 23:58:04 -03:00
Natasha Sarkar
9d5491c2e2
fix containerized function mounts issue ( #4489 )
...
* fix containerized function mounts issue
* skip path test on windows
* move test out of temp dir
* update tests to deal with new working dir restrictions
* code review
2022-04-18 14:25:50 -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
Jennifer Cwagenberg
7888aef305
Raise error for external generators or transformers ( #4565 )
...
* Raise error if duplicate orgids for external transformers or external generators are configured
* Remove output of resources in error message
* Remove trailing newline
2022-04-06 15:46:25 -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
Natasha Sarkar
e8640724a9
Merge pull request #4497 from m-Bilal/fix-3812
...
Fix 3812; Error message changed and check for MalformedYamlError
2022-03-24 09:55:44 -07:00
Shoshana Malfatto
7b0ec99d90
retain quotes in namespace transformer filter ( #4421 )
...
* check tag values for double quoting
* reuse setentry
* don't override single quotes in merge and fix cm generator immutable val
* get rid of comment
* starlark annotation tests
* don't commit test image changes
* set network to bool
* isSet bool
* updating e2e config tool
* leave createtag
* fn command failing unmarshal test
* fn command test
* don't set style in run-fs
* use setentry to set tag
* remove e2e test changes and make IsStringValue an RNode method
2022-03-23 14:25:19 -07:00
roopeshvs
d1d578c392
support for multiple replacements in a single file
2022-03-04 12:46:45 +05:30
Mohd Bilal
6dabba1d23
misspell corrected
2022-02-27 07:47:59 +00:00
Mohd Bilal
bd05631887
Error type MalformedYamlError created. api.internal.target.kusttarget.accumulateResources checks for this new error type
2022-02-27 07:21:16 +00:00
Katrina Verey
a86723c3a3
Fix regression 4388
2022-02-02 12:36:03 -05: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
Natasha Sarkar
b0636459dd
Revert "[fix] configMapGenerator: extra space in end of line gives "\n" instead of line breaks"
2022-01-12 09:30:41 -08:00
Kubernetes Prow Robot
13e26004fd
Merge pull request #4357 from natasha41575/TransformerAnnotations
...
define methods, types, and unit tests for transformer annotations
2022-01-10 15:32:28 -08:00
Kubernetes Prow Robot
1c5ce6975f
Merge pull request #4312 from m-Bilal/fix-4240
...
Fixes 4240; added null check on namespace when resource is a RoleBinding
2022-01-10 09:43:13 -08:00
m-Bilal
ff7b2f20d5
Throwing error instead of silently ignoring invalid input
2022-01-01 21:52:37 +05:30
Kubernetes Prow Robot
59c8268245
Merge pull request #4334 from sylr/handle-http-errors
...
Handle HTTP error codes in file loader
2021-12-30 16:18:51 -08:00
natasha41575
4f21d60045
helper methods, types, and unit tests for transformer annotations
2021-12-29 15:27:34 -08:00
Kubernetes Prow Robot
77b1af2d91
Merge pull request #4352 from natasha41575/FilterErrors
...
prevent internal annotations from showing up in the errors thrown by filters
2021-12-29 13:45:22 -08:00
Natasha Sarkar
964bb38ba2
add origin annotation for resources generated by generators ( #4341 )
...
* add origin annotation for resources generated by builtin and custom generators
* decouple origin data from generator data and account for inline generators
2021-12-23 10:40:29 -08:00
natasha41575
c659306ee2
don't surface entire node content in error message
2021-12-22 16:56:02 -08:00
Kubernetes Prow Robot
233f1a3c2a
Merge pull request #4344 from natasha41575/ResIdStr
...
improve gvk and resid strings for error messages
2021-12-22 12:27:03 -08:00
Julian
3dbc88bf94
Refactor the PrefixSuffixTransformer into separate prefix- and suffix transformers ( #4318 )
...
* Refactor prefix filter into its own filter, decoupled from the prefixsuffix filter
* Refactor prefix transformer into its own transformer, decoupled from the prefixsuffix transformer
* Refactor suffix filter into its own filter, decoupled from the prefixsuffix filter
* Refactor suffix transformer into its own transformer, decoupled from the prefixsuffix transformer
* Add a default nameSuffix field spec in addition to the namePrefix
* Remove the PrefixSuffixTransformer from the list of builtin transformers
* Add a multi-transformer to builtinhelpers.TransformFactories
* Remove the implementation of the prefixsuffixtransformer.PrefixSuffixTransformer
* Resolve style and format related feedback from the pull request
* Add test to test the legacy PrefixSuffixTransformer for BC purposes
2021-12-22 12:01:06 -08:00
natasha41575
6dfc238aa2
improve gvk and resid strings for error messages
2021-12-22 11:39:07 -08:00
Kubernetes Prow Robot
c0b61b9442
Merge pull request #4332 from natasha41575/OriginCollection
...
collect origin data only when the option is set
2021-12-13 13:10:26 -08:00
natasha41575
a8f58b4080
collect origin data only when the option is set
2021-12-13 11:38:03 -08:00
Sylvain Rabot
738573b079
Error on HTTP resources are not nescessarly protocol related
...
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr >
2021-12-10 09:27:37 +01:00