Kubernetes Prow Robot
e3a7615ccb
Merge pull request #5506 from cloud-native-team/master
...
fix some comments
2024-06-18 12:37:52 -07:00
Colin O'Dell
88c89f422a
fix: always show accumulation errors ( #5693 )
...
* fix: always show accumulation errors if the resource was successfully loaded as a base
* chore: regression test
* chore: fix lint violations
2024-05-24 20:13:10 -07:00
Mauren
671de1662d
feat: support labels key in transformer configuration ( #5556 )
...
* feat: support labels key in transformer configuration
Allow the usage of a separate transformer configuration for the labels key,
similar to what is currently available for commonLabels and commonAnnotations.
This aims to provide the same functionality that commonLabels currently provide
for labels, since commonLabels is deprecated and slated for removal in a future
release.
* chore(transformerconfig): add nolint hint
Add a nolint hint to the new method so the returns can stay consistent with
one another.
* fix: changes from code review
* Rename methods `AddCommonLabelFieldSpec` and `AddLabelFieldSpec` to
`AddCommonLabelsFieldSpec` and `AddLabelsFieldSpec`.
* Add extra test to verify scenarios applying labels to Custom Resource Definitions.
2024-04-25 00:40:44 -07:00
Yusuke Abe
ed09399cd1
fix: return error instead of log.Fatalf() ( #5625 )
...
* fix: return error instead of log.Fatalf()
* chore: add meaningful message to error output
* chore: add meaningful message to fatal function
2024-04-18 03:56:51 -07:00
Kubernetes Prow Robot
8fef99fa35
Merge pull request #5542 from ephesused/issue5540
...
fix: improve accumulation failure message
2024-03-27 10:32:54 -07:00
Karl Isenberg
43868688d5
Use require for Error and NoError
...
Assert keeps going after failure, but require immediately fails
the tests, making it easier to find the output related to the test
failure, rather than having to comb through a bunch of subsequent
assertion failures. For equality tests, we may or may not want to
continue, but for error checks we almost always want to immediately
fail the test. Exceptions can be changed as-needed.
2024-03-20 13:19:18 -07:00
Ed Overton
14a9a9849f
test: correct lint issues
2024-03-11 15:16:11 -04:00
Ed Overton
4da880d6cb
Merge remote-tracking branch 'origin/master' into issue5540
2024-03-08 14:48:51 -05:00
Ed Overton
62eca858f3
test: add test for issue 5440
2024-03-08 14:33:09 -05:00
koba1t
37715863f0
use Strict unmarshal when read TransformerConfig
2024-02-22 05:39:55 +09:00
Ed Overton
f80650e8ce
fix: improve accumulation failure message
...
For accumulation errors when the file load fails due to malformed
YAML and the base load fails due to a timeout, report both errors.
Previously only the malformed YAML error was returned, masking the
git repo timeout.
2024-02-16 12:47:02 -05:00
cui fliter
d56e1d0f46
fix some comments
...
Signed-off-by: cui fliter <imcusg@gmail.com >
2024-01-05 16:25:48 +08:00
Varsha Prasad Narsing
7911b2c001
[refactor]: Internalize loader api
...
This PR intends to move the loader api to
internal. Only the necessary methods which
are needed for the api have been put into
`pkg/loader.go`.
Signed-off-by: Varsha Prasad Narsing <varshaprasad96@gmail.com >
2023-09-28 10:49:45 -04:00
yugo kobayashi
0add0f95e2
change: components apply after all generators and transformers applied ( #5170 )
...
* change: components apply after all generator and transformer applied
* fix name for a test case
* add comment about when the components will be executed
* components are applied before transformer
2023-06-02 10:26:54 -07:00
koba1t
2c2b2ab825
add check that kustomization is empty
2023-04-06 05:32:08 +09:00
Cailyn
8ab4b8d167
remove direct dependency on github/pkg/errors ( #4970 )
2023-01-13 10:52:25 -08:00
yugo kobayashi
5fed0f76c8
refactor Unmarshal Kustomization struct code
2022-12-13 21:04:50 +00:00
yugo kobayashi
faddb49c89
remove FixKustomizationPreUnmarshalling
2022-12-13 18:50:25 +00:00
Anna Song
4cccb838ce
Load legacy kustomization fields for localize ( #4918 )
...
* Load legacy kustomization
* Expose loadKustFile in kusttarget
2022-12-13 08:19:34 -08:00
Christopher Fry
8a6602db94
Allow name suffix transformer configuration to be overridden
2022-12-08 20:10:05 +00:00
Natasha Sarkar
2db573b6a0
drop support for legacy patches ( #4911 )
...
* drop support for legacy patches
* fix CI
2022-12-07 18:06:24 -08:00
Kubernetes Prow Robot
8a869f6045
Merge pull request #4882 from ChristopherFry/cfry/user-config-priority
...
Add test ensuring user configuration overrides default configuration
2022-12-06 22:46:38 -08:00
Christopher Fry
570865baae
Address peer review
2022-12-05 23:06:50 +00:00
Katrina Verey
fb0f567b63
Remove local-only resources at the last minute
...
This allows name references to them to be correctly resolved
2022-11-29 19:05:16 -05:00
Christopher Fry
0c4f863bc5
Add test ensuring user configuration overrides default configuration
2022-11-21 23:39:45 +00: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
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
Agustina Barbetta
e2196d9bd1
separate template specific field specs and use in includeTemplates
2022-09-23 15:11:59 -03:00
Agustina Barbetta
4dcc040ec1
create template/metadata in includeTemplates if not present
2022-09-20 13:33:07 -03:00
yugo kobayashi
21ee7f7125
Emit a warning when deprecated fields are used
2022-09-01 23:02:50 +00: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
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
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
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
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
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
71bf0d5d14
Update full linter list and enable some easily resolved new ones
2022-03-31 11:37:26 -04:00
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
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
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
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