Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for updateIdentity (0.28 sec)

  1. pkg/controller/statefulset/stateful_set_utils.go

    func initIdentity(set *apps.StatefulSet, pod *v1.Pod) {
    	updateIdentity(set, pod)
    	// Set these immutable fields only on initial Pod creation, not updates.
    	pod.Spec.Hostname = pod.Name
    	pod.Spec.Subdomain = set.Spec.ServiceName
    }
    
    // updateIdentity updates pod's name, hostname, and subdomain, and StatefulSetPodNameLabel to conform to set's name
    // and headless service.
    func updateIdentity(set *apps.StatefulSet, pod *v1.Pod) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  2. pkg/controller/statefulset/stateful_set_utils_test.go

    		t.Error("identity matches for a Pod with the wrong namespace")
    	}
    	updateIdentity(set, pod)
    	if !identityMatches(set, pod) {
    		t.Error("updateIdentity failed to update the Pods namespace")
    	}
    	delete(pod.Labels, apps.StatefulSetPodNameLabel)
    	updateIdentity(set, pod)
    	if !identityMatches(set, pod) {
    		t.Error("updateIdentity failed to restore the statefulSetPodName label")
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 50.9K bytes
    - Viewed (0)
  3. pkg/controller/statefulset/stateful_pod_control.go

    		// assume the Pod is consistent
    		consistent := true
    		// if the Pod does not conform to its identity, update the identity and dirty the Pod
    		if !identityMatches(set, pod) {
    			updateIdentity(set, pod)
    			consistent = false
    		}
    		// if the Pod does not conform to the StatefulSet's storage requirements, update the Pod's PVC's,
    		// dirty the Pod, and create any missing PVCs
    		if !storageMatches(set, pod) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 14.9K bytes
    - Viewed (0)
Back to top