Skip to content

Commit f55d35a

Browse files
Merge branch 'kubernetes:main' into fix/es/KubeletConfiguration-link
2 parents 9443784 + 56138a5 commit f55d35a

File tree

2,334 files changed

+270381
-107022
lines changed

Some content is hidden

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

2,334 files changed

+270381
-107022
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- ℹ️
1+
<!--
22
33
Hello!
44
@@ -9,7 +9,7 @@
99
PLEASE title the FIRST commit appropriately, so that if you squash all
1010
your commits into one, the combined commit message makes sense.
1111
For overall help on editing and submitting pull requests, visit:
12-
https://kubernetes.io/docs/contribute/suggest-improvements/
12+
https://kubernetes.io/docs/contribute/suggesting-improvements/
1313
1414
Use the default base branch, “main”, if you're documenting existing
1515
features in the English localization.

.github/workflows/netlify-periodic-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
schedule: # Build twice daily: shortly after midnight and noon (UTC)
55
# Offset is to be nice to the build service
66
- cron: '4 0,12 * * *'
7+
permissions: {} # none
78
jobs:
89
build:
910
runs-on: ubuntu-latest

.gitignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ kubernetes.github.io.iml
2727
nohup.out
2828

2929
# Hugo output
30-
public/
31-
resources/
30+
/public
31+
/resources/
32+
.hugo_build.lock
3233

3334
# Netlify Functions build output
3435
package-lock.json
35-
functions/
36-
node_modules/
36+
/functions/
37+
/node_modules/
3738

3839
# Generated files when building with make container-build
3940
.config/

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ Note that code issues should be filed against the main kubernetes repository, wh
3434

3535
### Submitting Documentation Pull Requests
3636

37-
If you're fixing an issue in the existing documentation, you should submit a PR against the main branch. Follow [these instructions to create a documentation pull request against the kubernetes.io repository](http://kubernetes.io/docs/home/contribute/create-pull-request/).
37+
If you're fixing an issue in the existing documentation, you should submit a PR against the main branch. Follow [these instructions to create a documentation pull request against the kubernetes.io repository](https://kubernetes.io/docs/contribute/new-content/open-a-pr/).
3838

