Skip to content

Commit 9369f36

Browse files
committed
Merge branch 'main' of github.com:aryasoni98/website-kubernetes into issue-47922
# Conflicts: # content/en/docs/concepts/scheduling-eviction/assign-pod-node.md
2 parents db4a4a5 + e241bf9 commit 9369f36

File tree

2,464 files changed

+138076
-26028
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,464 files changed

+138076
-26028
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 netlify.toml .dockerignore cloudbuild.yaml 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: 8 additions & 17 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
@@ -50,28 +52,25 @@ aliases:
5052
- sajibAdhi
5153
sig-docs-de-owners: # Admins for German content
5254
- bene2k1
53-
- rlenferink
5455
sig-docs-de-reviews: # PR reviews for German content
5556
- bene2k1
56-
- rlenferink
5757
sig-docs-en-owners: # Admins for English content
5858
- dipesh-rawat
5959
- divya-mohan0209
6060
- katcosgrove
6161
- natalisucks
6262
- nate-double-u
63+
- rayandas # RT 1.33 Docs Lead
6364
- reylejano
6465
- salaxander
6566
- sftim
6667
- tengqm
67-
- chanieljdan # RT 1.32 Docs Lead
6868
sig-docs-en-reviews: # PR reviews for English content
6969
- dipesh-rawat
7070
- divya-mohan0209
7171
- katcosgrove
7272
- kbhawkey
7373
- mengjiao-liu
74-
- mickeyboxell
7574
- natalisucks
7675
- nate-double-u
7776
- reylejano
@@ -85,11 +84,13 @@ aliases:
8584
sig-docs-es-owners: # Admins for Spanish content
8685
- electrocucaracha
8786
- krol3
87+
- raelga
8888
- ramrodo
8989
sig-docs-es-reviews: # PR reviews for Spanish content
9090
- electrocucaracha
9191
- jossemarGT
9292
- krol3
93+
- raelga
9394
- ramrodo
9495
sig-docs-fr-owners: # Admins for French content
9596
- perriea
@@ -103,19 +104,16 @@ aliases:
103104
- dipesh-rawat
104105
- divya-mohan0209
105106
sig-docs-hi-reviews: # PR reviews for Hindi content
106-
- Babapool
107107
- bishal7679
108108
- dipesh-rawat
109109
- divya-mohan0209
110110
- niranjandarshann
111111
sig-docs-id-owners: # Admins for Indonesian content
112112
- ariscahyadi
113-
- danninov
114113
- girikuncoro
115114
- habibrosyad
116115
sig-docs-id-reviews: # PR reviews for Indonesian content
117116
- ariscahyadi
118-
- danninov
119117
- girikuncoro
120118
- habibrosyad
121119
sig-docs-it-owners: # Admins for Italian content
@@ -131,6 +129,7 @@ aliases:
131129
- inductor
132130
- nasa9084
133131
- Okabe-Junya
132+
- t-inu
134133
sig-docs-ja-reviews: # PR reviews for Japanese content
135134
- atoato88
136135
- b1gb4by
@@ -143,6 +142,7 @@ aliases:
143142
sig-docs-ko-owners: # Admins for Korean content
144143
- gochist
145144
- jihoon-seo
145+
- jongwooo
146146
- seokho-son
147147
- yoonian
148148
- ysyukr
@@ -156,19 +156,17 @@ aliases:
156156
- ysyukr
157157
sig-docs-leads: # Website chairs and tech leads
158158
- divya-mohan0209
159+
- katcosgrove
159160
- natalisucks
160161
- reylejano
161162
- salaxander
162-
- sftim
163163
- tengqm
164164
sig-docs-zh-owners: # Admins for Chinese content
165165
- chenrui333
166166
- howieyuen
167167
- mengjiao-liu
168168
- my-git9
169169
- SataQiu
170-
- Sea-n
171-
- tanjunchen
172170
- tengqm
173171
- windsonsea
174172
- xichengliudui
@@ -178,33 +176,26 @@ aliases:
178176
- chenrui333
179177
- howieyuen
180178
# idealhack
181-
- kinzhi
182179
- mengjiao-liu
183180
- my-git9
184181
# pigletfly
185182
- SataQiu
186-
- Sea-n
187-
- tanjunchen
188183
- tengqm
189184
- windsonsea
190185
- xichengliudui
191186
- ydFu
192187
sig-docs-pt-owners: # Admins for Portuguese content
193-
- devlware
194188
- edsoncelio
195189
- jcjesus
196190
- stormqueen1990
197191
sig-docs-pt-reviews: # PR reviews for Portugese content
198-
- devlware
199192
- edsoncelio
200193
- jcjesus
201194
- mrerlison
202195
- stormqueen1990
203196
sig-docs-vi-owners: # Admins for Vietnamese content
204-
- huynguyennovem
205197
- truongnh1992
206198
sig-docs-vi-reviews: # PR reviews for Vietnamese content
207-
- huynguyennovem
208199
- truongnh1992
209200
sig-docs-ru-owners: # Admins for Russian content
210201
- Arhell

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ 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 the [Docsy Hugo theme](https://github.com/google/docsy#readme),
34+
which can be installed via npm. You can also download a pre-configured
35+
development container image that includes Hugo and Docsy. Additionally, a Git
36+
submodule is used for tools that generate the reference documentation.
3437

3538
### Windows
3639

File renamed without changes.

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
});

0 commit comments

Comments
 (0)