Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for test_pod_uid (0.23 sec)

  1. pkg/volume/configmap/configmap_test.go

    			t.Errorf("SetUp() failed: %v", err)
    		}
    	}
    
    	doTestConfigMapDataInVolume(volumePath, configMap, t)
    	doTestCleanAndTeardown(plugin, testPodUID, testVolumeName, volumePath, t)
    }
    
    func TestPluginOptional(t *testing.T) {
    	var (
    		testPodUID     = types.UID("test_pod_uid")
    		testVolumeName = "test_volume_name"
    		testNamespace  = "test_configmap_namespace"
    		testName       = "test_configmap_name"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 19.9K bytes
    - Viewed (0)
  2. pkg/volume/secret/secret_test.go

    		} else {
    			t.Errorf("SetUp() failed: %v", err)
    		}
    	}
    
    	doTestSecretDataInVolume(volumePath, secret, t)
    	doTestCleanAndTeardown(plugin, testPodUID, testVolumeName, volumePath, t)
    }
    
    func TestPluginOptional(t *testing.T) {
    	var (
    		testPodUID     = types.UID("test_pod_uid")
    		testVolumeName = "test_volume_name"
    		testNamespace  = "test_secret_namespace"
    		testName       = "test_secret_name"
    		trueVal        = true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 19.5K bytes
    - Viewed (0)
  3. pkg/volume/projected/projected_test.go

    			source.Sources[0].Secret.Items = tc.mappings
    			source.Sources[0].Secret.Optional = &tc.optional
    
    			testPodUID := types.UID("test_pod_uid")
    			pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, UID: testPodUID}}
    			client := fake.NewSimpleClientset(tc.secret)
    			tempDir, host := newTestHost(t, client)
    			defer os.RemoveAll(tempDir)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 40.5K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/labels_test.go

    		Lifecycle:              lifecycle,
    	}
    	pod := &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:                       "test_pod",
    			Namespace:                  "test_pod_namespace",
    			UID:                        "test_pod_uid",
    			DeletionGracePeriodSeconds: &deletionGracePeriod,
    		},
    		Spec: v1.PodSpec{
    			Containers:                    []v1.Container{*container},
    			TerminationGracePeriodSeconds: &terminationGracePeriod,
    		},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 22:43:36 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. pkg/volume/util/nested_volumes_test.go

    	var (
    		testNamespace = "test_namespace"
    		testPodUID    = types.UID("test_pod_uid")
    	)
    
    	tc := []testCases{
    		{
    			name:     "Simple Pod",
    			err:      false,
    			expected: sets.New[string](),
    			volname:  "vol1",
    			pod: v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					Namespace: testNamespace,
    					UID:       testPodUID,
    				},
    				Spec: v1.PodSpec{
    					Containers: []v1.Container{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. pkg/volume/downwardapi/downwardapi_test.go

    	"k8s.io/kubernetes/pkg/fieldpath"
    	"k8s.io/kubernetes/pkg/volume"
    	"k8s.io/kubernetes/pkg/volume/emptydir"
    	volumetest "k8s.io/kubernetes/pkg/volume/testing"
    )
    
    const (
    	downwardAPIDir = "..data"
    	testPodUID     = types.UID("test_pod_uid")
    	testNamespace  = "test_metadata_namespace"
    	testName       = "test_metadata_name"
    )
    
    func newTestHost(t *testing.T, clientset clientset.Interface) (string, volume.VolumeHost) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 04:48:49 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  7. pkg/kubelet/kuberuntime/helpers_test.go

    		Name:  "test_container",
    		Image: "foo/image:v1",
    	}
    	pod := &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "test_pod",
    			Namespace: "test_pod_namespace",
    			UID:       "test_pod_uid",
    		},
    		Spec: v1.PodSpec{
    			Containers: []v1.Container{*container},
    		},
    	}
    	oldKey := getStableKey(pod, container)
    
    	// Updating the container image should change the key.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. pkg/kubelet/prober/prober_manager_test.go

    	m.workers = map[probeKey]*worker{
    		{testPodUID, unprobed.Name, liveness}:             {},
    		{testPodUID, probedReady.Name, readiness}:         {},
    		{testPodUID, probedPending.Name, readiness}:       {},
    		{testPodUID, probedUnready.Name, readiness}:       {},
    		{testPodUID, notStartedNoReadiness.Name, startup}: {},
    		{testPodUID, startedNoReadiness.Name, startup}:    {},
    		{testPodUID, terminated.Name, readiness}:          {},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  9. pkg/controller/volume/ephemeral/controller_test.go

    )
    
    var (
    	testPodName         = "test-pod"
    	testNamespace       = "my-namespace"
    	testPodUID          = types.UID("uidpod1")
    	otherNamespace      = "not-my-namespace"
    	ephemeralVolumeName = "ephemeral-volume"
    
    	testPod               = makePod(testPodName, testNamespace, testPodUID)
    	testPodWithEphemeral  = makePod(testPodName, testNamespace, testPodUID, *makeEphemeralVolume(ephemeralVolumeName))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. pkg/kubelet/prober/common_test.go

    	statustest "k8s.io/kubernetes/pkg/kubelet/status/testing"
    	kubeletutil "k8s.io/kubernetes/pkg/kubelet/util"
    	"k8s.io/kubernetes/pkg/probe"
    	"k8s.io/utils/exec"
    )
    
    const (
    	testContainerName = "cOnTaInEr_NaMe"
    	testPodUID        = "pOd_UiD"
    )
    
    var testContainerID = kubecontainer.ContainerID{Type: "test", ID: "cOnTaInEr_Id"}
    
    func getTestRunningStatus() v1.PodStatus {
    	return getTestRunningStatusWithStarted(true)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 12 16:57:26 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top