mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Merge pull request #75003 from tallclair/runtimeclass-beta
Promote RuntimeClass to beta
This commit is contained in:
commit
41b544bcf7
@ -356,6 +356,7 @@ const (
|
|||||||
|
|
||||||
// owner: @tallclair
|
// owner: @tallclair
|
||||||
// alpha: v1.12
|
// alpha: v1.12
|
||||||
|
// beta: v1.14
|
||||||
//
|
//
|
||||||
// Enables RuntimeClass, for selecting between multiple runtimes to run a pod.
|
// Enables RuntimeClass, for selecting between multiple runtimes to run a pod.
|
||||||
RuntimeClass utilfeature.Feature = "RuntimeClass"
|
RuntimeClass utilfeature.Feature = "RuntimeClass"
|
||||||
@ -498,7 +499,7 @@ var defaultKubernetesFeatureGates = map[utilfeature.Feature]utilfeature.FeatureS
|
|||||||
ResourceQuotaScopeSelectors: {Default: true, PreRelease: utilfeature.Beta},
|
ResourceQuotaScopeSelectors: {Default: true, PreRelease: utilfeature.Beta},
|
||||||
CSIBlockVolume: {Default: true, PreRelease: utilfeature.Beta},
|
CSIBlockVolume: {Default: true, PreRelease: utilfeature.Beta},
|
||||||
CSIInlineVolume: {Default: false, PreRelease: utilfeature.Alpha},
|
CSIInlineVolume: {Default: false, PreRelease: utilfeature.Alpha},
|
||||||
RuntimeClass: {Default: false, PreRelease: utilfeature.Alpha},
|
RuntimeClass: {Default: true, PreRelease: utilfeature.Beta},
|
||||||
NodeLease: {Default: true, PreRelease: utilfeature.Beta},
|
NodeLease: {Default: true, PreRelease: utilfeature.Beta},
|
||||||
SCTPSupport: {Default: false, PreRelease: utilfeature.Alpha},
|
SCTPSupport: {Default: false, PreRelease: utilfeature.Alpha},
|
||||||
VolumeSnapshotDataSource: {Default: false, PreRelease: utilfeature.Alpha},
|
VolumeSnapshotDataSource: {Default: false, PreRelease: utilfeature.Alpha},
|
||||||
|
@ -1023,6 +1023,14 @@ items:
|
|||||||
- get
|
- get
|
||||||
- patch
|
- patch
|
||||||
- update
|
- update
|
||||||
|
- apiGroups:
|
||||||
|
- node.k8s.io
|
||||||
|
resources:
|
||||||
|
- runtimeclasses
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
- apiVersion: rbac.authorization.k8s.io/v1
|
- apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -34,7 +34,7 @@ import (
|
|||||||
. "github.com/onsi/ginkgo"
|
. "github.com/onsi/ginkgo"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ = SIGDescribe("RuntimeClass [Feature:RuntimeClass]", func() {
|
var _ = SIGDescribe("RuntimeClass", func() {
|
||||||
f := framework.NewDefaultFramework("runtimeclass")
|
f := framework.NewDefaultFramework("runtimeclass")
|
||||||
|
|
||||||
It("should reject a Pod requesting a non-existent RuntimeClass", func() {
|
It("should reject a Pod requesting a non-existent RuntimeClass", func() {
|
||||||
@ -43,12 +43,6 @@ var _ = SIGDescribe("RuntimeClass [Feature:RuntimeClass]", func() {
|
|||||||
expectSandboxFailureEvent(f, pod, fmt.Sprintf("\"%s\" not found", rcName))
|
expectSandboxFailureEvent(f, pod, fmt.Sprintf("\"%s\" not found", rcName))
|
||||||
})
|
})
|
||||||
|
|
||||||
It("should run a Pod requesting a RuntimeClass with an empty handler", func() {
|
|
||||||
rcName := createRuntimeClass(f, "empty-handler", "")
|
|
||||||
pod := createRuntimeClassPod(f, rcName)
|
|
||||||
expectPodSuccess(f, pod)
|
|
||||||
})
|
|
||||||
|
|
||||||
It("should reject a Pod requesting a RuntimeClass with an unconfigured handler", func() {
|
It("should reject a Pod requesting a RuntimeClass with an unconfigured handler", func() {
|
||||||
handler := f.Namespace.Name + "-handler"
|
handler := f.Namespace.Name + "-handler"
|
||||||
rcName := createRuntimeClass(f, "unconfigured-handler", handler)
|
rcName := createRuntimeClass(f, "unconfigured-handler", handler)
|
||||||
@ -57,7 +51,7 @@ var _ = SIGDescribe("RuntimeClass [Feature:RuntimeClass]", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("should reject a Pod requesting a deleted RuntimeClass", func() {
|
It("should reject a Pod requesting a deleted RuntimeClass", func() {
|
||||||
rcName := createRuntimeClass(f, "delete-me", "")
|
rcName := createRuntimeClass(f, "delete-me", "runc")
|
||||||
rcClient := f.ClientSet.NodeV1beta1().RuntimeClasses()
|
rcClient := f.ClientSet.NodeV1beta1().RuntimeClasses()
|
||||||
|
|
||||||
By("Deleting RuntimeClass "+rcName, func() {
|
By("Deleting RuntimeClass "+rcName, func() {
|
||||||
|
Loading…
Reference in New Issue
Block a user