mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
update comment, only skip on missing resource if provider is not gce
This commit is contained in:
parent
915e735d21
commit
1631c6dd24
@ -67,10 +67,13 @@ var _ = framework.KubeDescribe("PetSet [Slow] [Feature:PetSet]", func() {
|
|||||||
var c *client.Client
|
var c *client.Client
|
||||||
|
|
||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
// PetSet is in alpha, so it's disabled on all platforms except GCE.
|
// PetSet is in alpha, so it's disabled on some platforms. We skip this
|
||||||
|
// test if a resource get fails on non-GCE platforms.
|
||||||
// In theory, tests that restart pets should pass on any platform with a
|
// In theory, tests that restart pets should pass on any platform with a
|
||||||
// dynamic volume provisioner.
|
// dynamic volume provisioner.
|
||||||
framework.SkipIfMissingResource(f.ClientPool, unversioned.GroupVersionResource{Group: apps.GroupName, Version: "v1alpha1", Resource: "petsets"}, f.Namespace.Name)
|
if !framework.ProviderIs("gce") {
|
||||||
|
framework.SkipIfMissingResource(f.ClientPool, unversioned.GroupVersionResource{Group: apps.GroupName, Version: "v1alpha1", Resource: "petsets"}, f.Namespace.Name)
|
||||||
|
}
|
||||||
|
|
||||||
c = f.Client
|
c = f.Client
|
||||||
ns = f.Namespace.Name
|
ns = f.Namespace.Name
|
||||||
|
Loading…
Reference in New Issue
Block a user