Natasha Sarkar
96ad106ee1
Use upstream go-yaml fork and remove our internal one ( #5412 )
...
* test new yaml fork
* delete old kyaml fork
* update to sigs yaml 1.4.0
* remove comments
2023-10-25 19:48:22 +02:00
koba1t
0465637335
Back to development mode; unpin the modules
2023-10-20 05:30:43 +09:00
koba1t
8668b74622
Update kyaml to v0.15.0
2023-10-20 01:07:49 +09:00
Jan-Otto Kröpke
d64ac13447
kustomize: Add support for OCI based helm repos ( #5167 )
...
* kustomize: Add support for OCI based helm repos
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de >
* Update api/internal/builtins/HelmChartInflationGenerator.go
* Update plugin/builtin/helmchartinflationgenerator/HelmChartInflationGenerator.go
* go fmt
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de >
* s/expectedHelmExternalDns/expectedHelmExternalDNS
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de >
* commit
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de >
* commit with content
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de >
* Apply suggestions from maintainer
* go work sync
* added test
---------
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de >
2023-10-17 21:24:00 +02:00
Mauren Berti
6ef9773c02
docs: update comment to reflect usage of namespace
...
Update the comment for the namespace option to reflect its real usage for both
secret and configmap.
2023-10-09 17:17:49 -04:00
Kubernetes Prow Robot
779f153071
Merge pull request #5353 from charles-chenzz/git_submodule
...
git submodule need origin
2023-10-07 03:27:32 +02:00
charles-chenzz
60d7ee6710
add orgin back when clone repo (due to git submodule).
2023-10-07 07:50:13 +08:00
Kubernetes Prow Robot
aeb7cb2a40
Merge pull request #5342 from superbrothers/fix-issue4905
...
Update imdario/mergo to v0.3.13
2023-10-04 22:06:34 +02: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
Kazuki Suda
f5ca753377
Update imdario/mergo to v0.3.13
...
Co-authored-by: Krzysztof Gibuła <krzysztof.gibula@gmail.com >
Signed-off-by: Kazuki Suda <kazuki.suda@gmail.com >
2023-09-24 16:34:45 +09:00
yugo kobayashi
59696d1ace
fix a patch files accept multiple patches ( #5194 )
...
* fix a patch files accept multiple patches
* fix comments and variable name
* add error handling when using not allowed multiple strategic-merge patches
* fix error message of Multiple Strategic-Merge Patch file
* refactor transformStrategicMerge()
* add TODO comment and test for Multiple JSON patch Yaml documents are not allowed
* refactoring PatchTransformer
* add multiple patch test for PatchTransformer package
* improve error message to PatchTransformer
* refactor const and error message check
* fix some error messages
2023-09-15 16:20:13 -07:00
Kubernetes Prow Robot
56d37acc7d
Merge pull request #5261 from varshaprasad96/refactor/image
...
[Refactor] Move image to internal
2023-09-13 10:22:12 -07:00
Ed Overton
78b8139d46
Merge branch 'master' into issue4928-append-honors-key-style
2023-08-30 12:30:49 -04:00
Stephen Kitt
b692e49b1e
Switch to json-patch v5
...
json-patch was bumped to v5 in k/k as a result of
https://github.com/kubernetes/kubernetes/pull/118384 ; this aligns with
that, but switches to the v5 module, which is documented as
gopkg.in/evanphx/json-patch.v5.
Signed-off-by: Stephen Kitt <skitt@redhat.com >
2023-08-26 08:42:07 +02:00
Kubernetes Prow Robot
d6ff768298
Merge pull request #5262 from varshaprasad96/refactor/konfig
...
[Refactor] Internalize konfig constants
2023-08-25 10:18:52 -07:00
Kubernetes Prow Robot
911ddcda40
Merge pull request #5263 from bugoverdose/fix/reject-on-id-change
...
Fix `reject` needing both current and previous ids
2023-08-14 09:19:22 -07:00
Jeong Jinwoo
9f1d5acdc8
fix: check both prev and current ids for filtering reject targets
2023-08-11 21:37:55 +09:00
Jeong Jinwoo
9756d92a91
test: demonstrate reject not working on targets with changed id
2023-08-11 21:37:07 +09:00
Varsha Prasad Narsing
ddcbae54ab
[Refactor] Internalize konfig constants
...
This PR is an effort towards internalizing public APIs.
It moves some of the builtinconstants to internal/
Signed-off-by: Varsha Prasad Narsing <varshaprasad96@gmail.com >
2023-08-09 14:14:48 -04:00
Varsha Prasad Narsing
ca748faa3f
[Refactor] Move image/ to internal
...
This PR is an effort towards reducing the public surface
of APIs. It move image/ to internal/image
Signed-off-by: Varsha Prasad Narsing <varshaprasad96@gmail.com >
(cherry picked from commit 1f5890709fdc17de6f44f42b5138dd0f7e64bc74)
2023-08-09 13:40:07 -04:00
natasha41575
ff75dd6cd5
release cleanup
2023-07-31 12:27:44 -05:00
natasha41575
4a893ce8c6
pin to kyaml
2023-07-31 11:08:00 -05:00
Kubernetes Prow Robot
cd7ba1744e
Merge pull request #5189 from annasong20/test-relative-submodules
...
Add test for issue #5131
2023-07-12 10:03:13 -07:00
Anna Song
da4e881007
Add accumulateResources error tests for local files ( #5225 )
...
* Add accumulateResources error tests for local files.
Add tests demonstrating accumulateResources errors when the resource is
a local file. Works to address #4807 .
* Improve readability
2023-07-01 11:46:49 -07:00
natasha41575
eeff67d88d
unpin everything
2023-06-19 12:05:59 -05:00
natasha41575
8c0e0b3b47
pin to kyaml
2023-06-19 10:45:18 -05:00
Ed Overton
096b2c4435
test: add psm test for different key types
2023-06-15 16:12:29 -04:00
Anna Song
129d0f90af
Add test for issue #5131
2023-06-14 18:32:12 +00:00
Ed Overton
c76fd5eb85
test: update psm key style test
2023-06-13 14:50:22 -04:00
Anna Song
168e31bfb6
Add accumulateResources remote file error tests
...
Test accumulateResources errors when a remote file fails to load. This
is part of the effort to fix issue #4807 .
2023-06-09 21:31:27 +00:00
Ed Overton
691b7d1df3
fix: patch additions honor source key style
...
When a patch appends a new node, it should honor the key style from the
patch. Prior to this commit, no style was applied, leading to problems
when the key value could be interpreted as a different type based on its
content. For example, "9110" needs quoting to ensure it is seen as a
string in yaml.
2023-06-08 17:21:46 -04:00
koba1t
d1647a51af
fix e2econtainer test
2023-06-07 02:19:55 +09:00
koba1t
5b76aa9d2f
update go 1.20
2023-06-06 22:39:06 +09: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
Jefftree
7c98e531f2
make test-go-mod
2023-05-31 19:54:13 +00:00
Kubernetes Prow Robot
cf3e81b590
Merge pull request #4949 from koba1t/fix/add_check_kustomization_is_empty
...
add check that kustomization is empty
2023-05-26 10:36:53 -07:00
natasha41575
fd508f0e3a
release cleanup
2023-05-17 10:41:37 -05:00
natasha41575
4b807107a6
pin to kyaml and cmd/config released versions
2023-05-09 14:27:34 -05:00
Natasha Sarkar
3d6f40bd5e
Revert "Fix using same helm chart with different versions ( #4999 )"
...
This reverts commit 0f244a4a07 .
2023-05-09 13:16:22 -05:00
natasha41575
529a25d30b
unpin everything
2023-05-05 15:38:19 -05:00
natasha41575
1f98338481
pin to kyaml v0.14.2
2023-05-05 14:32:02 -05:00
Dustin Lish
0f244a4a07
Fix using same helm chart with different versions ( #4999 )
...
* Fix using same helm chart with different versions
* Fix p.ValuesFile when version is set
* Updated: Fix using same helm chart with different versions
* Add test for issue #4813
* Use if/else for readability, add version check to absChartHome
2023-04-24 15:09:02 -07:00
Tim Jacomb
75fa235498
Only override name of core api version
2023-04-18 09:41:28 +01:00
Tim Jacomb
7413c6a5fb
Regression test
2023-04-18 09:41:28 +01:00
koba1t
928b823d8f
fix using reflect.DeepEqual for check kustomization is empty
2023-04-06 05:52:13 +09:00
koba1t
2c2b2ab825
add check that kustomization is empty
2023-04-06 05:32:08 +09:00
Kubernetes Prow Robot
d3184da4c6
Merge pull request #5111 from yutaroyamanaka/reenable-skipped-tests
...
Re-enable tests disabled in #3880
2023-04-05 11:45:48 -07:00
yutaroyamanaka
2649d39fd3
docker build locally because gcr.io/kustomize-functions/e2econtainerconfig doesn't exist in the public
2023-04-04 18:22:43 +09:00
yutaroyamanaka
faab836ec9
use test helpers
2023-04-01 23:16:58 +09:00
yutaroyamanaka
c9f500cc0b
add another resource for making sure an existing resource isn't affeced by a generator
2023-04-01 23:13:04 +09:00