Merge remote-tracking branch 'origin/master' into release-1.30

This commit is contained in:
Kubernetes Release Robot 2024-03-27 20:07:30 +00:00
commit d5113d861c
2 changed files with 515 additions and 3 deletions

View File

@ -30,6 +30,12 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/apimachinery - staging/src/k8s.io/apimachinery
- name: release-1.30
go: 1.22.1
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/apimachinery
library: true library: true
- destination: api - destination: api
branches: branches:
@ -77,6 +83,15 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/api - staging/src/k8s.io/api
- name: release-1.30
go: 1.22.1
dependencies:
- repository: apimachinery
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/api
library: true library: true
- destination: client-go - destination: client-go
branches: branches:
@ -154,17 +169,32 @@ rules:
# assumes GO111MODULE=on # assumes GO111MODULE=on
go build -mod=mod ./... go build -mod=mod ./...
go test -mod=mod ./... go test -mod=mod ./...
- name: release-1.30
go: 1.22.1
dependencies:
- repository: apimachinery
branch: release-1.30
- repository: api
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/client-go
smoke-test: |
# assumes GO111MODULE=on
go build -mod=mod ./...
go test -mod=mod ./...
library: true library: true
- destination: code-generator - destination: code-generator
branches: branches:
- name: master - name: master
dependencies:
- repository: apimachinery
branch: master
source: source:
branch: master branch: master
dirs: dirs:
- staging/src/k8s.io/code-generator - staging/src/k8s.io/code-generator
dependencies:
- repository: apimachinery # for tests
branch: master
- name: release-1.26 - name: release-1.26
go: 1.21.8 go: 1.21.8
source: source:
@ -189,6 +219,15 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/code-generator - staging/src/k8s.io/code-generator
- name: release-1.30
go: 1.22.1
dependencies:
- repository: apimachinery
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/code-generator
- destination: component-base - destination: component-base
branches: branches:
- name: master - name: master
@ -255,6 +294,19 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/component-base - staging/src/k8s.io/component-base
- name: release-1.30
go: 1.22.1
dependencies:
- repository: apimachinery
branch: release-1.30
- repository: api
branch: release-1.30
- repository: client-go
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/component-base
library: true library: true
- destination: component-helpers - destination: component-helpers
branches: branches:
@ -322,6 +374,19 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/component-helpers - staging/src/k8s.io/component-helpers
- name: release-1.30
go: 1.22.1
dependencies:
- repository: apimachinery
branch: release-1.30
- repository: api
branch: release-1.30
- repository: client-go
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/component-helpers
library: true library: true
- destination: kms - destination: kms
branches: branches:
@ -374,6 +439,15 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/kms - staging/src/k8s.io/kms
- name: release-1.30
go: 1.22.1
dependencies:
- repository: apimachinery
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/kms
library: true library: true
- destination: apiserver - destination: apiserver
branches: branches:
@ -461,6 +535,23 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/apiserver - staging/src/k8s.io/apiserver
- name: release-1.30
go: 1.22.1
dependencies:
- repository: apimachinery
branch: release-1.30
- repository: api
branch: release-1.30
- repository: client-go
branch: release-1.30
- repository: component-base
branch: release-1.30
- repository: kms
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/apiserver
library: true library: true
- destination: kube-aggregator - destination: kube-aggregator
branches: branches:
@ -568,6 +659,27 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/kube-aggregator - staging/src/k8s.io/kube-aggregator
- name: release-1.30
go: 1.22.1
dependencies:
- repository: apimachinery
branch: release-1.30
- repository: api
branch: release-1.30
- repository: client-go
branch: release-1.30
- repository: apiserver
branch: release-1.30
- repository: component-base
branch: release-1.30
- repository: kms
branch: release-1.30
- repository: code-generator
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/kube-aggregator
- destination: sample-apiserver - destination: sample-apiserver
branches: branches:
- name: master - name: master
@ -699,6 +811,32 @@ rules:
smoke-test: | smoke-test: |
# assumes GO111MODULE=on # assumes GO111MODULE=on
go build -mod=mod . go build -mod=mod .
- name: release-1.30
go: 1.22.1
dependencies:
- repository: apimachinery
branch: release-1.30
- repository: api
branch: release-1.30
- repository: client-go
branch: release-1.30
- repository: apiserver
branch: release-1.30
- repository: code-generator
branch: release-1.30
- repository: kms
branch: release-1.30
- repository: component-base
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/sample-apiserver
required-packages:
- k8s.io/code-generator
smoke-test: |
# assumes GO111MODULE=on
go build -mod=mod .
- destination: sample-controller - destination: sample-controller
branches: branches:
- name: master - name: master
@ -800,6 +938,26 @@ rules:
smoke-test: | smoke-test: |
# assumes GO111MODULE=on # assumes GO111MODULE=on
go build -mod=mod . go build -mod=mod .
- name: release-1.30
go: 1.22.1
dependencies:
- repository: apimachinery
branch: release-1.30
- repository: api
branch: release-1.30
- repository: client-go
branch: release-1.30
- repository: code-generator
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/sample-controller
required-packages:
- k8s.io/code-generator
smoke-test: |
# assumes GO111MODULE=on
go build -mod=mod .
- destination: apiextensions-apiserver - destination: apiextensions-apiserver
branches: branches:
- name: master - name: master
@ -916,6 +1074,29 @@ rules:
- staging/src/k8s.io/apiextensions-apiserver - staging/src/k8s.io/apiextensions-apiserver
required-packages: required-packages:
- k8s.io/code-generator - k8s.io/code-generator
- name: release-1.30
go: 1.22.1
dependencies:
- repository: apimachinery
branch: release-1.30
- repository: api
branch: release-1.30
- repository: client-go
branch: release-1.30
- repository: apiserver
branch: release-1.30
- repository: code-generator
branch: release-1.30
- repository: component-base
branch: release-1.30
- repository: kms
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/apiextensions-apiserver
required-packages:
- k8s.io/code-generator
- destination: metrics - destination: metrics
branches: branches:
- name: master - name: master
@ -992,6 +1173,21 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/metrics - staging/src/k8s.io/metrics
- name: release-1.30
go: 1.22.1
dependencies:
- repository: apimachinery
branch: release-1.30
- repository: api
branch: release-1.30
- repository: client-go
branch: release-1.30
- repository: code-generator
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/metrics
library: true library: true
- destination: cli-runtime - destination: cli-runtime
branches: branches:
@ -1059,6 +1255,19 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/cli-runtime - staging/src/k8s.io/cli-runtime
- name: release-1.30
go: 1.22.1
dependencies:
- repository: api
branch: release-1.30
- repository: apimachinery
branch: release-1.30
- repository: client-go
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/cli-runtime
library: true library: true
- destination: sample-cli-plugin - destination: sample-cli-plugin
branches: branches:
@ -1136,6 +1345,21 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/sample-cli-plugin - staging/src/k8s.io/sample-cli-plugin
- name: release-1.30
go: 1.22.1
dependencies:
- repository: api
branch: release-1.30
- repository: apimachinery
branch: release-1.30
- repository: cli-runtime
branch: release-1.30
- repository: client-go
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/sample-cli-plugin
- destination: kube-proxy - destination: kube-proxy
branches: branches:
- name: master - name: master
@ -1212,6 +1436,21 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/kube-proxy - staging/src/k8s.io/kube-proxy
- name: release-1.30
go: 1.22.1
dependencies:
- repository: apimachinery
branch: release-1.30
- repository: component-base
branch: release-1.30
- repository: api
branch: release-1.30
- repository: client-go
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/kube-proxy
library: true library: true
- destination: cri-api - destination: cri-api
branches: branches:
@ -1244,6 +1483,12 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/cri-api - staging/src/k8s.io/cri-api
- name: release-1.30
go: 1.22.1
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/cri-api
library: true library: true
- destination: kubelet - destination: kubelet
branches: branches:
@ -1339,6 +1584,27 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/kubelet - staging/src/k8s.io/kubelet
- name: release-1.30
go: 1.22.1
dependencies:
- repository: apimachinery
branch: release-1.30
- repository: apiserver
branch: release-1.30
- repository: api
branch: release-1.30
- repository: client-go
branch: release-1.30
- repository: cri-api
branch: release-1.30
- repository: component-base
branch: release-1.30
- repository: kms
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/kubelet
library: true library: true
- destination: kube-scheduler - destination: kube-scheduler
branches: branches:
@ -1416,6 +1682,21 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/kube-scheduler - staging/src/k8s.io/kube-scheduler
- name: release-1.30
go: 1.22.1
dependencies:
- repository: apimachinery
branch: release-1.30
- repository: component-base
branch: release-1.30
- repository: api
branch: release-1.30
- repository: client-go
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/kube-scheduler
library: true library: true
- destination: controller-manager - destination: controller-manager
branches: branches:
@ -1513,6 +1794,25 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/controller-manager - staging/src/k8s.io/controller-manager
- name: release-1.30
go: 1.22.1
dependencies:
- repository: api
branch: release-1.30
- repository: apimachinery
branch: release-1.30
- repository: client-go
branch: release-1.30
- repository: component-base
branch: release-1.30
- repository: apiserver
branch: release-1.30
- repository: kms
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/controller-manager
library: true library: true
- destination: cloud-provider - destination: cloud-provider
branches: branches:
@ -1630,6 +1930,29 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/cloud-provider - staging/src/k8s.io/cloud-provider
- name: release-1.30
go: 1.22.1
dependencies:
- repository: api
branch: release-1.30
- repository: apimachinery
branch: release-1.30
- repository: apiserver
branch: release-1.30
- repository: client-go
branch: release-1.30
- repository: component-base
branch: release-1.30
- repository: controller-manager
branch: release-1.30
- repository: component-helpers
branch: release-1.30
- repository: kms
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/cloud-provider
library: true library: true
- destination: kube-controller-manager - destination: kube-controller-manager
branches: branches:
@ -1757,6 +2080,31 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/kube-controller-manager - staging/src/k8s.io/kube-controller-manager
- name: release-1.30
go: 1.22.1
dependencies:
- repository: apimachinery
branch: release-1.30
- repository: apiserver
branch: release-1.30
- repository: component-base
branch: release-1.30
- repository: api
branch: release-1.30
- repository: client-go
branch: release-1.30
- repository: controller-manager
branch: release-1.30
- repository: cloud-provider
branch: release-1.30
- repository: component-helpers
branch: release-1.30
- repository: kms
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/kube-controller-manager
library: true library: true
- destination: cluster-bootstrap - destination: cluster-bootstrap
branches: branches:
@ -1814,6 +2162,17 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/cluster-bootstrap - staging/src/k8s.io/cluster-bootstrap
- name: release-1.30
go: 1.22.1
dependencies:
- repository: apimachinery
branch: release-1.30
- repository: api
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/cluster-bootstrap
library: true library: true
- destination: csi-translation-lib - destination: csi-translation-lib
branches: branches:
@ -1871,6 +2230,17 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/csi-translation-lib - staging/src/k8s.io/csi-translation-lib
- name: release-1.30
go: 1.22.1
dependencies:
- repository: api
branch: release-1.30
- repository: apimachinery
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/csi-translation-lib
library: true library: true
- destination: mount-utils - destination: mount-utils
branches: branches:
@ -1903,6 +2273,12 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/mount-utils - staging/src/k8s.io/mount-utils
- name: release-1.30
go: 1.22.1
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/mount-utils
library: true library: true
- destination: legacy-cloud-providers - destination: legacy-cloud-providers
branches: branches:
@ -2034,6 +2410,31 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/legacy-cloud-providers - staging/src/k8s.io/legacy-cloud-providers
- name: release-1.30
go: 1.22.1
dependencies:
- repository: api
branch: release-1.30
- repository: apimachinery
branch: release-1.30
- repository: client-go
branch: release-1.30
- repository: cloud-provider
branch: release-1.30
- repository: apiserver
branch: release-1.30
- repository: component-base
branch: release-1.30
- repository: controller-manager
branch: release-1.30
- repository: component-helpers
branch: release-1.30
- repository: kms
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/legacy-cloud-providers
library: true library: true
- destination: kubectl - destination: kubectl
branches: branches:
@ -2151,6 +2552,29 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/kubectl - staging/src/k8s.io/kubectl
- name: release-1.30
go: 1.22.1
dependencies:
- repository: api
branch: release-1.30
- repository: apimachinery
branch: release-1.30
- repository: cli-runtime
branch: release-1.30
- repository: client-go
branch: release-1.30
- repository: code-generator
branch: release-1.30
- repository: component-base
branch: release-1.30
- repository: component-helpers
branch: release-1.30
- repository: metrics
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/kubectl
library: true library: true
- destination: pod-security-admission - destination: pod-security-admission
branches: branches:
@ -2248,6 +2672,25 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/pod-security-admission - staging/src/k8s.io/pod-security-admission
- name: release-1.30
go: 1.22.1
dependencies:
- repository: api
branch: release-1.30
- repository: apimachinery
branch: release-1.30
- repository: apiserver
branch: release-1.30
- repository: client-go
branch: release-1.30
- repository: component-base
branch: release-1.30
- repository: kms
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/pod-security-admission
library: true library: true
- destination: dynamic-resource-allocation - destination: dynamic-resource-allocation
branches: branches:
@ -2349,6 +2792,29 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/dynamic-resource-allocation - staging/src/k8s.io/dynamic-resource-allocation
- name: release-1.30
go: 1.22.1
dependencies:
- repository: apimachinery
branch: release-1.30
- repository: apiserver
branch: release-1.30
- repository: api
branch: release-1.30
- repository: client-go
branch: release-1.30
- repository: cri-api
branch: release-1.30
- repository: component-base
branch: release-1.30
- repository: kms
branch: release-1.30
- repository: kubelet
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/dynamic-resource-allocation
- destination: endpointslice - destination: endpointslice
branches: branches:
- name: master - name: master
@ -2395,6 +2861,21 @@ rules:
branch: release-1.29 branch: release-1.29
dirs: dirs:
- staging/src/k8s.io/endpointslice - staging/src/k8s.io/endpointslice
- name: release-1.30
go: 1.22.1
dependencies:
- repository: api
branch: release-1.30
- repository: apimachinery
branch: release-1.30
- repository: client-go
branch: release-1.30
- repository: component-base
branch: release-1.30
source:
branch: release-1.30
dirs:
- staging/src/k8s.io/endpointslice
recursive-delete-patterns: recursive-delete-patterns:
- '*/.gitattributes' - '*/.gitattributes'
default-go-version: 1.22.1 default-go-version: 1.22.1

