mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #84881 from oomichi/cleanup-skip.go
Remove unused skip functions
This commit is contained in:
commit
fc8f5a6410
@ -50,15 +50,6 @@ func SkipUnlessAtLeast(value int, minValue int, message string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// SkipIfContainerRuntimeIs skips if the container runtime is included in the runtimes.
|
|
||||||
func SkipIfContainerRuntimeIs(runtimes ...string) {
|
|
||||||
for _, containerRuntime := range runtimes {
|
|
||||||
if containerRuntime == TestContext.ContainerRuntime {
|
|
||||||
skipInternalf(1, "Not supported under container runtime %s", containerRuntime)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// SkipUnlessLocalEphemeralStorageEnabled skips if the LocalStorageCapacityIsolation is not enabled.
|
// SkipUnlessLocalEphemeralStorageEnabled skips if the LocalStorageCapacityIsolation is not enabled.
|
||||||
func SkipUnlessLocalEphemeralStorageEnabled() {
|
func SkipUnlessLocalEphemeralStorageEnabled() {
|
||||||
if !utilfeature.DefaultFeatureGate.Enabled(features.LocalStorageCapacityIsolation) {
|
if !utilfeature.DefaultFeatureGate.Enabled(features.LocalStorageCapacityIsolation) {
|
||||||
@ -168,13 +159,6 @@ func SkipUnlessSSHKeyPresent() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// SkipUnlessTaintBasedEvictionsEnabled skips if the TaintBasedEvictions is not enabled.
|
|
||||||
func SkipUnlessTaintBasedEvictionsEnabled() {
|
|
||||||
if !utilfeature.DefaultFeatureGate.Enabled(features.TaintBasedEvictions) {
|
|
||||||
skipInternalf(1, "Only supported when %v feature is enabled", features.TaintBasedEvictions)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// serverVersionGTE returns true if v is greater than or equal to the server
|
// serverVersionGTE returns true if v is greater than or equal to the server
|
||||||
// version.
|
// version.
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user