You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or by using the go:generate marker inside [foo_types.go](foo_types.go):
19
19
20
20
```sh
21
-
go generate ./pkg/customresourcestate/generate/generator/testdata/
21
+
go generate ./pkg/metrics/testdata/
22
22
```
23
23
24
-
## Example files: foo-cr-example.yamland foo-cr-example-metrics.txt
24
+
## Example files: metrics.yaml, rbac.yaml and example-metrics.txt
25
25
26
-
There is also an example CR ([foo-cr-example.yaml](foo-cr-example.yaml)) and resulting example metrics ([foo-cr-example-metrics.txt](foo-cr-example-metrics.txt)).
26
+
There is also an example CR ([example-foo.yaml](example-foo.yaml)) and resulting example metrics ([example-metrics.txt](example-metrics.txt)).
27
27
28
28
The example metrics file got created by:
29
29
30
-
1. Generating a CustomResourceDefinition yaml by using [controller-gen](https://github.com/kubernetes-sigs/kubebuilder/blob/master/docs/book/src/reference/controller-gen.md):
30
+
1. Generating a CustomResourceDefinition and Kube-State-Metrics configration file:
description: 'APIVersion defines the versioned schema of this representation
25
-
of an object. Servers should convert recognized schemas to the latest
26
-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
23
+
description: |-
24
+
APIVersion defines the versioned schema of this representation of an object.
25
+
Servers should convert recognized schemas to the latest internal value, and
26
+
may reject unrecognized values.
27
+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
27
28
type: string
28
29
kind:
29
-
description: 'Kind is a string value representing the REST resource this
30
-
object represents. Servers may infer this from the endpoint the client
31
-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
30
+
description: |-
31
+
Kind is a string value representing the REST resource this object represents.
32
+
Servers may infer this from the endpoint the client submits requests to.
33
+
Cannot be updated.
34
+
In CamelCase.
35
+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
0 commit comments