Skip to content

Commit e6e1ce0

Browse files
committed
packages: add kubernetes-1.34
Signed-off-by: Kush Upadhyay <[email protected]>
1 parent d072b8c commit e6e1ce0

28 files changed

+873
-0
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ members = [
5151
"packages/kubernetes-1.31",
5252
"packages/kubernetes-1.32",
5353
"packages/kubernetes-1.33",
54+
"packages/kubernetes-1.34",
5455
"packages/libacl",
5556
"packages/libaio",
5657
"packages/libattr",

kits/bottlerocket-core-kit/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ kubernetes-1_30 = { path = "../../packages/kubernetes-1.30" }
6060
kubernetes-1_31 = { path = "../../packages/kubernetes-1.31" }
6161
kubernetes-1_32 = { path = "../../packages/kubernetes-1.32" }
6262
kubernetes-1_33 = { path = "../../packages/kubernetes-1.33" }
63+
kubernetes-1_34 = { path = "../../packages/kubernetes-1.34" }
6364
libacl = { path = "../../packages/libacl" }
6465
libaio = { path = "../../packages/libaio" }
6566
libattr = { path = "../../packages/libattr" }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/*-EKS-PATCH-*.patch
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[package]
2+
# "." is not allowed in crate names, but we want a friendlier name for the
3+
# directory and spec file, so we override it below.
4+
name = "kubernetes-1_34"
5+
version = "0.1.0"
6+
edition = "2021"
7+
publish = false
8+
build = "../build.rs"
9+
10+
[lib]
11+
path = "../packages.rs"
12+
13+
[package.metadata.build-package]
14+
package-name = "kubernetes-1.34"
15+
16+
[[package.metadata.build-package.external-files]]
17+
url = "https://distro.eks.amazonaws.com/kubernetes-1-34/releases/2/artifacts/kubernetes/v1.34.0-rc.0/kubernetes-src.tar.gz"
18+
sha512 = "1d40afcdbb682fcbc19f41e2aa91afe5727894c4351718fedb586e712f5519daf136852ddecd530b9f43839e9b3f7a402a23c8b39c5e26928a73dc2af116353e"
19+
20+
[build-dependencies]
21+
glibc = { path = "../glibc" }
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
[clarify."github.com/JeffAshton/win_pdh"]
2+
expression = "BSD-3-Clause"
3+
license-files = [
4+
{ path = "LICENSE", hash = 0xb221dcc9 },
5+
]
6+
7+
[clarify."github.com/daviddengcn/go-colortext"]
8+
expression = "BSD-3-Clause AND MIT"
9+
license-files = [
10+
{ path = "LICENSE", hash = 0x9769fae1 },
11+
]
12+
13+
[clarify."github.com/ghodss/yaml"]
14+
expression = "MIT AND BSD-3-Clause"
15+
license-files = [
16+
{ path = "LICENSE", hash = 0xcdf3ae00 },
17+
]
18+
19+
[clarify."github.com/heketi/heketi"]
20+
# kubernetes only uses code that is under LGPLv3+/Apache 2.0, not the code that is GPLv2+/LGPLv3+
21+
expression = "LGPL-3.0-or-later OR Apache-2.0"
22+
license-files = [
23+
{ path = "LICENSE", hash = 0x3c4b96d1 },
24+
{ path = "LICENSE-APACHE2", hash = 0x438c8616 },
25+
{ path = "COPYING-LGPLV3", hash = 0xf0bccb3a },
26+
]
27+
skip-files = [ "COPYING-GPLV2" ]
28+
29+
[clarify."github.com/go-bindata/go-bindata"]
30+
expression = "CC0-1.0"
31+
license-files = [
32+
{ path = "LICENSE", hash = 0x393fafd6 },
33+
]
34+
35+
[clarify."github.com/miekg/dns"]
36+
expression = "BSD-3-Clause"
37+
license-files = [
38+
{ path = "COPYRIGHT", hash = 0xe41dd36c },
39+
{ path = "LICENSE", hash = 0xfc8f12ff },
40+
]
41+
42+
[clarify."sigs.k8s.io/yaml"]
43+
expression = "MIT AND BSD-3-Clause AND Apache-2.0"
44+
license-files = [
45+
{ path = "LICENSE", hash = 0x617d80bc },
46+
]
47+
48+
[clarify."honnef.co/go/tools"]
49+
expression = "MIT AND BSD-3-Clause AND Apache-2.0"
50+
license-files = [
51+
{ path = "LICENSE", hash = 0xad378ed2 },
52+
{ path = "LICENSE-THIRD-PARTY", hash = 0x546425eb },
53+
{ path = "lint/LICENSE", hash = 0xc6b58232 },
54+
{ path = "ssa/LICENSE", hash = 0xe656fb62 },
55+
]
56+
57+
[clarify."github.com/storageos/go-api"]
58+
expression = "MIT AND BSD-2-Clause"
59+
license-files = [
60+
{ path = "LICENCE", hash = 0x67a6861e },
61+
]
62+
skip-files = ["licence.go", "types/licence.go"]
63+
64+
[clarify."github.com/grpc-ecosystem/go-grpc-middleware/v2"]
65+
expression = "Apache-2.0"
66+
license-files = [
67+
{ path = "COPYRIGHT", hash = 0x4bba7b1 },
68+
{ path = "LICENSE", hash = 0x6a39c900 },
69+
]
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
[required-extensions]
2+
aws = { version = "v1", optional = true }
3+
kubernetes = "v1"
4+
std = { version = "v1", helpers = ["default"] }
5+
+++
6+
apiVersion: kubelet.config.k8s.io/v1
7+
kind: CredentialProviderConfig
8+
providers:
9+
{{#if settings.kubernetes.credential-providers}}
10+
{{#each settings.kubernetes.credential-providers}}
11+
{{#if this.enabled}}
12+
- name: {{@key}}
13+
matchImages:
14+
{{#each this.image-patterns}}
15+
- "{{this}}"
16+
{{/each}}
17+
defaultCacheDuration: "{{default "12h" this.cache-duration}}"
18+
apiVersion: credentialprovider.kubelet.k8s.io/v1
19+
{{#if (eq @key "ecr-credential-provider")}}
20+
env:
21+
{{else}}
22+
{{#if this.environment}}
23+
env:
24+
{{/if}}
25+
{{/if}}
26+
{{#if this.environment}}
27+
{{#each this.environment}}
28+
- name: {{@key}}
29+
value: '{{this}}'
30+
{{/each}}
31+
{{/if}}
32+
{{#if (eq @key "ecr-credential-provider")}}
33+
- name: HOME
34+
value: '/root'
35+
{{#if @root.settings.aws.profile}}
36+
- name: AWS_PROFILE
37+
value: '{{@root.settings.aws.profile}}'
38+
{{/if}}
39+
{{/if}}
40+
{{/if}}
41+
{{/each}}
42+
{{/if}}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[Service]
2+
ExecStartPre=/bin/ln -sf ./containerd/containerd.sock /run/dockershim.sock
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[Unit]
2+
Description=Kubernetes PKI private directory (/etc/kubernetes/pki/private)
3+
DefaultDependencies=no
4+
Conflicts=umount.target
5+
Before=local-fs.target umount.target
6+
After=selinux-policy-files.service
7+
Wants=selinux-policy-files.service
8+
9+
[Mount]
10+
What=tmpfs
11+
Where=/etc/kubernetes/pki/private
12+
Type=tmpfs
13+
Options=nosuid,nodev,noexec,noatime,context=system_u:object_r:etc_secret_t:s0,mode=0700
14+
15+
[Install]
16+
WantedBy=preconfigured.target
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[required-extensions]
2+
kubernetes = "v1"
3+
+++
4+
---
5+
apiVersion: v1
6+
kind: Config
7+
clusters:
8+
- cluster:
9+
{{#if settings.kubernetes.api-server}}
10+
certificate-authority: "/etc/kubernetes/pki/ca.crt"
11+
server: "{{settings.kubernetes.api-server}}"
12+
{{/if}}
13+
name: kubernetes
14+
contexts:
15+
- context:
16+
cluster: kubernetes
17+
user: kubelet
18+
name: kubelet
19+
current-context: kubelet
20+
users:
21+
- name: kubelet
22+
{{#if settings.kubernetes.bootstrap-token}}
23+
user:
24+
token: "{{settings.kubernetes.bootstrap-token}}"
25+
{{/if}}

0 commit comments

Comments
 (0)