Christian Provenzano
ca71736140
Wrap error in exported func
2022-09-09 20:27:28 -04:00
Christian Provenzano
e7d5f665b8
Fix redundant rnode metadata parsing
2022-09-09 19:25:59 -04:00
yugo kobayashi
a54226e0a9
fix error handling
2022-09-03 00:29:10 +00:00
yugo kobayashi
f086269d6e
be build fail when parse failed to FunctionSpec
2022-09-03 00:29:10 +00:00
Kubernetes Prow Robot
cb2636335f
Merge pull request #4779 from annasong20/locloader
...
Reinstate #4652 without url-related code
2022-08-30 08:13:01 -07:00
Anna Song
f80cf9f433
Reinstate #4652 without url-related code
...
Remove code that changes remotes-loading code path, as mandated by #4756
2022-08-29 16:57:15 +00:00
Yunchi Luo
d917876949
expand and clean up repospec_test
2022-08-27 14:30:10 -04:00
Natasha Sarkar
8868d91670
Revert "Load and calculate Destination of files for kustomize localize ( #4652 )"
...
This reverts commit bf17fe1d8f .
2022-08-26 13:26:23 -05:00
Anna Song
bf17fe1d8f
Load and calculate Destination of files for kustomize localize ( #4652 )
...
* Implement file localization for localize
Implement file localization for new command kustomize localize
* Patch file localization
Fix lint errors, address feedback, begin transition to file loader from
localizer
* Add Repo() to Loader
* Implement locLoader factory + cleanup
* Add domain to RepoSpec
Fix ssh relative url host parsing for non-github domain on the side
* Implement Load(), New(), Root(), Dst() for LocLoader
* Address repospec code review comments
* Address 1st round of code review feedback
* Address feedback #2
Removed localized path calculations to cover edge case and improve readability.
* Remove ldr Cleanup logging
* Address code review round #3
* Address code review feedback #4
2022-08-19 14:33:53 -07:00
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