m-Bilal
b28f1e55b7
fixes 4240; added null check on namespace when resource is a RoleBinding
2021-11-27 19:53:49 +05:30
Kubernetes Prow Robot
25ee506af4
Merge pull request #4300 from yuwenma/refactor-builtin
...
Move api/builtin to internal
2021-11-22 16:04:16 -08:00
Yuwen Ma
a1c5d79d94
Move api/builtin to internal
2021-11-22 15:54:18 -08:00
Yuwen Ma
d9c4c749e2
improve docs with examples for nameReference
2021-11-22 13:10:13 -08:00
Mengqi Yu
bd7bad19a1
add to BuildAnnotations
2021-11-19 12:13:12 -08:00
Mengqi Yu
166c2e766b
update tests for api module
2021-11-19 07:30:31 -08:00
Katrina Verey
4bcc57de74
Back to development mode; unpin the modules
2021-11-11 15:49:01 -08:00
Katrina Verey
9abb72e4d6
Pin to kyaml v0.13.0
2021-11-11 14:12:13 -08:00
Kubernetes Prow Robot
0676d0bd11
Merge pull request #4266 from Serializator/issue-4111-patchJson6902
...
Fix name suffix not being applied when "patchesJson6902" is used
2021-11-10 15:13:50 -08:00
Julian van den Berkmortel
b6cb6c8ae9
fix build annotations getting lost after applying JSON 6902 patch
2021-11-10 23:02:42 +01:00
Julian van den Berkmortel
b16e4ec566
add test to demonstrate internal annotations getting lost ( #4111 )
2021-11-10 21:33:50 +01:00
natasha41575
d8f406d06f
add omitempty tag to replacement sources and targets
2021-11-08 12:33:30 -08:00
Kubernetes Prow Robot
37ab5579f0
Merge pull request #4229 from natasha41575/annotationAndLabelSelectionInReplacements
...
Annotation and label selection in replacement targets
2021-11-04 13:08:23 -07:00
natasha41575
ef5f1d347d
support label and annotation selection in replacement targets
2021-11-04 12:25:15 -07:00
Natasha Sarkar
71b978da1a
Merge pull request #4253 from natasha41575/resourceListSDKHelpers
...
provide utility helpers for preserving internal annotations
2021-10-29 14:25:06 -07:00
natasha41575
b4a69f08c0
provide utility helpers for preserving internal annotations
2021-10-29 12:30:55 -07:00
natasha41575
ba051c863b
fix issue with quote being dropped in configmap generation
2021-10-14 18:30:28 -07:00
natasha41575
4d59146e48
test for dropped quote in configmap generation
2021-10-14 18:13:49 -07:00
natasha41575
605239a1e5
test to demonstrate broken annotation selection
2021-10-07 15:40:23 -07:00
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