Kubernetes Prow Robot
5dff9df1f7
Merge pull request #5099 from justinsb/dont_swallow_helm_errors
...
Don't swallow helm execution errors
2023-03-20 12:35:09 -07:00
justinsb
c151147258
Don't swallow helm execution errors
...
These are otherwise hard to debug.
2023-03-20 19:14:07 +00:00
justinsb
317fcadccb
Fix unused error value
...
The linter was complaining about err being unchecked.
2023-03-20 19:11:11 +00:00
Katrina Verey
0c92647760
Back to development mode; unpin the modules
2023-03-13 21:43:46 -04:00
Katrina Verey
0c650423ed
Update kyaml to v0.14.1
2023-03-13 19:24:20 -04:00
Katrina Verey
8338873e56
Changes from local test run
2023-03-13 18:40:16 -04:00
Katrina Verey
dd520f8889
Revert strict decoding of Kustomization due to regression in anchor handling ( #5073 )
...
* Revert strict decoding of Kustomization due to regression in anchor handling
* Empty commit
2023-03-13 13:46:47 -07:00
Carl Henrik Lunde
4842d8be60
perf: Intersection: Avoid callid AllIds inside inner loop
...
This shaves of another 8.5 seconds (one third) of the remaining execution
time for a kustomization tree with 4000 documents, reducing the execution
time from 27.46s to 18.94s
0.02s 0.062% 11.14% 8.45s 26.36% sigs.k8s.io/kustomize/api/internal/accumulator.(*ResAccumulator).Intersection
0.06s 0.19% 11.32% 8.32s 25.95% sigs.k8s.io/kustomize/api/resmap.(*resWrangler).AllIds
before
(pprof) top25 -cum
Showing nodes accounting for 3.63s, 11.32% of 32.06s total
Dropped 614 nodes (cum <= 0.16s)
Showing top 25 nodes out of 171
flat flat% sum% cum cum%
0 0% 0% 27.46s 85.65% github.com/spf13/cobra.(*Command).Execute
0 0% 0% 27.46s 85.65% github.com/spf13/cobra.(*Command).ExecuteC
0 0% 0% 27.46s 85.65% github.com/spf13/cobra.(*Command).execute
0 0% 0% 27.46s 85.65% main.main
0 0% 0% 27.46s 85.65% runtime.main
0 0% 0% 27.46s 85.65% sigs.k8s.io/kustomize/kustomize/v5/commands/build.NewCmdBuild.func1
0 0% 0% 26.95s 84.06% sigs.k8s.io/kustomize/api/krusty.(*Kustomizer).Run
0 0% 0% 22.09s 68.90% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).MakeCustomizedResMap (inline)
0 0% 0% 22.09s 68.90% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).makeCustomizedResMap
0.29s 0.9% 0.9% 20.96s 65.38% sigs.k8s.io/kustomize/api/resource.(*Resource).CurId
0 0% 0.9% 13.61s 42.45% sigs.k8s.io/kustomize/api/resmap.(*resWrangler).Append
0 0% 0.9% 13.60s 42.42% sigs.k8s.io/kustomize/api/resmap.(*resWrangler).GetMatchingResourcesByCurrentId (partial-inline)
0.14s 0.44% 1.34% 13.60s 42.42% sigs.k8s.io/kustomize/api/resmap.(*resWrangler).filteredById
0.05s 0.16% 1.50% 12.91s 40.27% sigs.k8s.io/kustomize/api/resmap.GetCurrentId
0.25s 0.78% 2.28% 12.48s 38.93% sigs.k8s.io/kustomize/api/resource.(*Resource).GetGvk (inline)
0.49s 1.53% 3.81% 12.23s 38.15% sigs.k8s.io/kustomize/kyaml/resid.GvkFromNode
0 0% 3.81% 11.61s 36.21% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).IgnoreLocal
0 0% 3.81% 10.47s 32.66% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).AccumulateTarget
0 0% 3.81% 10.47s 32.66% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).accumulateTarget
0.01s 0.031% 3.84% 10.46s 32.63% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).accumulateResources
0 0% 3.84% 10.43s 32.53% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).accumulateDirectory
0.64s 2.00% 5.83% 10.12s 31.57% sigs.k8s.io/kustomize/kyaml/yaml.visitMappingNodeFields
1.68s 5.24% 11.07% 9.48s 29.57% sigs.k8s.io/kustomize/kyaml/yaml.visitFieldsWhileTrue
0.02s 0.062% 11.14% 8.45s 26.36% sigs.k8s.io/kustomize/api/internal/accumulator.(*ResAccumulator).Intersection
0.06s 0.19% 11.32% 8.32s 25.95% sigs.k8s.io/kustomize/api/resmap.(*resWrangler).AllIds
after
(pprof) top30 -cum
Showing nodes accounting for 5.04s, 22.63% of 22.27s total
Dropped 540 nodes (cum <= 0.11s)
Showing top 30 nodes out of 209
flat flat% sum% cum cum%
0 0% 0% 18.94s 85.05% github.com/spf13/cobra.(*Command).Execute
0 0% 0% 18.94s 85.05% github.com/spf13/cobra.(*Command).ExecuteC
0 0% 0% 18.94s 85.05% github.com/spf13/cobra.(*Command).execute
0 0% 0% 18.94s 85.05% main.main
0 0% 0% 18.94s 85.05% runtime.main
0 0% 0% 18.94s 85.05% sigs.k8s.io/kustomize/kustomize/v5/commands/build.NewCmdBuild.func1
0 0% 0% 18.40s 82.62% sigs.k8s.io/kustomize/api/krusty.(*Kustomizer).Run
0 0% 0% 13.65s 61.29% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).MakeCustomizedResMap (inline)
0 0% 0% 13.65s 61.29% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).makeCustomizedResMap
0 0% 0% 13.52s 60.71% sigs.k8s.io/kustomize/api/resmap.(*resWrangler).Append
0 0% 0% 13.44s 60.35% sigs.k8s.io/kustomize/api/resmap.(*resWrangler).GetMatchingResourcesByCurrentId (inline)
0.16s 0.72% 0.72% 13.44s 60.35% sigs.k8s.io/kustomize/api/resmap.(*resWrangler).filteredById
0.04s 0.18% 0.9% 12.54s 56.31% sigs.k8s.io/kustomize/api/resmap.GetCurrentId
0.19s 0.85% 1.75% 12.49s 56.08% sigs.k8s.io/kustomize/api/resource.(*Resource).CurId
0 0% 1.75% 10.37s 46.56% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).AccumulateTarget
0 0% 1.75% 10.37s 46.56% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).accumulateResources
0 0% 1.75% 10.37s 46.56% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).accumulateTarget
0 0% 1.75% 10.34s 46.43% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).accumulateDirectory
0.19s 0.85% 2.60% 7.82s 35.11% sigs.k8s.io/kustomize/api/resource.(*Resource).GetGvk (inline)
0.42s 1.89% 4.49% 7.63s 34.26% sigs.k8s.io/kustomize/kyaml/resid.GvkFromNode
0.26s 1.17% 5.66% 6.01s 26.99% sigs.k8s.io/kustomize/kyaml/yaml.visitMappingNodeFields
0 0% 5.66% 5.76s 25.86% sigs.k8s.io/kustomize/api/internal/accumulator.(*ResAccumulator).MergeAccumulator
1.12s 5.03% 10.69% 5.75s 25.82% sigs.k8s.io/kustomize/kyaml/yaml.visitFieldsWhileTrue
0 0% 10.69% 5.57s 25.01% sigs.k8s.io/kustomize/api/resmap.(*resWrangler).appendAll (inline)
0 0% 10.69% 5.55s 24.92% sigs.k8s.io/kustomize/api/internal/accumulator.(*ResAccumulator).AppendAll (inline)
0 0% 10.69% 5.55s 24.92% sigs.k8s.io/kustomize/api/resmap.(*resWrangler).AppendAll
0 0% 10.69% 4.73s 21.24% sigs.k8s.io/kustomize/api/internal/builtins.(*SortOrderTransformerPlugin).Transform
0 0% 10.69% 4.73s 21.24% sigs.k8s.io/kustomize/api/krusty.(*Kustomizer).applySortOrder
0 0% 10.69% 4.72s 21.19% sigs.k8s.io/kustomize/api/internal/builtins.applyOrdering
2.66s 11.94% 22.63% 4.63s 20.79% sigs.k8s.io/kustomize/kyaml/yaml.visitMappingNodeFields.func2
2023-03-12 15:50:11 +01:00
koba1t
e1094da3cf
skip unrelevant lint
2023-03-11 05:11:47 +09:00
Kubernetes Prow Robot
7a89df8350
Merge pull request #5048 from cailynse/issue-5039
...
Remove Log Assignment to Stdout
2023-02-21 11:23:56 -08:00
Cailyn Edwards
7c33fe30b7
Remove Log Assignment to Stdout
2023-02-21 10:53:22 -05:00
Katrina Verey
51e2714408
Back to development mode; unpin the modules
2023-02-07 19:56:39 -05:00
Katrina Verey
c0e2030905
Fix regression with scp-style urls with only one path element
2023-02-01 22:19:40 -05:00
Katrina Verey
e9507c940d
Update kyaml to v0.14.0
2023-02-01 16:44:34 -05:00
Cailyn
95edcc0681
Update Versioning to Improve Output ( #5000 )
...
* Update Versioning to Improve Output
* Always get commit from build info, always get date and version from ldflag
* Just replace broken main output with semver and deprecate short flag as is
---------
Co-authored-by: Katrina Verey <katrina.verey@shopify.com >
2023-02-01 11:25:37 -08:00
Anna Song
9d8ed39d3d
Localize helm additionValuesFiles ( #5013 )
2023-02-01 10:39:20 -08:00
Natasha Sarkar
1957d5c746
support for more helm template args ( #4926 )
...
* support for more helm template args
* move templateArgs and unit tests to api/types
* undo package name change
* use our own simple helm chart instead of forking one
* add argument to AsHelmArgs
* code review
* lint errors
2023-02-01 10:19:05 -08:00
natasha41575
c8b112c79f
make TestResourcesRepoNotFile even less specific
2023-01-31 12:58:55 -06:00
Anna Song
e2aff13587
Expose path to localize destination
2023-01-30 15:42:58 -08:00
Anna Song
361154dabc
Localize HelmChartInflationGenerator ( #5007 )
...
* Localize HelmChartInflationGenerator
* Add explicit inline generators test
2023-01-30 13:16:48 -08:00
Anna Song
142360b0ed
Localize ConfigMapGenerator, SecretGenerator
2023-01-27 14:06:40 -08:00
Cailyn Edwards
90281a62e0
Make TestResourcesRepoNotFile Less Specific
2023-01-26 16:39:30 -05:00
Anna Song
fb294921f5
Localize helm fields ( #4978 )
...
* Localize helm fields
* Address readability feedback
* Handle edge cases
* Improve readability
Split copyChartHome and use existence to prevent repeated copying.
2023-01-26 12:56:26 -08:00
Kubernetes Prow Robot
af9a13111b
Merge pull request #4944 from ephesused/optimize-getannotations-2
...
Refactor mapping node traversal and optimize RNode.GetAnnotations and RNode.GetLabels
2023-01-26 12:18:25 -08:00
Katrina Verey
8b21844b10
Do not use filepath.Separator for splitting URLs
2023-01-24 18:10:34 -05:00
Katrina Verey
d315600e5e
remove redundant type meta in tests
2023-01-24 17:59:36 -05:00
Kubernetes Prow Robot
8f75682b9c
Merge pull request #4834 from elisshafer/generators/retain_disable_suffix_hash
...
api/resource: retain disableNameSuffixHash on merge and replace
2023-01-24 09:50:19 -08:00
Anna Song
298b87a223
Fix master
...
Fix RepoSpec build errors as result of merging 2 RepoSpec PRs in parallel
2023-01-23 13:21:55 -08:00
Kubernetes Prow Robot
a69092c4b7
Merge pull request #4986 from KnVerey/repospec_custom_usernames
...
repospec: support ssh urls with ssh certificates
2023-01-20 13:23:54 -08:00
Kubernetes Prow Robot
0a1aa7c2cb
Merge pull request #4985 from KnVerey/repospec-git-suffix
...
Proposal: Remove RepoSpec manipulation of .git suffix
2023-01-20 13:16:01 -08:00
Kubernetes Prow Robot
89d3ca1757
Merge pull request #4973 from KnVerey/remove-inventory-field
...
Remove long-ignored Inventory field from Kustomization type
2023-01-20 13:15:53 -08:00
Katrina Verey
2405da65d2
repospec: support ssh urls with ssh certificates
2023-01-17 23:25:07 -05:00
Katrina Verey
7e000aa820
Remove manipulation of .git suffix, which is just a conventional part of the directory name
2023-01-17 23:04:16 -05:00
Kubernetes Prow Robot
dbc11a43a8
Merge pull request #4983 from KnVerey/repospec_separators
...
Refactor parseGitURL
2023-01-17 17:22:34 -08:00
Kubernetes Prow Robot
ec4d1e802b
Merge pull request #4974 from annasong20/expose-localize-test-helpers
...
Expose localize test helpers
2023-01-17 12:28:41 -08:00
Anna Song
7899b80a00
Localize patch, ReplacementTransformer ( #4943 )
...
* Localize PatchStrategicMergeTransformer, ReplacementTransformer
* Improve readability
2023-01-17 12:28:34 -08:00
Katrina Verey
00208394d6
Refactor parseGitURL to consolidate code paths, improve error handling
2023-01-16 20:36:19 -05:00
Olivier Lemasle
aaf9d39975
Bump k8s.io/kube-openapi to remove archived dependency
...
Bump k8s.io/kube-openapi to remove archived dependency github.com/PuerkitoBio/urlesc
2023-01-13 20:50:59 +01:00
Cailyn
8ab4b8d167
remove direct dependency on github/pkg/errors ( #4970 )
2023-01-13 10:52:25 -08:00
Katrina Verey
2b38c12c83
Add uncommitted plugin change and missing makefile dep
2023-01-13 12:53:35 -05:00
Katrina Verey
d70315fed6
Remove Inventory field from Kustomization
...
This field has not done anything since v3.5.5. It was missed in the cleanup in https://github.com/kubernetes-sigs/kustomize/pull/2421
2023-01-12 19:11:44 -05:00
Anna Song
dc34520ac1
Expose localizer test helpers
...
Expose helpers for later use by localize command handle tests
2023-01-12 10:14:44 -08:00
Kubernetes Prow Robot
da5d572df2
Merge pull request #4954 from KnVerey/more_repospec
...
Iteration on parseHostSpec refactor
2023-01-10 13:25:26 -08:00
Katrina Verey
3134e9b0c2
Better SCP colon-must-be-after-slash test
2023-01-10 16:14:54 -05:00
Katrina Verey
c2885642d6
Remove unused param
2023-01-10 15:01:29 -05:00
Katrina Verey
a885ee12c6
Add test for behaviour of scp-like non-github that incorrectly uses slash
2023-01-09 17:32:29 -05:00
Katrina Verey
1a201ab913
do not validate against http+usernames after all
2023-01-09 17:25:10 -05:00
Katrina Verey
240282fc6f
Allow file paths that look like usernames
2023-01-09 17:15:40 -05:00
Kubernetes Prow Robot
445622147f
Merge pull request #4889 from fengshunli/vuln
...
fix: all module net and text dependent package CVE-2022-41717 and CVE-2022-32149 vulnerabilities
2023-01-09 11:45:29 -08:00
Katrina Verey
ddf14ea688
Deprecate git:: stripping
2023-01-09 13:18:11 -05:00