- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 82 for testpvc (0.12 sec)
-
pkg/scheduler/framework/plugins/defaultbinder/default_binder_test.go
"k8s.io/klog/v2/ktesting" frameworkruntime "k8s.io/kubernetes/pkg/scheduler/framework/runtime" st "k8s.io/kubernetes/pkg/scheduler/testing" ) func TestDefaultBinder(t *testing.T) { testPod := st.MakePod().Name("foo").Namespace("ns").Obj() testNode := "foohost.kubernetes.mydomain.com" tests := []struct { name string injectErr error wantBinding *v1.Binding }{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 23 02:17:34 UTC 2023 - 2.6K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_container_test.go
t.Run("PreStop-NoTimeToRun", func(t *testing.T) { ctx := context.Background() gracePeriodLocal := int64(0) testPod.DeletionGracePeriodSeconds = &gracePeriodLocal testPod.Spec.TerminationGracePeriodSeconds = &gracePeriodLocal _ = m.killContainer(ctx, testPod, cID, "foo", "testKill", "", &gracePeriodLocal, nil) if fakeHTTP.req != nil { t.Errorf("HTTP Prestop hook Should not execute when gracePeriod is 0")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 28K bytes - Viewed (0) -
pkg/scheduler/scheduler_test.go
defer cancel() client := fake.NewSimpleClientset(&v1.PodList{Items: []v1.Pod{*testPod}}) informerFactory := informers.NewSharedInformerFactory(client, 0) podInformer := informerFactory.Core().V1().Pods() // Need to add/update/delete testPod to the store. podInformer.Informer().GetStore().Add(testPod)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 17 09:07:27 UTC 2024 - 42K bytes - Viewed (0) -
internal/config/identity/openid/jwt_test.go
DiscoveryDoc: DiscoveryDoc{ TokenEndpoint: "http://keycloak.test/token/endpoint", }, } testKvs := config.KVS{} testKvs.Set(Vendor, "keycloak") testKvs.Set(KeyCloakRealm, "TestRealm") testKvs.Set(KeyCloakAdminURL, "http://keycloak.test/auth/admin") cfgGet := func(param string) string { return testKvs.Get(param) } if testConfig.provider != nil { t.Errorf("Empty config cannot have any provider!")
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 8.3K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/tableprinter_test.go
expected string }{ // Test non-table default printing for a pod. { object: testPod, options: PrintOptions{}, expected: "NAME AGE\ntest-pod-name <unknown>\n", }, // Test non-table default printing for a pod with "NoHeaders" option. { object: testPod, options: PrintOptions{NoHeaders: true}, expected: "test-pod-name <unknown>\n", },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Oct 30 15:08:43 UTC 2022 - 24.4K bytes - Viewed (0) -
plugin/pkg/admission/resourcequota/admission_test.go
testCases := []struct { description string testPod *api.Pod quota *corev1.ResourceQuota anotherQuota *corev1.ResourceQuota config *resourcequotaapi.Configuration expErr string }{ { description: "Covering quota exists for configured limited scope PriorityClassNameExists.",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 21:28:42 UTC 2024 - 84.1K bytes - Viewed (0) -
src/internal/testpty/pty_cgo.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build cgo && (aix || dragonfly || freebsd || (linux && !android) || netbsd || openbsd) package testpty /* #define _XOPEN_SOURCE 600 #include <fcntl.h> #include <stdlib.h> #include <unistd.h> */ import "C" import "os" func open() (pty *os.File, processTTY string, err error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 25 18:38:54 UTC 2023 - 840 bytes - Viewed (0) -
pkg/kubelet/network/dns/dns_test.go
} for _, tc := range testCases { t.Run(tc.desc, func(t *testing.T) { testPod.Spec.HostNetwork = tc.hostnetwork testPod.Spec.DNSConfig = tc.dnsConfig testPod.Spec.DNSPolicy = tc.dnsPolicy resDNSConfig, err := configurer.GetPodDNS(testPod) if err != nil { t.Errorf("%s: GetPodDNS(%v), unexpected error: %v", tc.desc, testPod, err) } if !dnsConfigsAreEqual(resDNSConfig, tc.expectedDNSConfig) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 25.6K bytes - Viewed (0) -
pkg/controller/volume/ephemeral/controller_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 06:51:56 UTC 2024 - 8.5K bytes - Viewed (0) -
plugin/pkg/admission/podtolerationrestriction/admission_test.go
func TestPodAdmission(t *testing.T) { CPU1000m := resource.MustParse("1000m") CPU500m := resource.MustParse("500m") burstablePod := &api.Pod{ ObjectMeta: metav1.ObjectMeta{Name: "testPod", Namespace: "testNamespace"}, Spec: api.PodSpec{ Containers: []api.Container{ { Name: "test", Resources: api.ResourceRequirements{ Limits: api.ResourceList{api.ResourceCPU: CPU1000m},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 16K bytes - Viewed (0)