mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +00:00
Try speeding up ConfigMap e2e namespace deletion
This commit is contained in:
parent
fcab3a442d
commit
4f35b31fc7
@ -539,6 +539,7 @@ func doConfigMapE2EWithoutMappings(f *framework.Framework, uid, fsGroup int64, d
|
|||||||
framework.Failf("unable to create test configMap %s: %v", configMap.Name, err)
|
framework.Failf("unable to create test configMap %s: %v", configMap.Name, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
one := int64(1)
|
||||||
pod := &v1.Pod{
|
pod := &v1.Pod{
|
||||||
ObjectMeta: metav1.ObjectMeta{
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
Name: "pod-configmaps-" + string(uuid.NewUUID()),
|
Name: "pod-configmaps-" + string(uuid.NewUUID()),
|
||||||
@ -572,7 +573,8 @@ func doConfigMapE2EWithoutMappings(f *framework.Framework, uid, fsGroup int64, d
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
RestartPolicy: v1.RestartPolicyNever,
|
RestartPolicy: v1.RestartPolicyNever,
|
||||||
|
TerminationGracePeriodSeconds: &one,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -617,6 +619,7 @@ func doConfigMapE2EWithMappings(f *framework.Framework, uid, fsGroup int64, item
|
|||||||
framework.Failf("unable to create test configMap %s: %v", configMap.Name, err)
|
framework.Failf("unable to create test configMap %s: %v", configMap.Name, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
one := int64(1)
|
||||||
pod := &v1.Pod{
|
pod := &v1.Pod{
|
||||||
ObjectMeta: metav1.ObjectMeta{
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
Name: "pod-configmaps-" + string(uuid.NewUUID()),
|
Name: "pod-configmaps-" + string(uuid.NewUUID()),
|
||||||
@ -656,7 +659,8 @@ func doConfigMapE2EWithMappings(f *framework.Framework, uid, fsGroup int64, item
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
RestartPolicy: v1.RestartPolicyNever,
|
RestartPolicy: v1.RestartPolicyNever,
|
||||||
|
TerminationGracePeriodSeconds: &one,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,6 +71,7 @@ const testContainerName = "test-container"
|
|||||||
func entrypointTestPod() *v1.Pod {
|
func entrypointTestPod() *v1.Pod {
|
||||||
podName := "client-containers-" + string(uuid.NewUUID())
|
podName := "client-containers-" + string(uuid.NewUUID())
|
||||||
|
|
||||||
|
one := int64(1)
|
||||||
return &v1.Pod{
|
return &v1.Pod{
|
||||||
ObjectMeta: metav1.ObjectMeta{
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
Name: podName,
|
Name: podName,
|
||||||
@ -82,7 +83,8 @@ func entrypointTestPod() *v1.Pod {
|
|||||||
Image: "gcr.io/google_containers/eptest:0.1",
|
Image: "gcr.io/google_containers/eptest:0.1",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
RestartPolicy: v1.RestartPolicyNever,
|
RestartPolicy: v1.RestartPolicyNever,
|
||||||
|
TerminationGracePeriodSeconds: &one,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -494,6 +494,7 @@ func (config *RCConfig) create() error {
|
|||||||
if config.DNSPolicy == nil {
|
if config.DNSPolicy == nil {
|
||||||
config.DNSPolicy = &dnsDefault
|
config.DNSPolicy = &dnsDefault
|
||||||
}
|
}
|
||||||
|
one := int64(1)
|
||||||
rc := &v1.ReplicationController{
|
rc := &v1.ReplicationController{
|
||||||
ObjectMeta: metav1.ObjectMeta{
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
Name: config.Name,
|
Name: config.Name,
|
||||||
@ -517,8 +518,9 @@ func (config *RCConfig) create() error {
|
|||||||
ReadinessProbe: config.ReadinessProbe,
|
ReadinessProbe: config.ReadinessProbe,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
DNSPolicy: *config.DNSPolicy,
|
DNSPolicy: *config.DNSPolicy,
|
||||||
NodeSelector: config.NodeSelector,
|
NodeSelector: config.NodeSelector,
|
||||||
|
TerminationGracePeriodSeconds: &one,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user