3939
For more information, see [contributing to Kubernetes docs](https://kubernetes.io/docs/contribute/).

Makefile

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@ CONTAINER_ENGINE ?= docker
99
IMAGE_REGISTRY ?= gcr.io/k8s-staging-sig-docs
1010
IMAGE_VERSION=$(shell scripts/hash-files.sh Dockerfile Makefile | cut -c 1-12)
1111
CONTAINER_IMAGE = $(IMAGE_REGISTRY)/k8s-website-hugo:v$(HUGO_VERSION)-$(IMAGE_VERSION)
12-
CONTAINER_RUN = $(CONTAINER_ENGINE) run --rm --interactive --tty --volume $(CURDIR):/src
12+
CONTAINER_RUN = "$(CONTAINER_ENGINE)" run --rm --interactive --tty --volume "$(CURDIR):/src"
1313

1414
CCRED=\033[0;31m
1515
CCEND=\033[0m
1616

17+
# Docker buildx related settings for multi-arch images
18+
DOCKER_BUILDX ?= docker buildx
19+
1720
.PHONY: all build build-preview help serve
1821

1922
help: ## Show this help.
@@ -29,13 +32,13 @@ module-init: ## Initialize required submodules.
2932
all: build ## Build site with production settings and put deliverables in ./public
3033

3134
build: module-check ## Build site with non-production settings and put deliverables in ./public
32-
hugo --minify --environment development
35+
hugo --cleanDestinationDir --minify --environment development
3336

3437
build-preview: module-check ## Build site with drafts and future posts enabled
35-
hugo --buildDrafts --buildFuture --environment preview
38+
hugo --cleanDestinationDir --buildDrafts --buildFuture --environment preview
3639

3740
deploy-preview: ## Deploy preview site via netlify
38-
hugo --enableGitInfo --buildFuture --environment preview -b $(DEPLOY_PRIME_URL)
41+
hugo --cleanDestinationDir --enableGitInfo --buildFuture --environment preview -b $(DEPLOY_PRIME_URL)
3942

4043
functions-build:
4144
$(NETLIFY_FUNC) build functions-src
@@ -44,11 +47,11 @@ check-headers-file:
4447
scripts/check-headers-file.sh
4548

4649
production-build: module-check ## Build the production site and ensure that noindex headers aren't added
47-
hugo --minify --environment production
50+
hugo --cleanDestinationDir --minify --environment production
4851
HUGO_ENV=production $(MAKE) check-headers-file
4952

5053
non-production-build: module-check ## Build the non-production site, which adds noindex headers to prevent indexing
51-
hugo --enableGitInfo --environment nonprod
54+
hugo --cleanDestinationDir --enableGitInfo --environment nonprod
5255

5356
serve: module-check ## Boot the development server.
5457
hugo server --buildFuture --environment development
@@ -74,6 +77,23 @@ container-image: ## Build a container image for the preview of the website
7477
container-push: container-image ## Push container image for the preview of the website
7578
$(CONTAINER_ENGINE) push $(CONTAINER_IMAGE)
7679

80+
PLATFORMS ?= linux/arm64,linux/amd64
81+
docker-push: ## Build a multi-architecture image and push that into the registry
82+
docker run --rm --privileged tonistiigi/binfmt:qemu-v6.2.0-26@sha256:5bf63a53ad6222538112b5ced0f1afb8509132773ea6dd3991a197464962854e --install all
83+
docker version
84+
$(DOCKER_BUILDX) version
85+
$(DOCKER_BUILDX) inspect image-builder > /dev/null 2>&1 || $(DOCKER_BUILDX) create --name image-builder --use
86+
# copy existing Dockerfile and insert --platform=${TARGETPLATFORM} into Dockerfile.cross, and preserve the original Dockerfile
87+
sed -e 's/\(^FROM\)/FROM --platform=\$$\{TARGETPLATFORM\}/' Dockerfile > Dockerfile.cross
88+
$(DOCKER_BUILDX) build \
89+
--push \
90+
--platform=$(PLATFORMS) \
91+
--build-arg HUGO_VERSION=$(HUGO_VERSION) \
92+
--tag $(CONTAINER_IMAGE) \
93+
-f Dockerfile.cross .
94+
$(DOCKER_BUILDX) stop image-builder
95+
rm Dockerfile.cross
96+
7797
container-build: module-check
7898
$(CONTAINER_RUN) --read-only --mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 $(CONTAINER_IMAGE) sh -c "npm ci && hugo --minify --environment development"
7999

@@ -95,7 +115,7 @@ docker-internal-linkcheck:
95115

96116
container-internal-linkcheck: link-checker-image-pull
97117
$(CONTAINER_RUN) $(CONTAINER_IMAGE) hugo --config config.toml,linkcheck-config.toml --buildFuture --environment test
98-
$(CONTAINER_ENGINE) run --mount type=bind,source=$(CURDIR),target=/test --rm wjdp/htmltest htmltest
118+
$(CONTAINER_ENGINE) run --mount "type=bind,source=$(CURDIR),target=/test" --rm wjdp/htmltest htmltest
99119

100120
clean-api-reference: ## Clean all directories in API reference directory, preserve _index.md
101121
rm -rf content/en/docs/reference/kubernetes-api/*/

OWNERS

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ approvers:
77
- sig-docs-en-owners # Defined in OWNERS_ALIASES
88

99
emeritus_approvers:
10+
# - celestehorgan, commented out to disable PR assignments
1011
# - chenopis, commented out to disable PR assignments
1112
# - irvifa, commented out to disable PR assignments
1213
# - jaredbhatti, commented out to disable PR assignments
14+
# - jimangel, commented out to disable PR assignments
1315
# - kbarnard10, commented out to disable PR assignments
1416
# - steveperry-53, commented out to disable PR assignments
15-
- stewart-yu
17+
- stewart-yu
1618
# - zacharysarah, commented out to disable PR assignments
1719

1820
labels:

0 commit comments

Comments
 (0)