Skip to content

Commit 2d8f7f1

Browse files
authored
Merge pull request #627 from koooosh/add-k8s-134-beta
Add k8s-1.34 and ecr-credential-provider-1.34 pkgs with pre-release sources
2 parents 3d09628 + e6e1ce0 commit 2d8f7f1

31 files changed

+992
-0
lines changed

Cargo.lock

Lines changed: 16 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ members = [
3030
"packages/ecr-credential-provider-1.31",
3131
"packages/ecr-credential-provider-1.32",
3232
"packages/ecr-credential-provider-1.33",
33+
"packages/ecr-credential-provider-1.34",
3334
"packages/ecs-agent",
3435
"packages/ecs-gpu-init",
3536
"packages/ethtool",
@@ -50,6 +51,7 @@ members = [
5051
"packages/kubernetes-1.31",
5152
"packages/kubernetes-1.32",
5253
"packages/kubernetes-1.33",
54+
"packages/kubernetes-1.34",
5355
"packages/libacl",
5456
"packages/libaio",
5557
"packages/libattr",

kits/bottlerocket-core-kit/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ ecr-credential-provider-1_30 = { path = "../../packages/ecr-credential-provider-
3939
ecr-credential-provider-1_31 = { path = "../../packages/ecr-credential-provider-1.31" }
4040
ecr-credential-provider-1_32 = { path = "../../packages/ecr-credential-provider-1.32" }
4141
ecr-credential-provider-1_33 = { path = "../../packages/ecr-credential-provider-1.33" }
42+
ecr-credential-provider-1_34 = { path = "../../packages/ecr-credential-provider-1.34" }
4243
ecs-agent = { path = "../../packages/ecs-agent" }
4344
ecs-gpu-init = { path = "../../packages/ecs-gpu-init" }
4445
ethtool = { path = "../../packages/ethtool" }
@@ -59,6 +60,7 @@ kubernetes-1_30 = { path = "../../packages/kubernetes-1.30" }
5960
kubernetes-1_31 = { path = "../../packages/kubernetes-1.31" }
6061
kubernetes-1_32 = { path = "../../packages/kubernetes-1.32" }
6162
kubernetes-1_33 = { path = "../../packages/kubernetes-1.33" }
63+
kubernetes-1_34 = { path = "../../packages/kubernetes-1.34" }
6264
libacl = { path = "../../packages/libacl" }
6365
libaio = { path = "../../packages/libaio" }
6466
libattr = { path = "../../packages/libattr" }
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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 = "ecr-credential-provider-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 = "ecr-credential-provider-1.34"
15+
releases-url = "https://github.com/kubernetes/cloud-provider-aws/releases"
16+
17+
[[package.metadata.build-package.external-files]]
18+
url = "https://github.com/kubernetes/cloud-provider-aws/archive/v1.34.0-rc.0.tar.gz"
19+
path = "cloud-provider-aws-1.34.0.tar.gz"
20+
sha512 = "de7fdbdc5bc26959334194178eb63a25013e552fdaf67947c29d3990aec18cb62dcc7d3b0f153e76754bf95f911894fa13ae1e24c2491fdc0d81ba24d127d734"
21+
bundle-modules = [ "go" ]
22+
23+
[build-dependencies]
24+
glibc = { path = "../glibc" }
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[clarify."sigs.k8s.io/yaml"]
2+
expression = "MIT AND BSD-3-Clause AND Apache-2.0"
3+
license-files = [
4+
{ path = "LICENSE", hash = 0x617d80bc },
5+
]
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
%global goproject github.com/kubernetes
2+
%global gorepo cloud-provider-aws
3+
%global goimport %{goproject}/%{gorepo}
4+
5+
%global gover 1.34.0
6+
%global rpmver %{gover}
7+
8+
%global _dwz_low_mem_die_limit 0
9+
10+
Name: %{_cross_os}ecr-credential-provider-1.34
11+
Version: %{rpmver}
12+
Release: 0.rc0%{?dist}
13+
Summary: Amazon ECR credential provider
14+
License: Apache-2.0
15+
URL: https://github.com/kubernetes/cloud-provider-aws
16+
17+
Source: cloud-provider-aws-%{gover}.tar.gz
18+
Source1: bundled-cloud-provider-aws-%{gover}.tar.gz
19+
Source1000: clarify.toml
20+
21+
BuildRequires: %{_cross_os}glibc-devel
22+
Requires: %{name}(binaries)
23+
24+
# For IAM Roles Anywhere, the signing helper might be set as the credential
25+
# process.
26+
Requires: %{_cross_os}aws-signing-helper
27+
28+
%description
29+
%{summary}.
30+
31+
%package bin
32+
Summary: Amazon ECR credential provider binaries
33+
Provides: %{name}(binaries)
34+
Requires: (%{_cross_os}image-feature(no-fips) and %{name})
35+
Conflicts: (%{_cross_os}image-feature(fips) or %{name}-fips-bin)
36+
37+
%description bin
38+
%{summary}.
39+
40+
%package fips-bin
41+
Summary: Amazon ECR credential provider binaries, FIPS edition
42+
Provides: %{name}(binaries)
43+
Requires: (%{_cross_os}image-feature(fips) and %{name})
44+
Conflicts: (%{_cross_os}image-feature(no-fips) or %{name}-bin)
45+
46+
%description fips-bin
47+
%{summary}.
48+
49+
%prep
50+
%setup -n %{gorepo}-%{gover}-rc.0 -q
51+
%setup -T -D -n %{gorepo}-%{gover}-rc.0 -b 1 -q
52+
53+
%build
54+
%set_cross_go_flags
55+
56+
export GOTOOLCHAIN=local
57+
export GO_MAJOR="1.24"
58+
59+
go build -ldflags="${GOLDFLAGS}" -o=ecr-credential-provider cmd/ecr-credential-provider/*.go
60+
gofips build -ldflags="${GOLDFLAGS}" -o=fips/ecr-credential-provider cmd/ecr-credential-provider/*.go
61+
62+
%install
63+
install -d %{buildroot}%{_cross_libexecdir}/kubernetes/kubelet/plugins
64+
install -p -m 0755 ecr-credential-provider %{buildroot}%{_cross_libexecdir}/kubernetes/kubelet/plugins
65+
66+
install -d %{buildroot}%{_cross_fips_libexecdir}/kubernetes/kubelet/plugins
67+
install -p -m 0755 fips/ecr-credential-provider %{buildroot}%{_cross_fips_libexecdir}/kubernetes/kubelet/plugins
68+
69+
%cross_scan_attribution --clarify %{S:1000} go-vendor vendor
70+
71+
%files
72+
%license LICENSE
73+
%{_cross_attribution_file}
74+
%{_cross_attribution_vendor_dir}
75+
76+
%files bin
77+
%{_cross_libexecdir}/kubernetes/kubelet/plugins/ecr-credential-provider
78+
79+
%files fips-bin
80+
%{_cross_fips_libexecdir}/kubernetes/kubelet/plugins/ecr-credential-provider
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}}

0 commit comments

Comments
 (0)