Skip to content

Commit 8c87af1

Browse files
saschagrunertk8s-ci-robot
authored andcommitted
Download mdtoc directly
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
1 parent 3dff68d commit 8c87af1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+20
-14587
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ REPO_INFRA_VERSION = v0.2.5
1919
KUSTOMIZE_VERSION = 5.2.1
2020
OPERATOR_SDK_VERSION ?= v1.25.0
2121
ZEITGEIST_VERSION = v0.5.3
22+
MDTOC_VERSION = v1.4.0
2223
CI_IMAGE ?= golang:1.22
2324

2425
CONTROLLER_GEN_CMD := CGO_LDFLAGS= $(GO) run $(BUILD_FLAGS) -tags generate sigs.k8s.io/controller-tools/cmd/controller-gen
@@ -317,11 +318,13 @@ vagrant-up-flatcar: ## Boot the Vagrant Flatcar based test VM
317318
$(call vagrant-up,flatcar,build)
318319

319320
$(BUILD_DIR)/mdtoc: $(BUILD_DIR)
320-
$(call go-build,./vendor/sigs.k8s.io/mdtoc)
321+
curl -sSfL -o $(BUILD_DIR)/mdtoc \
322+
https://storage.googleapis.com/k8s-artifacts-sig-release/kubernetes-sigs/mdtoc/$(MDTOC_VERSION)/mdtoc-$(ARCH)-$(OS)
323+
chmod +x $(BUILD_DIR)/mdtoc
321324

322325
.PHONY: update-toc
323326
update-toc: $(BUILD_DIR)/mdtoc ## Update the table of contents for the documentation
324-
$(BUILD_DIR)/mdtoc --inplace installation-usage.md
327+
git grep --name-only '<!-- toc -->' | grep -v Makefile | xargs $(BUILD_DIR)/mdtoc -i
325328

