Phani Teja Marupaka
e997cc5486
Handle parsing of bare sequence yaml nodes
2021-09-17 14:19:27 -07:00
Kubernetes Prow Robot
53577a5190
Merge pull request #4176 from m-Bilal/fix-4123
...
Fixes 4123; Length check on originalFields of kustomizationFile to prevent panic
2021-09-16 13:15:27 -07:00
Kubernetes Prow Robot
c1ae234a64
Merge pull request #4163 from natasha41575/multipleGvksInOpenApi
...
support multiple gvks in custom openapi schema
2021-09-16 12:59:26 -07:00
Natasha Sarkar
02cb395ec2
support multiple gvks in custom openapi schema
2021-09-16 12:43:18 -07:00
Kubernetes Prow Robot
65e7529ca0
Merge pull request #4097 from natasha41575/deprecateFn
...
deprecate fn wrap, xargs, sink, source commands
2021-09-16 12:25:27 -07:00
Natasha Sarkar
f70743b267
deprecate some fn commands
2021-09-16 11:48:02 -07:00
Yuwen Ma
f4382738ab
[fix 4124] Skip local resource until all transformations have completed.
...
Resources annotated as "local-config" are expected to be ignored. This skip local resource happens in "accumulateResources" which happens before any transformation operations.
However, the local resource may be needed in transformations.
Thus, this change removes the "drop local resource" logic from accumulateResources and removes these local resource after all transformation operations and var operations are done.
Note:
None of the existing ResMap functions can drop the resource slice easily: "Clear" will ruin the resource order, "AppendAll" only adds non-existing resource, "AbsorbAll" only add or modify but not delete.
Thus, we introduce a new func "Intersection" for resourceAccumulator that specificaly removes the resource by ID and keep the original order.
2021-09-16 11:15:05 -07:00
Yuwen Ma
a100dca303
[Fix 4124] Add unittest with the given example.
2021-09-16 11:14:07 -07:00
Jeff Regan
50414208d1
Merge pull request #4186 from monopole/cleanupTest
...
Clean up factor_test before adding DeAnchor call
2021-09-15 17:47:19 -07:00
monopole
e17a007719
Clean up factor_test before adding DeAnchor call
2021-09-15 17:26:50 -07:00
Katrina Verey
dd3c5f5c0a
Use standard Kubernetes project roles for ownership
2021-09-15 16:04:58 -07:00
Sylvain Rabot
fb3f560e0c
Upgrade Helm v3 to v3.6.3
...
Helm has started to build darwin/arm64 from v3.6.0.
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr >
2021-09-12 18:18:41 +02:00
m-Bilal
12c177a365
fixes 4123; added length check on originalFields of kustomizationFile to prevent panic when kustomization file began with a comment(or a blank line) followed by a document separator
2021-09-12 17:35:23 +05:30
John Howard
402f6ca72b
Precompute IsNamespaceScoped to avoid expensive schema reads ( #4152 )
...
* Precompute IsNamespaceScoped to avoid expensive schema reads
See https://github.com/GoogleContainerTools/kpt/issues/2469
For the `gcr.io/kpt-fn/set-namespace:v0.1` function, over 50% of CPU
time is spent on IsNamespaceScoped. Instead of unmarshalling 100k lines
of JSON to determine this, instead just precompute it. We can ensure
this never is inaccurate as the test verifies the precomputed result is
up to date.
In real world kpt pipelines this cuts execution of set-namespace (and
similar functions, just an example of a trivial function) from 2.0s to
1.0s. Because these functions are run in long pipelines over many
resources, this adds up a lot.
* Add documentation
2021-09-09 10:08:11 -07:00
Kubernetes Prow Robot
2b8a39373e
Merge pull request #4172 from phanimarupaka/CopyReferenceNodesBeforeComparing
...
Copy reference nodes before copying comments and syncing order
2021-09-08 11:29:56 -07:00
Phani Teja Marupaka
17f18604e4
Copy reference nodes before copying comments and syncing order
2021-09-07 16:58:06 -07:00
Kubernetes Prow Robot
99e404cb61
Merge pull request #4169 from invidian/fix-typo
...
api/krusty: fix typo fileystem -> filesystem
2021-09-07 11:41:17 -07:00
Kubernetes Prow Robot
d4e3b4f832
Merge pull request #4171 from justinsb/cache_orgid
...
Cache the OrgId for nameReferenceTransformer
2021-09-07 11:17:16 -07:00
Justin SB
6552b90657
Cache the OrgId for nameReferenceTransformer
...
Because this is in an inner loop and is fairly memory-allocation
expensive even on a single allocation, it comes up top-of-the-list in
memory allocation pprof profiles, for example with the coredns
ClusterAddon.
Add simple caching.
2021-09-07 14:06:38 -04:00
Mateusz Gozdek
bf57d698b1
api/krusty: fix typo fileystem -> filesystem
...
Part of https://github.com/kubernetes/kubernetes/pull/104747 .
Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com >
2021-09-05 11:33:10 +02:00
Kubernetes Prow Robot
4d002af735
Merge pull request #4165 from natasha41575/nameRefAfterKindChange
...
update name references after kind change
2021-09-03 12:56:52 -07:00
Natasha Sarkar
2bfc7cc1b0
throw error instead of panic when replacements source.fieldPath doesn't exist ( #4166 )
...
* test for missing source.fieldPath in replacements
* throw error instead of panic when replacements source.fieldPath doesn't exist
2021-09-03 11:10:53 -07:00
Natasha Sarkar
0244f0919e
update name references after kind change
2021-09-02 12:10:01 -07:00
Natasha Sarkar
f122fb12f3
Merge pull request #4158 from kubernetes-sigs/revert-4157-fix/github-rate-limiter-output
...
Revert "Return a meaningful message if we hit the rate-limiter of GitHub"
2021-08-31 13:29:11 -07:00
Osher De Paz
f7cd553044
return a meaningful message if we hit the rate-limiter of GitHub
2021-08-31 23:26:49 +03:00
Natasha Sarkar
7d0b7e2113
Revert "Return a meaningful message if we hit the rate-limiter of GitHub"
2021-08-31 13:13:36 -07:00
Kubernetes Prow Robot
c3a67cfdca
Merge pull request #4157 from osherdp/fix/github-rate-limiter-output
...
Return a meaningful message if we hit the rate-limiter of GitHub
2021-08-31 12:42:22 -07:00
Osher De Paz
4315e982be
return a meaningful message if we hit the rate-limiter of GitHub
2021-08-31 16:19:39 +03:00
Kubernetes Prow Robot
634464353f
Merge pull request #4128 from KnVerey/mini_proposal_process
...
Introduce in-repo proposal process
2021-08-30 17:22:28 -07:00
Kubernetes Prow Robot
9c36004493
Merge pull request #4143 from KnVerey/release_updates
...
Release updates
2021-08-30 16:08:29 -07:00
Katrina Verey
1b1034442c
Enable real release after dry run without manual cleanup
2021-08-30 15:09:40 -07:00
Katrina Verey
a89863c84c
Update release instructions
2021-08-30 15:09:40 -07:00
Katrina Verey
f7340e0615
Proposal template feedback
2021-08-30 12:10:02 -07:00
Kubernetes Prow Robot
bf6b207cc9
Merge pull request #4141 from KnVerey/unpinEverything
...
Back to development mode; unpin the modules
2021-08-24 12:46:58 -07:00
Katrina Verey
f93b4877f7
Back to development mode; unpin the modules
2021-08-24 12:35:26 -07:00
Kubernetes Prow Robot
cd17338759
Merge pull request #4139 from KnVerey/pinToApi
...
Pin to api v0.9.0
kustomize/v4.3.0
2021-08-24 12:04:58 -07:00
Katrina Verey
c46867c3a7
Pin to api v0.9.0
2021-08-24 11:54:43 -07:00
Kubernetes Prow Robot
3c321ef79c
Merge pull request #4138 from KnVerey/pinToCmdConfig
...
Pin to cmd/config v0.10.0
api/v0.9.0
2021-08-24 11:38:58 -07:00
Katrina Verey
7938fdb596
Pin to cmd/config v0.10.0
2021-08-24 11:27:56 -07:00
Kubernetes Prow Robot
a2111869e6
Merge pull request #4137 from KnVerey/pinToKyaml
...
Pin to kyaml v0.11.1
cmd/config/v0.10.0
2021-08-24 11:10:59 -07:00
Katrina Verey
f8288e2f02
Pin to kyaml v0.11.1
2021-08-24 10:59:16 -07:00
Jeff Regan
f2f90d1185
Merge pull request #4114 from monopole/anchorsAweigh
...
Add YAML anchor/alias expansion.
kyaml/v0.11.1
2021-08-24 09:51:49 -07:00
Kubernetes Prow Robot
459e800ecf
Merge pull request #4134 from phanimarupaka/FieldOrderingForNullFields
...
Preserve field order: Add test for null value
2021-08-23 16:44:14 -07:00
Phani Teja Marupaka
8f00d3fd53
Add test for null value
2021-08-21 15:58:49 -07:00
Kubernetes Prow Robot
cd94cb13c6
Merge pull request #4132 from natasha41575/moveWorkDirCheck
...
move check for working dir for exec functions
2021-08-20 11:11:31 -07:00
Natasha Sarkar
e100be620e
move check for working dir for exec functions
2021-08-20 10:59:29 -07:00
Natasha Sarkar
1e1b9b484a
exec function working dir is the kustomization that referenced it ( #4125 )
...
* exec function working dir is the kustomization that referenced it
* suggested changes
* more code review
* use a field instead of an annotation
* more code review
2021-08-19 20:15:24 -07:00
Katrina Verey
3e7246690f
Introduce in-repo proposal process
2021-08-19 17:00:20 -07:00
monopole
360585dfaf
Add YAML anchor/alias expansion.
2021-08-19 11:55:09 -07:00
Kubernetes Prow Robot
f604619dd5
Merge pull request #4086 from campoy/pkgio-writer-filesys
...
Add FileSystem interface to LocalPackageWriter
2021-08-19 11:51:25 -07:00