File tree Expand file tree Collapse file tree 2 files changed +55
-0
lines changed
vertical-pod-autoscaler/hack Expand file tree Collapse file tree 2 files changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ processor :
2
+ ignoreGroupVersions :
3
+ - " poc.autoscaling.k8s.io/v1alpha1"
4
+ - " autoscaling.k8s.io/v1beta1"
5
+ - " autoscaling.k8s.io/v1beta2"
6
+
7
+ render :
8
+ kubernetesVersion : 1.32
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Copyright 2024 The Kubernetes Authors.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+
18
+ set -o errexit
19
+ set -o nounset
20
+ set -o pipefail
21
+
22
+ REPOSITORY_ROOT=$( realpath $( dirname ${BASH_SOURCE} ) /..)
23
+ OUTPUT=${REPOSITORY_ROOT} /docs/api.md
24
+ WORKSPACE=$( mktemp -d)
25
+
26
+ function cleanup() {
27
+ rm -r ${WORKSPACE}
28
+ }
29
+ trap cleanup EXIT
30
+
31
+ if [[ -z $( which crd-ref-docs) ]]; then
32
+ (
33
+ cd $WORKSPACE
34
+ go install github.com/elastic/crd-ref-docs@latest
35
+ )
36
+ CONTROLLER_GEN=${GOBIN:- $(go env GOPATH)/ bin} /crd-ref-docs
37
+ else
38
+ CONTROLLER_GEN=$( which crd-ref-docs)
39
+ fi
40
+
41
+ crd-ref-docs \
42
+ --source-path=pkg/apis/ \
43
+ --config=./hack/api-docs/config.yaml \
44
+ --renderer=markdown \
45
+ --output-path=${WORKSPACE}
46
+
47
+ mv ${WORKSPACE} /out.md ${OUTPUT}
You can’t perform that action at this time.
0 commit comments