Commit Graph

204 Commits

Author SHA1 Message Date
Maxim Babushkin 548f48a756
Add customSchema arg to get-release-notes (#3271)
The gen-release-notes tool is used to work with release notes of the
changes being made.
The "release_notes_schema.json" defines strict structure of the notes.

Add the ability to define custom schema to make the use of the tool
more generic, so it could be used by other products and teams.

Signed-off-by: Maxim Babushkin <mbabushk@redhat.com>
2025-09-08 10:12:46 -07:00
Gustavo Meira f2e92ddbc4
small fix for punctuation/style in releaseNotes.md. (#3231) 2025-06-19 05:06:10 -04:00
Gustavo Meira 8aa031754a
small fixes for gen-release-notes for QoL (#3199)
Signed-off-by: Gustavo <grnmeira@gmail.com>
2025-05-09 07:50:46 -04:00
John Howard fbace3a2bd
cmd/kubetype-gen: omit empty status, like we do for spec (#3128)
I see no reason to write this out -- we don't do it for spec, and other
k8s objects do not
2025-01-29 13:32:51 -05:00
John Howard f0192fab1f
Adopt CEL preprocessor (#3050) 2024-12-16 12:03:27 -05:00
Craig Box f53c293f26
Improve protoc-gen-docs to make nicer reference docs on istio.io (#3089)
* improve protoc-gen-docs

* fix lint

* Use CSS classes for output

* lint
2024-12-12 17:59:02 -05:00
John Howard 55ec979695
protoc-gen-docs: allow deep linking to individual fields (#3064)
This allowes linking to something like
`gateway.pb.html#ServerTLSSettings-verify_certificate_hash` - super
handy to send someone a particular field rather than a link to a
messasge with possibly 100s of fields.
2024-11-01 13:14:51 -04:00
John Howard 621a64a11b
Bump dependency versions (#3048) 2024-10-10 14:33:46 -04:00
John Howard 1fec76d441
Avoid required spec duplication in CRD generator (#3040)
See 0344c47af0 (r1785060292)
2024-10-03 14:14:22 -04:00
John Howard 5a23d7339b
CRD generation tooling: use our own prefix (#3015)
* Use our own custom markers

This avoids errors when trying to use standard kubebuilder tools

* Add IgnoreSubValidation
2024-08-19 13:35:44 -04:00
John Howard ea356c6879
Fix int-or-str formatting (#2994)
if we have it like this, it works in 99% of cases... except when you try
to server side apply.
2024-07-29 05:17:35 -04:00
John Howard 9751f0d4c3
Explicitly encode status schema into CRDs (#2982) 2024-07-17 13:32:16 -04:00
Ian Rudie 3a1982fd09
adding SE status generation (#2979)
* adding SE status generation

Signed-off-by: ilrudie <ian.rudie@solo.io>

* remove need for second template

Signed-off-by: ilrudie <ian.rudie@solo.io>

* switch to looking for specific comment to determine status override instead of matching type name

Signed-off-by: ilrudie <ian.rudie@solo.io>

* reading Name and Package from comments instead of hardcoding it

Signed-off-by: ilrudie <ilrudie@gmail.com>

---------

Signed-off-by: ilrudie <ian.rudie@solo.io>
Signed-off-by: ilrudie <ilrudie@gmail.com>
2024-07-09 16:48:23 -04:00
John Howard fbec74f127
Allow zero duration in fields that require it (#2983)
Fixes https://github.com/istio/tools/pull/2947#issuecomment-2210288076
2024-07-08 14:23:22 -04:00
jacob-delgado 971914c666
Update misc tools (#2969)
* update misc tools

* update protoc

* update oc

* update more tools

* fix linter

* fix linter
2024-07-01 20:56:49 -04:00
John Howard 9207c29ca5
protoc-gen-crd: fix bug where we mutate shared state (#2951) 2024-06-04 14:09:06 -04:00
John Howard 35d1af3085
protoc-gen-crd: allow list-value validations and enforce correct Durations (#2947)
* protoc-gen-crd: add list value validations

* Validation duration
2024-06-01 16:45:24 -04:00
John Howard 2892b009f3
protoc-gen-crd: apply CEL validation to values of a map (#2943)
See https://github.com/istio/api/pull/3219
2024-05-30 19:26:06 -04:00
John Howard 121eded1f8
protoc-gen-docs: mark proto3 as supported (#2936)
Without this, we will get a warning/error in buf. Error in new versions,
which blocks everything. Indicating we support it makes it fine.
2024-05-21 14:59:01 -04:00
John Howard 9637643344
Update codegen to workaround k8s client-go limits (#2933)
The k8s client generators don't like aliases much. This makes it work.

1. Add comments to aliases; without this types are not noticed by the
   k8s gen
2. Synthetically add our per-version copies back in in kubetype-gen

Manually testeded this e2e
2024-05-21 09:54:36 -04:00
John Howard ab5e3a1c30
Add new protoc-gen-alias command to allow backwards version compat (#2921)
* Add new protoc-gen-alias command to allow backwards version compat

* Improve docs
2024-05-15 16:02:09 -04:00
John Howard 5febdc9ef2
crd gen: single proto source per type (#2920) 2024-05-13 08:16:20 -07:00
zirain 69023417ba
improve error message (#2911) 2024-05-08 02:07:51 -07:00
John Howard f372c251ad
crds: add more native OpenAPI validations (#2889)
Mostly working, except the uint64 is tricky. I manually test this a bit,
seems fine and already validated in the webhook.
2024-04-17 13:23:41 -07:00
John Howard a6e229825d
crds: document all possible enum values (#2854) 2024-03-08 21:29:22 -08:00
John Howard ded7e39747
protoc-gen-crd: allow marking an API version as deprecated (#2839)
Then we will mark all old versions as deprecated
2024-02-27 14:01:15 -08:00
John Howard d3d46ab6d5
protoc-gen-crd: remove spam on generation (#2838)
This is how the docs gen works; without this set it all works out the
same but logs a ton of spam in the logs.

This does not impact CRDs at all, just logs during protoc.
2024-02-27 13:02:16 -08:00
zirain 0e02129c49
better description render (#2825)
* better description render

* fix gen
2024-02-22 07:38:40 -08:00
zirain c74bd02738
improve resource annotation table UX (#2770) 2024-01-09 17:43:47 -08:00
Xiaopeng Han 49c6eff15d
Update patch releasenotes format (#2751)
* update patch releasenotes format

* test allowlist

* define findfiles

* delete extra releasenote

* revise
2023-12-13 07:29:36 -08:00
John Howard 7ad7b0d523
Cleanup: remove unused cue-gen tool (#2738)
* Cleanup: remove unused cue-gen tool

* drop licenses
2023-11-28 09:59:12 -08:00
Xiaopeng Han 46db7d39ca
fix link when generating releasenotes (#2725) 2023-11-06 00:32:53 -08:00
John Howard d58eb11a5e
protoc-gen-crd: add option to make spec required (#2687) 2023-10-08 10:13:20 -07:00
John Howard ba83efa035
Introduce `protoc-gen-crd` (#2674)
* Initial protoc-gen-crd-

* wip validation

* old oneofs

* fix yaml

* fix oneofs

* Add message validation

* lint

* lint

* lint

* remove protomodel dupe

* cleanup names

* Add required support
2023-10-03 13:33:20 -07:00
John Howard 99540faae1
html docs gen: skip codegen comments (#2673) 2023-10-03 06:10:20 -07:00
John Howard b5e3dec7a2
crd gen: hide from docs regardless of where in the comment it is (#2670) 2023-10-02 11:31:19 -07:00
John Howard a9b3820326
CRD gen: better doc extraction (#2669)
We try to get the first sentance. But a string like:

```
foo bar
baz.
```

is not treated as a sentance.

This PR strictly adds more docs to the CRDs. Diff attached:
2023-10-02 10:56:20 -07:00
John Howard 257ca0b8eb
Update cue to 0.5.0 (#2610)
* Drop go-bindata for cue-gen

* cue-gen: simplify tool

We only use a very small amount of the tool, clean up all the cruft we
don't need.

(cherry picked from commit 8d037425d1)

* wip

* working

* drop linter issues

* lint

* more cleanup

* gen

* licenses
2023-08-03 08:40:44 -07:00
frauniki 79552bc555
Fix html indent of annotation_prep (#2579) 2023-07-11 10:08:45 -07:00
John Howard abb864d03b
Add new `org-gen` tool, replacing the one in istio/community (#2559)
* Add new `org-gen` tool, replacing the one in istio/community

* Move package

* drop dockerfile
2023-07-07 05:55:32 -07:00
John Howard 1f8c4c2d3e
Release notes: skip batch jobs (#2539) 2023-06-27 08:52:29 -07:00
John Howard fd4537bd28
Drop obsolete schema validator (#2533) 2023-06-26 08:27:33 -07:00
John Howard 7c2cba5679
Revamp release-notes tool (#2531)
* release notes: validate schemas inline

* release-notes: rework generation and testing

* lint
2023-06-24 12:14:29 -07:00
John Howard da033373a3
cleanup: remove goc (#2451)
* cleanup: remove goc

Aside from this being unmaintained/used, this functionality is now in
core Go if we ever want to use it.

* gen
2023-05-01 16:57:39 -07:00
Eric Van Norman 68a3b263c7
Fix lint markdown errors (#2366) 2023-02-07 15:28:34 -08:00
alex 4054415f72
update licensedb dep (#2337)
* update licensedb

Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>

* run make gen

Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>

Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>
2023-01-24 12:17:18 -08:00
Eric Van Norman 81af2db75f
Fix dependency guard lint and common-files update (#2317) 2023-01-17 08:39:31 -08:00
jacob-delgado e519cfe7cb
Update k8s deps to 1.26 (#2269)
* Update k8s deps to 1.26

* Fix lint and make gen
2022-12-12 08:09:12 -08:00
Ignasi Barrera 65b95c3425
Fix file exclusion if flag not set (#2234) 2022-11-11 10:07:46 -08:00
Ignasi Barrera 7106ce9c3f
Allow including and excluding files and folders when processing protos (#2227) 2022-11-09 08:02:41 -08:00