Skip to content

Commit 5b14254

Browse files
authored
Merge pull request #49530 from rayandas/rayandas-merge-main-dev-1.33
Merge main branch into dev-1.33
2 parents 9b61d9e + 54db142 commit 5b14254

File tree

1,233 files changed

+76305
-5063
lines changed

Some content is hidden

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

1,233 files changed

+76305
-5063
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ nohup.out
3232
.hugo_build.lock
3333

3434
# Netlify Functions build output
35-
package-lock.json
3635
/functions/
3736
/node_modules/
3837

.gitmodules

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
[submodule "themes/docsy"]
2-
path = themes/docsy
3-
url = https://github.com/google/docsy.git
4-
branch = v0.3.0
51
[submodule "api-ref-generator"]
62
path = api-ref-generator
73
url = https://github.com/kubernetes-sigs/reference-docs

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# change is that the Hugo version is now an overridable argument rather than a fixed
55
# environment variable.
66

7-
FROM docker.io/library/golang:1.23.0-alpine3.20
7+
FROM docker.io/library/golang:1.23.1-alpine3.20
88

99
RUN apk add --no-cache \
1010
curl \
@@ -22,11 +22,12 @@ RUN mkdir $HOME/src && \
2222
cd "hugo-${HUGO_VERSION}" && \
2323
go install --tags extended
2424

25-
FROM docker.io/library/golang:1.23.0-alpine3.20
25+
FROM docker.io/library/golang:1.23.1-alpine3.20
2626

2727
RUN apk add --no-cache \
2828
runuser \
2929
git \
30+
gcompat \
3031
openssh-client \
3132
rsync \
3233
npm

Makefile

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,24 @@ NETLIFY_FUNC = $(NODE_BIN)/netlify-lambda
77
# CONTAINER_ENGINE=podman make container-image
88
CONTAINER_ENGINE ?= docker
99
IMAGE_REGISTRY ?= gcr.io/k8s-staging-sig-docs
10-
IMAGE_VERSION=$(shell scripts/hash-files.sh Dockerfile Makefile | cut -c 1-12)
10+
IMAGE_VERSION=$(shell scripts/hash-files.sh Dockerfile Makefile package.json package-lock.json | cut -c 1-12)
1111
CONTAINER_IMAGE = $(IMAGE_REGISTRY)/k8s-website-hugo:v$(HUGO_VERSION)-$(IMAGE_VERSION)
1212
# Mount read-only to allow use with tools like Podman in SELinux mode
1313
# Container targets don't need to write into /src
1414
CONTAINER_RUN = "$(CONTAINER_ENGINE)" run --rm --interactive --tty --volume "$(CURDIR):/src:ro,Z"
15+
CONTAINER_RUN_TTY = "$(CONTAINER_ENGINE)" run --rm --interactive --tty
16+
CONTAINER_HUGO_MOUNTS = \
17+
--read-only \
18+
--mount type=bind,source=$(CURDIR)/.git,target=/src/.git,readonly \
19+
--mount type=bind,source=$(CURDIR)/archetypes,target=/src/archetypes,readonly \
20+
--mount type=bind,source=$(CURDIR)/assets,target=/src/assets,readonly \
21+
--mount type=bind,source=$(CURDIR)/content,target=/src/content,readonly \
22+
--mount type=bind,source=$(CURDIR)/data,target=/src/data,readonly \
23+
--mount type=bind,source=$(CURDIR)/i18n,target=/src/i18n,readonly \
24+
--mount type=bind,source=$(CURDIR)/layouts,target=/src/layouts,readonly \
25+
--mount type=bind,source=$(CURDIR)/static,target=/src/static,readonly \
26+
--mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 \
27+
--mount type=bind,source=$(CURDIR)/hugo.toml,target=/src/hugo.toml,readonly
1528

