phani
0f736ec7fd
Handle comments for seq indent derivation ( #4064 )
...
* Handle comments for seq indent derivation
* Suggested changes
2021-07-13 17:46:26 -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
Frank Farzan
f4e6816338
Expand documentation of annotations used in manifests and KRM functions API ( #3995 )
...
* Expand documentation of annotations used in manifests and KRM function wire format.
- Reserve `internal.config.kubernetes.io` for control annotations
- Document `local-config` annotation in a seperate document (It's
orthogonal to KRM functions).
- There is a internal annotation that uses `config.k8s.io` instead of
`config.kubernetes.io` used by other annotations. See [1] and [2]. We
should avoid using two seperate annotation prefixes and audit the
codebase for any other annotation. Given the `id` control annotation is used
for comment preservation (no existing function should be modifying
it), I suggest moving this over to use
`fn-ctrl.config.kubernets.io/id`.
[1]: 7e8ba62e9f/kyaml/fn/runtime/runtimeutil/runtimeutil.go (L195)
[2]: https://github.com/kubernetes-sigs/kustomize/pull/2465
* Move path/index annotation to use internal prefix
* Clarify MUST NOT vs SHOULD NOT for internal annotations
* Update cmd/config/docs/api-conventions/functions-spec.md
Co-authored-by: Katrina Verey <kn.verey@gmail.com >
* Update cmd/config/docs/api-conventions/functions-spec.md
Co-authored-by: Katrina Verey <kn.verey@gmail.com >
* Update cmd/config/docs/api-conventions/manifest-annotations.md
Co-authored-by: Katrina Verey <kn.verey@gmail.com >
* Remove kusotmization as example
Co-authored-by: Katrina Verey <kn.verey@gmail.com >
2021-07-13 11:58:00 -07:00
Kubernetes Prow Robot
4a13725678
Merge pull request #4043 from phanimarupaka/PreserveIndentation
...
Make seq indent configurable and add retain seq indent functionality
2021-07-13 10:24:30 -07:00
Phani Teja Marupaka
29be7fabe4
Suggested changes
2021-07-12 23:34:03 -07:00
Phani Teja Marupaka
74e867833a
First sequence indent wins
2021-07-09 14:10:30 -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
Phani Teja Marupaka
89b12cfc62
Change annotation name, error if conflicting options
2021-07-09 01:32:48 -07:00
Phani Teja Marupaka
c07ffa5c1e
Update comments, tests, not expose indent option
2021-07-09 00:17:09 -07: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
Phani Teja Marupaka
f81201b74d
Add options, keep seqindent annotation equivalent to index annotation
2021-07-08 14:54:23 -07:00
Phani Teja Marupaka
6dbc74b32e
Suggested changes
2021-07-07 23:22:15 -07:00
Phani Teja Marupaka
ed38b5fe2b
Make seq indent configurable and add retain seq indent functionality
2021-07-07 16:53:40 -07:00
Natasha Sarkar
a84badb834
replace Resource.refBy with annotations
2021-07-07 15:22:36 -07:00
phani
e1804cbc76
Retain field order after running any arbitrary functions on resources ( #4021 )
...
* Reorder resource fields
* Fix comment conflict
* Update e2e test ordering
* Suggested changes
2021-07-07 10:12:44 -07:00
Kubernetes Prow Robot
d13eef7951
Merge pull request #4040 from zhouhaibing089/fix-iampolicy-mod
...
iampolicygenerator: update module name
2021-07-07 09:46:44 -07:00
Kubernetes Prow Robot
0b4c6baf44
Merge pull request #4039 from zhouhaibing089/handle-dot-git-suffix
...
api/internal/git: handle .git suffix in repospec
2021-07-07 09:24:43 -07:00
Haibing Zhou
b3af54340c
iampolicygenerator: update module name
...
The previous module name is incorrect and seems to be copied from
another builtin plugin. This change fixes the name.
2021-07-05 14:11:32 -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
d818ccae92
Merge pull request #4037 from natasha41575/pin
...
Unpin modules
2021-07-02 14:25:03 -07:00
Natasha Sarkar
4cea8b9785
Unpin modules
2021-07-02 14:10:05 -07:00
Kubernetes Prow Robot
84a36801e0
Merge pull request #4036 from joebowbeer/patch-1
...
Fix broken KEP link in README
2021-07-02 13:58:10 -07:00
Joe Bowbeer
6eb7b3508d
Fix broken KEP link in README
2021-07-02 13:12:22 -07:00
Rob Ferguson
2a5f4ac7d7
add failing test for replacements
2021-07-02 08:54:52 -05:00
Kubernetes Prow Robot
518a16d3ac
Merge pull request #4014 from brianpursley/doc-separator
...
Updated ByteReader to allow white space and comments content after --- when splitting YAML documents
2021-07-01 14:25:51 -07:00
Jeff Regan
d53a2ad45d
Merge pull request #4027 from monopole/deleteWindowsBuild
...
Temporarily remove windows build.
kustomize/v4.2.0
2021-06-30 15:37:56 -07:00
monopole
bb02a7645b
Temporarily remove windows build.
2021-06-30 15:36:57 -07:00
Jeff Regan
5a9d90c872
Merge pull request #4026 from monopole/upgradeGoReleaser
...
release process: upgrade to goreleaser v0.172.1 calling go1.16.5
2021-06-30 14:04:18 -07:00
monopole
4fd7269643
release process: upgrade to goreleaser v0.172.1 calling go go1.16.5
2021-06-30 14:02:55 -07:00
Kubernetes Prow Robot
1eb3c1a075
Merge pull request #4025 from KnVerey/pinToApi
...
Pin to api v0.8.11
2021-06-30 12:53:03 -07:00
Katrina Verey
a1746f2f8c
Pin to api v0.8.11
2021-06-30 12:42:04 -07:00
Kubernetes Prow Robot
b727febd08
Merge pull request #4023 from mengqiy/jsontag
...
add missing json tags
2021-06-30 12:37:03 -07:00
Natasha Sarkar
c819d69ae4
Merge pull request #4022 from KnVerey/pinToCmdConfig
...
Pin to cmd/config v0.9.13
api/v0.8.11
2021-06-30 12:26:40 -07:00
Katrina Verey
bb6f83fb96
Pin to cmd/config v0.9.13
2021-06-30 12:16:04 -07:00
Mengqi Yu
02d14d724a
add missing json tags
2021-06-30 12:15:50 -07: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
cmd/config/v0.9.13
2021-06-30 11:59:03 -07:00
Natasha Sarkar
5427ab7cc3
Merge pull request #4013 from KnVerey/go-yaml-fork
...
Internal go-yaml/yaml fork
kyaml/v0.11.0
2021-06-30 10:41:27 -07:00
Katrina Verey
e583f199b8
Comment out part of script that is likely only needed on first run
2021-06-30 10:18:11 -07:00
Katrina Verey
b465c20f65
Remove pinning to external fork
2021-06-30 10:15:02 -07:00
Natasha Sarkar
5c2c617ff0
fix affected cmd/config tests
2021-06-30 10:14:45 -07:00
Natasha Sarkar
3ab0665c19
fix affected kyaml tests
2021-06-30 10:14:45 -07:00
Natasha Sarkar
4b66043735
compact sequence indent
2021-06-30 10:14:45 -07:00
Natasha Sarkar
979f03e76c
remove serialization hack after bump
2021-06-30 10:14:44 -07:00
Natasha Sarkar
c8b049f57f
point to natasha's fork
2021-06-30 10:14:33 -07:00
Katrina Verey
f3d8883046
Internalize forked code
2021-06-30 10:13:33 -07:00
Natasha Sarkar
e308f321d3
fix leading newline issue
2021-06-30 10:13:33 -07:00
Natasha Sarkar
beea785ead
tests for compactSeqIndent
2021-06-30 10:13:33 -07:00
Natasha Sarkar
95c5b686be
add defaultSeqIndent method
2021-06-30 10:13:32 -07:00