326329
$(BUILD_DIR)/recorder.bpf.o: $(BUILD_DIR) ## Build the BPF module
327330
$(CLANG) -g -O2 \

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/5368/badge)](https://bestpractices.coreinfrastructure.org/projects/5368)
77
[![OCI security profiles](https://img.shields.io/badge/oci%3A%2F%2F-security%20profiles-blue?logo=kubernetes&logoColor=white)](https://github.com/orgs/security-profiles/packages)
88

9+
<!-- toc -->
10+
- [About](#about)
11+
- [Features](#features)
12+
- [Personas &amp; User Stories](#personas--user-stories)
13+
- [Roadmap](#roadmap)
14+
- [Community, discussion, contribution, and support](#community-discussion-contribution-and-support)
15+
- [Code of conduct](#code-of-conduct)
16+
<!-- /toc -->
17+
918
This project is the starting point for the _Security Profiles Operator_ (SPO), an
1019
out-of-tree Kubernetes enhancement which aims to make it easier for users to use
1120
SELinux, seccomp and AppArmor in Kubernetes clusters.

dependencies.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,12 @@ dependencies:
236236
- path: Makefile
237237
match: ZEITGEIST_VERSION
238238

239+
- name: mdtoc
240+
version: v1.4.0
241+
refPaths:
242+
- path: Makefile
243+
match: MDTOC_VERSION
244+
239245
- name: yq
240246
version: 4.35.2
241247
refPaths:

go.mod

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ require (
4242
oras.land/oras-go/v2 v2.4.0
4343
sigs.k8s.io/controller-runtime v0.17.3
4444
sigs.k8s.io/controller-tools v0.14.0
45-
sigs.k8s.io/mdtoc v1.3.0
4645
sigs.k8s.io/release-utils v0.8.1
4746
sigs.k8s.io/yaml v1.4.0
4847
)
@@ -63,7 +62,6 @@ require (
6362
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
6463
github.com/Azure/go-autorest/logger v0.2.1 // indirect
6564
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
66-
github.com/BurntSushi/toml v1.3.2 // indirect
6765
github.com/Microsoft/go-winio v0.6.2 // indirect
6866
github.com/OneOfOne/xxhash v1.2.8 // indirect
6967
github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c // indirect
@@ -153,7 +151,6 @@ require (
153151
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
154152
github.com/golang/protobuf v1.5.4 // indirect
155153
github.com/golang/snappy v0.0.4 // indirect
156-
github.com/gomarkdown/markdown v0.0.0-20240328165702-4d01890c35c0 // indirect
157154
github.com/google/certificate-transparency-go v1.1.8 // indirect
158155
github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49 // indirect
159156
github.com/google/go-github/v55 v55.0.0 // indirect
@@ -183,7 +180,6 @@ require (
183180
github.com/mitchellh/go-homedir v1.1.0 // indirect
184181
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
185182
github.com/mitchellh/mapstructure v1.5.0 // indirect
186-
github.com/mmarkdown/mmark v2.0.40+incompatible // indirect
187183
github.com/moby/sys/mountinfo v0.7.1 // indirect
188184
github.com/moby/term v0.5.0 // indirect
189185
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect

go.sum

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBp
5656
github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU=
5757
github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI=
5858
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
59-
github.com/BurntSushi/toml v1.3.2 h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8=
60-
github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
6159
github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY=
6260
github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=
6361
github.com/OneOfOne/xxhash v1.2.8 h1:31czK/TI9sNkxIKfaUfGlU47BAxQ0ztGgd9vPyqimf8=
@@ -366,8 +364,6 @@ github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek
366364
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
367365
github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
368366
github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
369-
github.com/gomarkdown/markdown v0.0.0-20240328165702-4d01890c35c0 h1:4gjrh/PN2MuWCCElk8/I4OCKRKWCCo2zEct3VKCbibU=
370-
github.com/gomarkdown/markdown v0.0.0-20240328165702-4d01890c35c0/go.mod h1:JDGcbDT52eL4fju3sZ4TeHGsQwhG9nbDV21aMyhwPoA=
371367
github.com/google/certificate-transparency-go v1.1.8 h1:LGYKkgZF7satzgTak9R4yzfJXEeYVAjV6/EAEJOf1to=
372368
github.com/google/certificate-transparency-go v1.1.8/go.mod h1:bV/o8r0TBKRf1X//iiiSgWrvII4d7/8OiA+3vG26gI8=
373369
github.com/google/flatbuffers v2.0.8+incompatible h1:ivUb1cGomAB101ZM1T0nOiWz9pSrTMoa9+EiY7igmkM=
@@ -508,8 +504,6 @@ github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQ
508504
github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0=
509505
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
510506
github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
511-
github.com/mmarkdown/mmark v2.0.40+incompatible h1:vMeUeDzBK3H+/mU0oMVfMuhSXJlIA+DE/DMPQNAj5C4=
512-
github.com/mmarkdown/mmark v2.0.40+incompatible/go.mod h1:Uvmoz7tvsWpr7bMVxIpqZPyN3FbOtzDmnsJDFp7ltJs=
513507
github.com/moby/sys/mountinfo v0.7.1 h1:/tTvQaSJRr2FshkhXiIpux6fQ2Zvc4j7tAhMTStAG2g=
514508
github.com/moby/sys/mountinfo v0.7.1/go.mod h1:IJb6JQeOklcdMU9F5xQ8ZALD+CUr5VlGpwtX+VE0rpI=
515509
github.com/moby/term v0.5.0 h1:xt8Q1nalod/v7BqbG21f8mQPqH+xAaC9C3N3wfWbVP0=
@@ -1001,8 +995,6 @@ sigs.k8s.io/gateway-api v1.0.0 h1:iPTStSv41+d9p0xFydll6d7f7MOBGuqXM6p2/zVYMAs=
1001995
sigs.k8s.io/gateway-api v1.0.0/go.mod h1:4cUgr0Lnp5FZ0Cdq8FdRwCvpiWws7LVhLHGIudLlf4c=
1002996
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo=
1003997
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0=
1004-
sigs.k8s.io/mdtoc v1.3.0 h1:iMJLfMax45vMl3rnwLjEhZ38TS6JqLXSpm0uDNo/zyo=
1005-
sigs.k8s.io/mdtoc v1.3.0/go.mod h1:8zLWymqzP8oKMm+1m1e5GKnGZq8gbC1MreKfmRelMQA=
1006998
sigs.k8s.io/release-utils v0.8.1 h1:qSA9p3vZzO6RAq7zvzupCZjR29+n3NK9DSJPe9bSf7w=
1007999
sigs.k8s.io/release-utils v0.8.1/go.mod h1:vrQ3eR1VmudgX4OUwr4pUZEkYLRms9bdbv06mr3kchQ=
10081000
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 h1:150L+0vs/8DA78h1u02ooW1/fFq/Lwr+sGiqlzvrtq4=

internal/pkg/tools/tools.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,4 @@ import (
2828
_ "google.golang.org/grpc/cmd/protoc-gen-go-grpc"
2929
_ "google.golang.org/protobuf/cmd/protoc-gen-go"
3030
_ "sigs.k8s.io/controller-tools/cmd/controller-gen"
31-
_ "sigs.k8s.io/mdtoc"
3231
)

vendor/github.com/BurntSushi/toml/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

vendor/github.com/BurntSushi/toml/COPYING

Lines changed: 0 additions & 21 deletions
This file was deleted.

vendor/github.com/BurntSushi/toml/README.md

Lines changed: 0 additions & 120 deletions
This file was deleted.

0 commit comments

Comments
 (0)