View File

@ -31,6 +31,7 @@ import (
"github.com/onsi/ginkgo/v2" "github.com/onsi/ginkgo/v2"
libcontainercgroups "github.com/opencontainers/runc/libcontainer/cgroups" libcontainercgroups "github.com/opencontainers/runc/libcontainer/cgroups"
"k8s.io/utils/ptr"
) )
type testCase struct { type testCase struct {
@ -211,6 +212,16 @@ func getOOMTargetContainer(name string) v1.Container {
v1.ResourceMemory: resource.MustParse("15Mi"), v1.ResourceMemory: resource.MustParse("15Mi"),
}, },
}, },
SecurityContext: &v1.SecurityContext{
SeccompProfile: &v1.SeccompProfile{
Type: v1.SeccompProfileTypeRuntimeDefault,
},
AllowPrivilegeEscalation: ptr.To(false),
RunAsUser: ptr.To[int64](999),
RunAsGroup: ptr.To[int64](999),
RunAsNonRoot: ptr.To(true),
Capabilities: &v1.Capabilities{Drop: []v1.Capability{"ALL"}},
},
} }
} }
@ -234,6 +245,16 @@ func getOOMTargetContainerMultiProcess(name string) v1.Container {
v1.ResourceMemory: resource.MustParse("15Mi"), v1.ResourceMemory: resource.MustParse("15Mi"),
}, },
}, },
SecurityContext: &v1.SecurityContext{
SeccompProfile: &v1.SeccompProfile{
Type: v1.SeccompProfileTypeRuntimeDefault,
},
AllowPrivilegeEscalation: ptr.To(false),
RunAsUser: ptr.To[int64](999),
RunAsGroup: ptr.To[int64](999),
RunAsNonRoot: ptr.To(true),
Capabilities: &v1.Capabilities{Drop: []v1.Capability{"ALL"}},
},
} }
} }
@ -249,5 +270,15 @@ func getOOMTargetContainerWithoutLimit(name string) v1.Container {
// use the dd tool to attempt to allocate huge block of memory which exceeds the node allocatable // use the dd tool to attempt to allocate huge block of memory which exceeds the node allocatable
"sleep 5 && dd if=/dev/zero of=/dev/null iflag=fullblock count=10 bs=10G", "sleep 5 && dd if=/dev/zero of=/dev/null iflag=fullblock count=10 bs=10G",
}, },
SecurityContext: &v1.SecurityContext{
SeccompProfile: &v1.SeccompProfile{
Type: v1.SeccompProfileTypeRuntimeDefault,
},
AllowPrivilegeEscalation: ptr.To(false),
RunAsUser: ptr.To[int64](999),
RunAsGroup: ptr.To[int64](999),
RunAsNonRoot: ptr.To(true),
Capabilities: &v1.Capabilities{Drop: []v1.Capability{"ALL"}},
},
} }
} }