Anna Song
314b8fbefa
Implement localizeFile() skeleton for patches ( #4865 )
...
* Implement localizeFile()
* Fix lint
* Address code review feedback
* Remove unnecessary String(), Error() with string formatters
* Remove processing of un-implemented methods
* Improve readability
* Remove unimplemented addLocalizeDir, hitsLocalizeDir
* Improve documentation
* Remove deprecated patchesJson6902 logic
2022-11-16 10:24:48 -08:00
Anna Song
f79e16b352
Improve localizer readability ( #4860 )
...
* Replace '%s' with %q
* Change ambiguous cli-"Arg" suffix in func arg names
* Remove repetitive "loc" in names
* Apply readability changes to localizer
* Fix comment
2022-11-16 08:42:49 -08:00
Kubernetes Prow Robot
b20e611413
Merge pull request #4723 from koba1t/emit_a_warning_when_deprecated_fields_are_used
...
Emit a warning on build when deprecated fields are used
2022-11-16 08:32:50 -08:00
Kubernetes Prow Robot
e638e408b0
Merge pull request #4802 from oscr/the-the
...
grammar: replace all occurrences of "the the" with "the"
2022-11-16 08:22:48 -08:00
Anna Song
84bd402cc0
Fix RepoSpec query extraction ( #4863 )
...
* Clean query processing
* Improve readability
* Remove redundant code
* Add comment
* Return path literal when not parsable
* Handle url.Parse() error in future
2022-11-14 09:38:41 -08:00
Anna Song
50e731a1d9
Implement localizer skeleton for kustomize localize ( #4859 )
...
* Add localizer outline
* Add localizer unit tests
* include previous change
* Add proper NewLocalizer, Localize unit tests
mock processKust
* Address code review feedback
* Make processKustFn public
* Remove mock testing
2022-11-10 09:24:54 -08:00
Anna Song
beb2825f82
Improve readability of ifc.Loader's Repo() method ( #4857 )
...
* Improve ldr Repo() method readability
* Change Repo() implementations and calls
* Improve readability of conditions in ldr.New()
* Fix details
2022-11-08 14:48:14 -08:00
Anna Song
6d9b54004e
Address TODO in PR #4652 ( #4856 )
...
* Address TODO in PR #4652
* Improve readability
2022-11-08 13:51:01 -08:00
yugo kobayashi
3e6ede9645
fix_failed_lint_on_master
2022-11-04 07:12:46 +00:00
sun min
f9d553689e
update dependencies of libs using go workspace mode
2022-11-02 13:44:23 +08:00
Natasha Sarkar
997e6fcc63
fix TestRemoteLoad_LocalProtocol ( #4844 )
...
* remote load test fix
* fix spacing
2022-10-31 10:58:44 -07:00
Ahmed AbouZaid
3e447da6ef
proposal v2.1
2022-10-22 03:16:41 +02:00
Ahmed AbouZaid
ea21b37d67
proposal v2
2022-10-22 03:16:41 +02:00
Ahmed AbouZaid
d29febecb7
Fix krm exec function working dir
2022-10-22 03:16:41 +02:00
Ahmed AbouZaid
1b1e6ccab0
Test transformers krm exec function
2022-10-22 03:16:41 +02:00
Kubernetes Prow Robot
7ee6dd551d
Merge pull request #4733 from koba1t/feat/add_edit-fix_for_patchesStrategicMerge_to_patches
...
add `edit fix` for patchesStrategicMerge to patches
2022-10-21 14:57:57 -07:00
Kubernetes Prow Robot
bf7a0f9004
Merge pull request #4805 from aibarbetta/fix-4717
...
[address #4717 ] Re-do create template/metadata when using includeTemplates if not present
2022-10-11 09:23:02 -07:00
Kubernetes Prow Robot
0a16b6cf40
Merge pull request #4808 from larsks/feature/no-hooks
...
Add support for helm --no-hooks flag
2022-10-10 11:51:22 -07:00
Agustina Barbetta
7b84613ad1
Use fewer labels to ease reading
2022-10-08 20:38:44 -03:00
Agustina Barbetta
d14dfb604c
Use WrapPrefixf
2022-10-08 20:37:24 -03:00
Agustina Barbetta
acba8fff62
Update api/krusty/inlinelabels_test.go
...
Co-authored-by: Katrina Verey <kn.verey@gmail.com >
2022-10-08 20:18:57 -03:00
Lars Kellogg-Stedman
38da7ca15c
Add support for helm --no-hooks flag
...
This commit adds the `skipHooks` option to the helm chart support in order
to expose the --no-hooks flag introduced to Helm in [1].
Using Kustomize to inflate a Helm chart would in some situations result in
different results than using `helm install`. This is because `helm
template`, by default, will render chart tests in the `templates/test`
directory, which can lead to undesired resources in the output.
See [2] for additional discussion.
[1]: https://github.com/helm/helm/pull/6444
[2]: https://github.com/helm/helm/issues/6443
Signed-off-by: Lars Kellogg-Stedman <lars@oddbit.com >
2022-10-07 17:14:06 -04:00
Kubernetes Prow Robot
9ef7ba9c95
Merge pull request #4663 from johnmanjiro13/handle-error-of-remove-annotation
...
fix: handle error of remove annotations
2022-10-07 08:19:53 -07:00
johnmanjiro13
4e7f4bce7b
feat: Wrap error
2022-10-07 18:14:59 +09:00
Ed Overton
d37fabf876
convert PrevIds to use apiVersion instead meta
...
Since PrevIds uses only the apiVersion information from the metadata,
change the retrieval from the full meta to just the apiVersion.
2022-09-27 14:03:59 -04:00
Agustina Barbetta
eb1529b516
use %w to format errors
2022-09-25 09:19:31 -03:00
Agustina Barbetta
c750c0089d
use fmt instead of errors
2022-09-25 09:07:47 -03:00
Agustina Barbetta
2b9ef61f88
error wraps for linter
2022-09-23 18:30:00 -03:00
Agustina Barbetta
344b257c1f
add tests for other kinds
2022-09-23 15:54:25 -03:00
Agustina Barbetta
e2196d9bd1
separate template specific field specs and use in includeTemplates
2022-09-23 15:11:59 -03:00
yugo kobayashi
401cf9579c
update golangci-lint v1.49.0
2022-09-22 13:24:40 +00:00
Agustina Barbetta
4dcc040ec1
create template/metadata in includeTemplates if not present
2022-09-20 13:33:07 -03:00
Agustina Barbetta
662ccf1915
add test for resources with no template
2022-09-20 13:29:38 -03:00
Yunchi Luo
e62480d11c
Rewrite remoteload_test integration tests ( #4783 )
...
* Better error message when git clone fails
* support file:// URLs
* rewrite remoteload_test
* lint and test fix
* fixes for kverey's comments
* document file:// remote load
* replace assert with require where appropriate
* add tests for file:// without git suffix
* fixes plus pr review from natasha
* fixes for review, lint
* revert changes to error handling
* fix skipped test
2022-09-19 09:13:18 -07:00
Oscar Utbult
88cf251ef7
grammar: replace all occurrences of "the the" with "the"
2022-09-17 22:28:56 +02:00
Anna Song
eb51117adf
Fix flaky
...
Disable submodules and increase timeout to prevent `localize` test that uses testdata from flaking.
2022-09-15 18:05:25 -07:00
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
johnmanjiro13
a8c0be49ae
fix: handle error of remove annotations
2022-09-05 16:27:59 +09: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
yugo kobayashi
21ee7f7125
Emit a warning when deprecated fields are used
2022-09-01 23:02:50 +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
yugo kobayashi
032bf3338e
update checker code in patchStrategicMerge
2022-08-28 17:20:21 +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
Kubernetes Prow Robot
b6fae2a959
Merge pull request #4759 from mightyguava/enable-ssh-tests
...
Enable SSH tests
2022-08-26 09:14:25 -07:00
natasha41575
08918ea352
run openapi tests with other krusty tests
2022-08-26 09:01:44 -05:00
Yunchi Luo
5dcbd35e40
Enable SSH tests
2022-08-25 16:57:21 -04:00