natasha41575
11e19a3d0f
separate custom openapi test from the others
2021-10-04 18:48:54 -07:00
natasha41575
0d8c107362
fix issue with openapi schema from components
2021-09-27 17:00:14 -07:00
natasha41575
f30e45c549
test to demonstrate issue with openapi from components ( #4179 )
2021-09-27 16:29:08 -07:00
Katrina Verey
40c014a991
Back to development mode; unpin the modules
2021-09-27 09:37:38 -07:00
Katrina Verey
6fb944815b
Pin to kyaml v0.12.0
2021-09-24 12:23:09 -07:00
Jeff Regan
dd579c905d
Merge pull request #4180 from yuwenma/fix-4124
...
[Fix 4124] Skip local resource until all transformations have completed.
2021-09-24 08:05:19 -07:00
Jeff Regan
22b735885a
Merge pull request #4190 from natasha41575/MigrateIndexPathIdAnnotations
...
Migrate index path id annotations
2021-09-24 08:00:15 -07:00
monopole
dce4ea5846
Add AnchorsAweigh option to ByteReader to toggle YAML alias/anchor expansion
2021-09-22 12:44:08 -07:00
Natasha Sarkar
67a5f6d68f
support krm spec v1 and legacy path, index, and id annotations
2021-09-17 17:10:10 -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
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
monopole
e17a007719
Clean up factor_test before adding DeAnchor call
2021-09-15 17:26:50 -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
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
Katrina Verey
f93b4877f7
Back to development mode; unpin the modules
2021-08-24 12:35:26 -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.
2021-08-24 09:51:49 -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
monopole
360585dfaf
Add YAML anchor/alias expansion.
2021-08-19 11:55:09 -07:00
Jeff Regan
6c4e8019f8
Merge pull request #4094 from brianpursley/merge3-test
...
Add unit tests to cover existing behavior of three way merge and strategic merge patch
2021-08-19 07:41:18 -07:00
Jeff Regan
28707bf5df
Merge pull request #4065 from natasha41575/originDataAsAnnotation
...
option for origin data as annotation
2021-08-18 19:08:54 -07:00
Natasha Sarkar
3350c7213c
option for origin data as annotation
2021-08-12 20:09:41 -07:00
Natasha Sarkar
38b2b33503
update openapi to v1.21.2
2021-08-10 10:30:12 -07:00
brianpursley
aabbea3e78
Add unit tests for current behavior of strategic merge patch
2021-08-02 20:36:55 -04:00
Natasha Sarkar
9a27a9f19f
replace genargs with two separate annotations
2021-07-29 15:46:09 -07:00
Natasha Sarkar
97e7cb1512
remove annotations added by the kyaml reader
2021-07-27 17:56:58 -07:00
monopole
d1003d6f8f
Automated changes under go 1.16.6
2021-07-24 09:18:58 -07:00
Natasha Sarkar
91f74e8d16
replace Resource.options with annotations ( #4061 )
2021-07-23 18:19:05 -07:00
Natasha Sarkar
0537b59f27
support yaml formatted openapi schema ( #4017 )
...
* support yaml formatted openapi schema
* suggested changes
2021-07-15 14:11:02 -07:00
Kubernetes Prow Robot
7826ad1e06
Merge pull request #4031 from rjferguson21/prefix-overlay-fail
...
Add failing test for replacements when using an overlay with a namePrefix
2021-07-13 14:42:01 -07:00
Rob Ferguson
91dc6d2a0f
add additional replacement transformer test with todos for failures
2021-07-09 12:45:47 -05:00
Rob Ferguson
3c1fd0e9cf
add replacement test failures
2021-07-09 10:39:38 -05:00
Rob Ferguson
4deeb7d59b
make replacement transformer test pass and add todo
2021-07-09 09:49:08 -05:00
Kubernetes Prow Robot
259fcfcef8
Merge pull request #4002 from natasha41575/resref
...
replace Resource.refBy with annotations
2021-07-08 17:26:54 -07:00
Natasha Sarkar
a84badb834
replace Resource.refBy with annotations
2021-07-07 15:22:36 -07:00
Haibing Zhou
8c14b9d1af
api/internal/git: handle .git suffix in repospec
...
This change adds a new test case for parsing url with `.git` suffix. In
that case, we should have the full url as clone spec with an empty
abspath.
2021-07-05 13:10:35 -07:00
Natasha Sarkar
4cea8b9785
Unpin modules
2021-07-02 14:10:05 -07:00
Rob Ferguson
2a5f4ac7d7
add failing test for replacements
2021-07-02 08:54:52 -05:00
Katrina Verey
aa92d83d8c
Pin to kyaml ( #4020 )
...
* Pin to kyaml
* Pin prefixsuffixtransformer to kyaml 0.11.0
* Pin replicacounttransformer to kyaml 0.11.0
2021-06-30 11:59:03 -07:00
Katrina Verey
b465c20f65
Remove pinning to external fork
2021-06-30 10:15:02 -07:00
Natasha Sarkar
c8b049f57f
point to natasha's fork
2021-06-30 10:14:33 -07:00
Jeff Regan
936ac37a2e
Update repospec_test.go
2021-06-21 14:30:11 -07:00
Francesc Campoy
7fae7d1bd6
Move api/filesys to kyaml/filesys ( #3997 )
...
* Move api/filesys to kyaml/filesys
* Add deprecated version of api/filesys with aliases to new code
* Use new kyaml/filesys package and update dependencies
* Migrate to kyaml/filesys and update dependencies
* Skip tests that break on Windows
2021-06-16 11:42:00 -07:00
Kubernetes Prow Robot
d39d7db9ed
Merge pull request #3966 from pacoxu/json-patch-v4.11.0
...
json-patch upgrade to v4.11.0
2021-06-15 15:25:43 -07:00