mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Use the serviceShard
variable in the service shard block, not the service
variable.
This commit is contained in:
parent
8f11cc78a8
commit
c1cede22cf
@ -217,8 +217,8 @@ var _ = framework.KubeDescribe("[Feature:Federation]", func() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if serviceShard != nil {
|
if serviceShard != nil {
|
||||||
By(fmt.Sprintf("Deleting service shards and their provider resources in underlying clusters for service %q in namespace %q", service.Name, nsName))
|
By(fmt.Sprintf("Deleting service shards and their provider resources in underlying clusters for service %q in namespace %q", serviceShard.Name, nsName))
|
||||||
cleanupServiceShardsAndProviderResources(nsName, service, clusters)
|
cleanupServiceShardsAndProviderResources(nsName, serviceShard, clusters)
|
||||||
serviceShard = nil
|
serviceShard = nil
|
||||||
} else {
|
} else {
|
||||||
By("No service shards to delete. `serviceShard` is nil")
|
By("No service shards to delete. `serviceShard` is nil")
|
||||||
|
Loading…
Reference in New Issue
Block a user