Skip to content

Commit 3895ec9

Browse files
committed
Bumping golangci-lint version, docs gen cleanup
1 parent 7c637e0 commit 3895ec9

File tree

9 files changed

+60
-296
lines changed

9 files changed

+60
-296
lines changed

Makefile

+14-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,20 @@ build-docs:
167167
docker run --rm -v ${PWD}:/docs gaie/mkdocs build
168168

169169
.PHONY: build-docs-netlify
170-
build-docs-netlify: api-ref-docs
170+
build-docs-netlify:
171+
GOPATH=${GOPATH:-$(go env GOPATH)}
172+
173+
# "go env" doesn't print anything if GOBIN is the default, so we
174+
# have to manually default it.
175+
GOBIN=${GOBIN:-$(go env GOBIN)}
176+
GOBIN=${GOBIN:-${GOPATH}/bin}
177+
178+
go install github.com/elastic/crd-ref-docs
179+
${GOBIN}/crd-ref-docs \
180+
--source-path=${PWD}/apis \
181+
--config=crd-ref-docs.yaml \
182+
--renderer=markdown \
183+
--output-path=${PWD}/site-src/reference/spec.md
171184
pip install -r hack/mkdocs/image/requirements.txt
172185
python -m mkdocs build
173186

go.mod

+12-3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ require (
2525
)
2626

2727
require (
28+
github.com/Masterminds/goutils v1.1.1 // indirect
29+
github.com/Masterminds/semver v1.5.0 // indirect
30+
github.com/Masterminds/sprig v2.22.0+incompatible // indirect
2831
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
2932
github.com/emicklei/go-restful/v3 v3.12.0 // indirect
3033
github.com/evanphx/json-patch/v5 v5.9.11 // indirect
@@ -35,45 +38,51 @@ require (
3538
github.com/go-openapi/jsonreference v0.21.0 // indirect
3639
github.com/go-openapi/swag v0.23.0 // indirect
3740
github.com/gobuffalo/flect v1.0.3 // indirect
41+
github.com/goccy/go-yaml v1.11.3 // indirect
3842
github.com/gogo/protobuf v1.3.2 // indirect
3943
github.com/golang/protobuf v1.5.4 // indirect
4044
github.com/google/gnostic-models v0.6.8 // indirect
4145
github.com/google/go-cmp v0.6.0 // indirect
4246
github.com/google/gofuzz v1.2.0 // indirect
4347
github.com/google/uuid v1.6.0 // indirect
4448
github.com/gorilla/websocket v1.5.1 // indirect
49+
github.com/huandu/xstrings v1.3.3 // indirect
50+
github.com/imdario/mergo v0.3.11 // indirect
4551
github.com/inconshreveable/mousetrap v1.1.0 // indirect
4652
github.com/josharian/intern v1.0.0 // indirect
4753
github.com/json-iterator/go v1.1.12 // indirect
4854
github.com/mailru/easyjson v0.7.7 // indirect
4955
github.com/mattn/go-colorable v0.1.13 // indirect
5056
github.com/mattn/go-isatty v0.0.20 // indirect
57+
github.com/mitchellh/copystructure v1.2.0 // indirect
58+
github.com/mitchellh/reflectwalk v1.0.2 // indirect
5159
github.com/moby/spdystream v0.5.0 // indirect
5260
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
5361
github.com/modern-go/reflect2 v1.0.2 // indirect
5462
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
5563
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
5664
github.com/pkg/errors v0.9.1 // indirect
5765
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
58-
github.com/russross/blackfriday/v2 v2.1.0 // indirect
5966
github.com/spf13/cobra v1.8.1 // indirect
6067
github.com/spf13/pflag v1.0.6 // indirect
6168
github.com/x448/float16 v0.8.4 // indirect
69+
go.uber.org/multierr v1.11.0 // indirect
70+
go.uber.org/zap v1.27.0 // indirect
71+
golang.org/x/crypto v0.33.0 // indirect
6272
golang.org/x/mod v0.22.0 // indirect
6373
golang.org/x/oauth2 v0.25.0 // indirect
6474
golang.org/x/sys v0.30.0 // indirect
6575
golang.org/x/term v0.29.0 // indirect
6676
golang.org/x/text v0.22.0 // indirect
6777
golang.org/x/time v0.7.0 // indirect
6878
golang.org/x/tools v0.29.0 // indirect
79+
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
6980
google.golang.org/genproto/googleapis/rpc v0.0.0-20250115164207-1a7da9e5054f // indirect
7081
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
7182
gopkg.in/inf.v0 v0.9.1 // indirect
7283
gopkg.in/yaml.v2 v2.4.0 // indirect
7384
gopkg.in/yaml.v3 v3.0.1 // indirect
74-
k8s.io/gengo v0.0.0-20230829151522-9cce18d56c01 // indirect
7585
k8s.io/gengo/v2 v2.0.0-20240911193312-2b36238f13e9 // indirect
76-
k8s.io/klog v0.2.0 // indirect
7786
k8s.io/klog/v2 v2.130.1 // indirect
7887
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect
7988
)

go.sum

+33-22
Large diffs are not rendered by default.

hack/api-docs/config.json

-29
This file was deleted.

hack/api-docs/generate.sh

-53
This file was deleted.

hack/api-docs/members.tpl

-48
This file was deleted.

hack/api-docs/pkg.tpl

-59
This file was deleted.

hack/api-docs/type.tpl

-80
This file was deleted.

hack/verify-golint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ set -o errexit
1818
set -o nounset
1919
set -o pipefail
2020

21-
readonly VERSION="v1.60.3"
21+
readonly VERSION="v1.64.8"
2222
readonly KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
2323

2424
cd "${KUBE_ROOT}"

0 commit comments

Comments
 (0)