1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-16 09:16:38 +00:00
Commit graph

15 commits

Author SHA1 Message Date
Simon Pasquier
b609a8bb6f feature: generate "apply configuration" types
This commit uses the `applyconfiguration-gen` tool to generate the
"apply configuration" types for all monitoring types. It enables users
to run server-side apply operations from Go code.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2022-12-22 10:20:07 +01:00
Simon Pasquier
69f7061796
Refactor crd api docs (#4899)
* scripts:tools: Add gen-crd-api-reference-docs tool

Signed-off-by: Philip Gough <philip.p.gough@gmail.com>

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* make: Add targets and scripts to generate docs with gen-crd-api-reference-docs tool

Signed-off-by: Philip Gough <philip.p.gough@gmail.com>

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* scripts/go.mod: bump gen-crd-api-reference-docs version

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Makefile: add target to generate v1beta1 docs

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Documentation/apis: regenerate

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Makefile: remove unused variable

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* pkg/apis/monitoring: reorder markers for API docs

gen-crd-api-reference-docs requires codegen markers to appear before the
comments describing the types. Otherwise resource types aren't properly
identified.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Documentation/apis: regenerate

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* update docs configuration

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Documentation/apis: regenerate

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Add README.md for API documentation generation

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Skip embedded fields

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Move docgen tooling to Documentation/

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* keep all APIs in a single page

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Fix header in pkg.tpl

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Update docs README.md

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Add link for apiextensions-apiserver module

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Documentation: regenerate

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Fix links in documentation

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* update pkg.tpl

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Fix check-docs CI

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Documentation/api.md: regenerate

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* scripts: bump mdox version

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

Co-authored-by: Philip Gough <philip.p.gough@gmail.com>
2022-07-13 14:24:02 +02:00
Jayapriya Pai
bdf703d5a2 *: Run make go-fmt with 1.17 2021-10-07 12:31:45 +05:30
Saswata Mukherjee
d3043017b9 Setup mdox
Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
2021-10-04 16:59:19 +05:30
paulfantom
650d35136a
*: run gofmt
Signed-off-by: paulfantom <pawel@krupa.net.pl>
2021-06-09 20:56:17 +02:00
Amab
42d9435296 Add check-golang link to Makefile 2020-11-25 17:51:30 +01:00
paulfantom
aa479abde3
.github,scripts: add promlinter to lint our metric names 2020-11-23 12:27:20 +01:00
Paweł Krupa
af8e08b61f
Refactor tooling management (#3176) 2020-05-26 08:34:04 +02:00
Damien Grisonnet
eb0344f82c pkg,scripts: remove bindata
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-04-23 13:58:39 +02:00
Paul Gier
75e13bcd15 update go-bindata to v3.1.3
This brings the version of go-bindata in sync between the local version
and the version in the Docker container.  And also updates to the
latest version which has proper module versioning.
2020-03-31 13:55:20 -05:00
Paul Gier
1384d55152 use generated CRD yaml for runtime CRD deployment
Generate bindata.go from the generated crd yaml and then
unmarshal the bindata yaml into CRD structs at runtime.
This removes the need for openapi-gen.
2019-11-20 21:54:33 -06:00
Paul Gier
5dbb62c8d9 add deepcopy generation using controller-gen
Removes dependency on deepcopy-gen command
2019-11-20 15:35:23 -06:00
Paul Gier
ce72171c48 use kubebuilder controller-gen for creating CRD yaml files
Replaces the custom po-crdgen command
2019-11-20 15:35:04 -06:00
Matthias Loibl
e4c7302e7c
Vendor all tools for generating code and config 2019-04-25 18:15:36 +02:00
Matthias Loibl
1f355060a8
Vendor k8s.io/code-generator and k8s.io/kube-openapi with Go modules 2019-04-25 17:17:52 +02:00