1629
CCRED=\033[0;31m
1730
CCEND=\033[0m
@@ -98,15 +111,13 @@ docker-push: ## Build a multi-architecture image and push that into the registry
98111

99112
container-build: module-check
100113
mkdir -p public
101-
$(CONTAINER_RUN) --read-only \
102-
--mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 \
103-
--mount type=bind,source=$(CURDIR)/public,target=/src/public $(CONTAINER_IMAGE) \
104-
hugo --cleanDestinationDir --buildDrafts --buildFuture --environment preview --noBuildLock
114+
$(CONTAINER_RUN_TTY) $(CONTAINER_HUGO_MOUNTS) $(CONTAINER_IMAGE) \
115+
hugo --destination /tmp/public --cleanDestinationDir --buildDrafts --buildFuture --environment preview --noBuildLock
105116

106117
# no build lock to allow for read-only mounts
107118
container-serve: module-check ## Boot the development server using container.
108-
$(CONTAINER_RUN) --cap-drop=ALL --cap-add=AUDIT_WRITE --read-only \
109-
--mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 -p 1313:1313 $(CONTAINER_IMAGE) \
119+
$(CONTAINER_RUN_TTY) --cap-drop=ALL --cap-add=AUDIT_WRITE $(CONTAINER_HUGO_MOUNTS) \
120+
-p 1313:1313 $(CONTAINER_IMAGE) \
110121
hugo server --buildDrafts --buildFuture --environment development --bind 0.0.0.0 --destination /tmp/public --cleanDestinationDir --noBuildLock
111122

112123
test-examples:

OWNERS_ALIASES

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
aliases:
22
sig-docs-blog-owners: # Approvers for blog content
33
- mrbobbytables
4+
- natalisucks
45
- nate-double-u
56
- sftim
67
sig-docs-blog-reviewers: # Reviewers for blog content
78
- Gauravpadam
89
- mrbobbytables
10+
- natalisucks
911
- nate-double-u
1012
- sftim
1113
sig-docs-website-owners: # Admins for overall website
@@ -60,11 +62,11 @@ aliases:
6062
- katcosgrove
6163
- natalisucks
6264
- nate-double-u
65+
- rayandas # RT 1.33 Docs Lead
6366
- reylejano
6467
- salaxander
6568
- sftim
6669
- tengqm
67-
- chanieljdan # RT 1.32 Docs Lead
6870
sig-docs-en-reviews: # PR reviews for English content
6971
- dipesh-rawat
7072
- divya-mohan0209
@@ -156,10 +158,10 @@ aliases:
156158
- ysyukr
157159
sig-docs-leads: # Website chairs and tech leads
158160
- divya-mohan0209
161+
- katcosgrove
159162
- natalisucks
160163
- reylejano
161164
- salaxander
162-
- sftim
163165
- tengqm
164166
sig-docs-zh-owners: # Admins for Chinese content
165167
- chenrui333

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ git clone https://github.com/kubernetes/website.git
3030
cd website
3131
```
3232

33-
The Kubernetes website uses the [Docsy Hugo theme](https://github.com/google/docsy#readme). Even if you plan to run the website in a container, we strongly recommend pulling in the submodule and other development dependencies by running the following:
33+
The Kubernetes website uses git submodules. Even if you plan to run the website in a container, we strongly recommend pulling in the submodule and other development dependencies by running the following:
3434

3535
### Windows
3636

assets/js/banner-dismiss.js

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,25 @@ $(document).ready(function() {
2121

2222
/* Check the presence of a cookie */
2323
let announcement = document.querySelector("#announcement");
24-
let token = `announcement_ack_${announcement.getAttribute('data-announcement-name').replace(/\s/g, '_')}`; // Generate the unique token for announcement
25-
let acknowledged = getCookie(token);
26-
if (acknowledged === "true") {
27-
announcement.remove(); // Remove the announcement if the cookie is set
28-
}
29-
else {
30-
announcement.classList.add('display-announcement') // Display the announcement if the cookie is not set
31-
}
24+
if (announcement) {
25+
let token = `announcement_ack_${announcement.getAttribute('data-announcement-name').replace(/\s/g, '_')}`; // Generate the unique token for announcement
26+
let acknowledged = getCookie(token);
27+
if (acknowledged === "true") {
28+
announcement.remove(); // Remove the announcement if the cookie is set
29+
}
30+
else {
31+
announcement.classList.add('display-announcement') // Display the announcement if the cookie is not set
32+
}
33+
}
3234

3335
/* Driver code to set the cookie */
3436
let button = document.querySelector('#banner-dismiss');
35-
button.removeAttribute('style');
36-
button.addEventListener('click', function() {
37-
setCookie(token, "true",
38-
button.getAttribute('data-ttl')); // Set a cookie with time to live parameter
39-
announcement.remove();
40-
});
37+
if (button) {
38+
button.removeAttribute('style');
39+
button.addEventListener('click', function() {
40+
setCookie(token, "true",
41+
button.getAttribute('data-ttl')); // Set a cookie with time to live parameter
42+
announcement.remove();
43+
});
44+
}
4145
});

assets/js/sweetalert-2.1.2.min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/js/toastr-2.1.4.min.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)