Kubernetes Prow Robot
863ca93f0b
Merge pull request #5364 from 0xff-dev/master
...
fix: goroutine leak
2023-11-10 17:14:34 +01:00
Kubernetes Prow Robot
68e0997dc9
Merge pull request #5356 from charles-chenzz/deps
...
update dependabot to enable CVE detect
2023-11-09 20:39:19 +01:00
0xff-dev
f7bc0aced8
fix: goroutine leak
2023-11-06 13:12:22 +08:00
Nick
e7c8ed1899
Add contributor guide ( #5426 )
...
* Add contributor guide
* git merge upstream/master
* git rebase upstream/master
* make test-unit-all
* make lint
2023-11-03 22:36:14 +01:00
Kubernetes Prow Robot
b8443683f9
Merge pull request #5390 from chansuke/add-negative-test-for-kv
...
Add negative case for testing `keyValuesFromLine`
2023-11-03 17:29:43 +01:00
Carl Henrik Lunde
2fda12d220
perf: MakeDefaultConfig once ( #5082 )
...
* perf: MakeDefaultConfig once
This shaves of another 2 seconds (62%) of the remaining execution
time for a kustomization tree with 4000 documents, reducing the execution
time from 4.79s to 1.82s
0 0% 1.38% 2.98s 37.25% sigs.k8s.io/kustomize/api/internal/plugins/builtinconfig.MakeDefaultConfig
before:
(pprof) top30 -cum
Showing nodes accounting for 1.82s, 22.75% of 8s total
Dropped 408 nodes (cum <= 0.04s)
Showing top 30 nodes out of 308
flat flat% sum% cum cum%
0 0% 0% 4.79s 59.88% github.com/spf13/cobra.(*Command).Execute
0 0% 0% 4.79s 59.88% github.com/spf13/cobra.(*Command).ExecuteC
0 0% 0% 4.79s 59.88% github.com/spf13/cobra.(*Command).execute
0 0% 0% 4.79s 59.88% main.main
0 0% 0% 4.79s 59.88% runtime.main
0 0% 0% 4.79s 59.88% sigs.k8s.io/kustomize/kustomize/v5/commands/build.NewCmdBuild.func1
0 0% 0% 4.22s 52.75% sigs.k8s.io/kustomize/api/krusty.(*Kustomizer).Run
0 0% 0% 4.18s 52.25% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).MakeCustomizedResMap (inline)
0 0% 0% 4.18s 52.25% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).makeCustomizedResMap
0 0% 0% 4.06s 50.75% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).AccumulateTarget
0 0% 0% 4.06s 50.75% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).accumulateResources
0 0% 0% 4.06s 50.75% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).accumulateTarget
0 0% 0% 4.05s 50.62% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).accumulateDirectory
0 0% 0% 3.22s 40.25% runtime.systemstack
0 0% 0% 3.03s 37.88% runtime.gcBgMarkWorker
0 0% 0% 3.03s 37.88% runtime.gcBgMarkWorker.func2
0.11s 1.38% 1.38% 3.03s 37.88% runtime.gcDrain
0 0% 1.38% 2.98s 37.25% sigs.k8s.io/kustomize/api/internal/plugins/builtinconfig.MakeDefaultConfig
0 0% 1.38% 2.98s 37.25% sigs.k8s.io/kustomize/api/internal/plugins/builtinconfig.MakeTransformerConfig
0 0% 1.38% 2.98s 37.25% sigs.k8s.io/kustomize/api/internal/plugins/builtinconfig.makeTransformerConfigFromBytes
0 0% 1.38% 2.97s 37.12% sigs.k8s.io/yaml.yamlUnmarshal
0 0% 1.38% 2.91s 36.38% sigs.k8s.io/yaml.Unmarshal (inline)
1.34s 16.75% 18.12% 2.87s 35.88% runtime.scanobject
0 0% 18.12% 2.53s 31.62% sigs.k8s.io/yaml.yamlToJSON
0 0% 18.12% 1.91s 23.88% gopkg.in/yaml%2ev2.unmarshal
0 0% 18.12% 1.86s 23.25% gopkg.in/yaml%2ev2.Unmarshal (partial-inline)
0 0% 18.12% 1.43s 17.88% gopkg.in/yaml%2ev2.(*parser).parse
0.01s 0.12% 18.25% 1.27s 15.88% gopkg.in/yaml%2ev2.(*parser).document
0.01s 0.12% 18.38% 1.25s 15.62% gopkg.in/yaml%2ev2.(*parser).mapping
0.35s 4.38% 22.75% 1.21s 15.12% runtime.mallocgc
after:
(pprof) top30 -cum
Showing nodes accounting for 0.84s, 24.42% of 3.44s total
Dropped 225 nodes (cum <= 0.02s)
Showing top 30 nodes out of 345
flat flat% sum% cum cum%
0 0% 0% 1.82s 52.91% github.com/spf13/cobra.(*Command).Execute
0 0% 0% 1.82s 52.91% github.com/spf13/cobra.(*Command).ExecuteC
0 0% 0% 1.82s 52.91% github.com/spf13/cobra.(*Command).execute
0 0% 0% 1.82s 52.91% main.main
0 0% 0% 1.82s 52.91% runtime.main
0 0% 0% 1.82s 52.91% sigs.k8s.io/kustomize/kustomize/v5/commands/build.NewCmdBuild.func1
0 0% 0% 1.57s 45.64% runtime.systemstack
0 0% 0% 1.49s 43.31% runtime.gcBgMarkWorker
0 0% 0% 1.49s 43.31% runtime.gcBgMarkWorker.func2
0.03s 0.87% 0.87% 1.49s 43.31% runtime.gcDrain
0.62s 18.02% 18.90% 1.45s 42.15% runtime.scanobject
0 0% 18.90% 1.25s 36.34% sigs.k8s.io/kustomize/api/krusty.(*Kustomizer).Run
0 0% 18.90% 1.21s 35.17% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).MakeCustomizedResMap (inline)
0 0% 18.90% 1.21s 35.17% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).makeCustomizedResMap
0 0% 18.90% 1.08s 31.40% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).AccumulateTarget
0 0% 18.90% 1.08s 31.40% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).accumulateResources
0 0% 18.90% 1.08s 31.40% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).accumulateTarget
0 0% 18.90% 1.07s 31.10% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).accumulateDirectory
0 0% 18.90% 0.57s 16.57% sigs.k8s.io/kustomize/api/resmap.(*resWrangler).AsYaml
0 0% 18.90% 0.57s 16.57% sigs.k8s.io/kustomize/api/resource.(*Resource).AsYAML
0.11s 3.20% 22.09% 0.48s 13.95% runtime.mallocgc
0 0% 22.09% 0.45s 13.08% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).accumulateFile
0 0% 22.09% 0.45s 13.08% sigs.k8s.io/kustomize/api/resmap.(*Factory).FromFile
0 0% 22.09% 0.33s 9.59% sigs.k8s.io/kustomize/kyaml/yaml.(*RNode).MarshalJSON
0.08s 2.33% 24.42% 0.32s 9.30% runtime.greyobject
0 0% 24.42% 0.30s 8.72% sigs.k8s.io/kustomize/api/resmap.(*Factory).NewResMapFromBytes
0 0% 24.42% 0.27s 7.85% sigs.k8s.io/yaml.JSONToYAML
0 0% 24.42% 0.25s 7.27% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).runTransformers
0 0% 24.42% 0.25s 7.27% sigs.k8s.io/kustomize/api/resource.(*Factory).RNodesFromBytes
0 0% 24.42% 0.25s 7.27% sigs.k8s.io/kustomize/api/resource.(*Factory).SliceFromBytes
* Tests and comments for MakeDefaultConfig perf work
Document updated code in MakeDefaultConfig.
Add unit tests to ensure DeepCopy works.
Add hints to other code to ensure DeepCopy is kept up to date.
2023-11-02 22:54:42 +01:00
Kubernetes Prow Robot
5b51722720
Merge pull request #5293 from ardikabs/fix/5164
...
fix: local helm chart with version but no repo
2023-11-02 14:58:17 +01:00
Ardika Bagus
6640f8799e
test: add Kustomize test case for multiple helm charts with different version
...
Signed-off-by: Ardika Bagus <me@ardikabs.com >
2023-11-02 06:27:39 +07:00
Ardika Bagus
790dbf0fdf
chore: rename chart and test case with clear intention
2023-11-02 06:23:50 +07:00
Ardika Bagus
b7b85b10fc
chore: remove unnecessary code, and using testdata instead of inline
...
Signed-off-by: Ardika Bagus <me@ardikabs.com >
2023-11-02 06:23:50 +07:00
Ardika Bagus
5505af439a
chore: fix lint, assert with required
2023-11-02 06:22:11 +07:00
Ardika Bagus
cc35d3c4e5
fix: fix while using local charts with version
...
fix https://github.com/kubernetes-sigs/kustomize/issues/5163
Signed-off-by: Ardika Bagus <me@ardikabs.com >
2023-11-02 06:22:11 +07:00
Dustin Lish
a0f131cf86
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-11-02 06:22:11 +07:00
Kubernetes Prow Robot
f87942ec76
Merge pull request #5328 from koba1t/fix/failed_tests_are_depends_on_external_container_images
...
fix failed tests are depends on external container images
2023-11-01 20:01:53 +01:00
koba1t
af7c088053
fix failed tests for fn framework mount generator
2023-11-02 02:37:00 +09:00
koba1t
7af4e772bd
fix failed tests for fn framework generator
2023-11-02 02:37:00 +09:00
koba1t
67a0b43c81
fix failed tests for testing fn framework about get value from env
2023-11-02 02:37:00 +09:00
koba1t
2bff0d6882
fix failure tests that are running for external container image
2023-11-02 02:37:00 +09:00
Kubernetes Prow Robot
8effd35d3f
Merge pull request #5424 from sylr/go-work-sync
...
Run go work sync
2023-10-31 21:33:44 +01:00
Sylvain Rabot
b1f100e3da
Run go work sync and go mod tidy
...
```shell
go work sync
for i in $(find . -name go.mod); do (cd $(dirname $i); go mod tidy); done
```
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr >
2023-10-28 13:05:11 +02:00
chansuke
e002b49244
hotfix: return error instead of log at FromMapAndOption ( #5381 )
...
* hotfix: return error instead of log at `FromMapAndOption`
* chore: show error message
* hotfix: use correct function
* hotix: use `t.Helper()` and fix `t *testing.T order
* hotfix: wrapt the error of `FromMapAndOption`
* hotfix: meaningful message for an error
* hotfix: summarize in one line
* hotfix: fix the abandoned error and show meaningful message
* hotfix: start with helper function
* Keep TODO comment
2023-10-27 23:01:47 +02:00
Nick
bd435d4154
Add Generator Tasks to Documentation ( #5368 )
...
* Update tasks index description
* Create generators folder
* Update tasks/generators titles
* Add rollouts placeholder
* Add generate configmap from file example
* Add literals and env file example
* Add propogation example
* Consistent punctuation
* Update grammar
* Clean up configmaps page
* Remove examples from configMapGenerator ref page
* Move secret examples to Tasks
* Clean up spacing
* Consolidate cm and secret
* Consistent grammar
* Cleanup
* Address feedback
* Bump date
* Fix propagate spelling
* Remove roll out updates section
* Separate configmap and secret generator tasks
* Add secret from file example
* Add secret from literals example
* Update tls secret example
* Update task page weights
* Link cm generator reference
* Add link to secret reference
* Remove secretGenerator example from reference section
* Add configmap options task, clean up reference
* Add file with key example
* Secrets are base64 encoded
2023-10-27 22:26:37 +02:00
Kubernetes Prow Robot
a869386996
Merge pull request #5423 from natasha41575/roadmap-update
...
update roadmap based on review comments
2023-10-27 18:54:58 +02:00
Kubernetes Prow Robot
a40379782e
Merge pull request #5420 from soltysh/security_contants
...
Update security contacts for sig-cli
2023-10-27 18:37:56 +02:00
Natasha Sarkar
761893d1fc
Merge pull request #5351 from natasha41575/roadmap
...
update kustomize roadmap 23-24
2023-10-27 11:20:58 -05:00
natasha41575
9f4f9b323c
review comments
2023-10-27 10:59:30 -05:00
Kubernetes Prow Robot
48fd585620
Merge pull request #5408 from koba1t/fix_add_checksum_create_step_in_release_scripts
...
fix add checksum create step in release scripts
2023-10-27 02:29:19 +02:00
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
Maciej Szulik
e2b0297d18
Update security contacts for sig-cli
2023-10-25 19:02:36 +02:00
koba1t
d6fa69d26e
use pushd when generate checksum
2023-10-25 05:19:25 +09:00
Kubernetes Prow Robot
cba3f1115f
Merge pull request #5409 from stormqueen1990/refactor/move-reusable-set-bits
...
refactor: move reusable bits in preparation for new 'edit set' commands
2023-10-23 17:45:58 +02:00
Mauren Berti
5568521cd1
fix: lint issues
...
Change package for test to 'util_test' and add dot-import for the main package.
2023-10-21 17:47:49 -04:00
Mauren Berti
a5a2db577f
refactor: move reusable bits in preparation for edit set commands
...
* Move configmapSecretFlagsAndArgs.go to the internal/util folder so it can be
reused by the edit set commands.
2023-10-21 16:55:37 -04:00
koba1t
b6387b9eaf
fix add checksum create step in release scripts
2023-10-21 15:41:00 +09:00
Kubernetes Prow Robot
0f2618b21d
Merge pull request #5402 from koba1t/unpinEverything
...
release cleanup, unpin the modules
2023-10-19 22:58:25 +02:00
koba1t
0465637335
Back to development mode; unpin the modules
2023-10-20 05:30:43 +09:00
Natasha Sarkar
e71072b90b
Merge pull request #5397 from koba1t/fix_release_binary_archive_contains_unnecessary_dir
...
fix release binary archive contains unnecessary dir
kustomize/v5.2.1
2023-10-19 15:11:23 -05:00
koba1t
289e78c136
fix release binary archive contains unnecessary dir
2023-10-20 04:00:13 +09:00
Kubernetes Prow Robot
001ab61b37
Merge pull request #5395 from koba1t/pinToApi
...
Update api to v0.15.0
kustomize/v5.2.0
2023-10-19 19:57:18 +02:00
koba1t
16395012d1
Update api to v0.15.0
2023-10-20 02:36:50 +09:00
Kubernetes Prow Robot
5497967665
Merge pull request #5394 from koba1t/pinToCmdConfig
...
Update cmd/config to v0.12.0
api/v0.15.0
2023-10-19 19:27:53 +02:00
koba1t
0115ae6da4
Update cmd/config to v0.12.0
2023-10-20 02:11:11 +09:00
Kubernetes Prow Robot
bb5022441a
Merge pull request #5393 from koba1t/pinToKyaml
...
Update kyaml to v0.15.0
cmd/config/v0.12.0
2023-10-19 18:59:14 +02:00
koba1t
8668b74622
Update kyaml to v0.15.0
2023-10-20 01:07:49 +09:00
Kubernetes Prow Robot
752bb2ef41
Merge pull request #5303 from antoooks/refactor/ci-tasks-improvement-new
...
refactor/ci tasks improvement new
kyaml/v0.15.0
2023-10-19 09:41:50 +02:00
Kubernetes Prow Robot
bde28b1320
Merge pull request #5324 from charles-chenzz/fix_doc_refs
...
update deprecated doc refs
2023-10-18 17:41:01 +02:00
Kubernetes Prow Robot
689dcefa3a
Merge pull request #5378 from kubernetes-sigs/dependabot/go_modules/cmd/depprobcheck/golang.org/x/net-0.17.0
...
build(deps): bump golang.org/x/net from 0.8.0 to 0.17.0 in /cmd/depprobcheck
2023-10-18 16:05:15 +02:00
dependabot[bot]
f3e263a051
build(deps): bump golang.org/x/net in /cmd/depprobcheck
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.8.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.8.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-18 13:27:09 +00:00
Kubernetes Prow Robot
fa48ab16bf
Merge pull request #5377 from kubernetes-sigs/dependabot/go_modules/functions/examples/application-cr/image/golang.org/x/net-0.17.0
...
build(deps): bump golang.org/x/net from 0.8.0 to 0.17.0 in /functions/examples/application-cr/image
2023-10-18 15:25:21 +02:00
dependabot[bot]
0eca5c4b06
build(deps): bump golang.org/x/net
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.8.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.8.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-17 19:51:16 +00:00