Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for HostIP (0.41 sec)

  1. pkg/kubelet/kubelet_pods_test.go

    			if !reflect.DeepEqual(status.PodIPs, tc.podIPs) {
    				t.Fatalf("Expected PodIPs %#v, got %#v", tc.podIPs, status.PodIPs)
    			}
    			if tc.criPodIPs == nil && status.HostIP != status.PodIPs[0].IP {
    				t.Fatalf("Expected HostIP %q to equal PodIPs[0].IP %q", status.HostIP, status.PodIPs[0].IP)
    			}
    		})
    	}
    }
    
    func TestNodeAddressUpdatesGenerateAPIPodStatusHostNetworkPodIPs(t *testing.T) {
    	testcases := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_pods.go

    						utilnet.IPFamilyOfString(s.HostIP), s.HostIP, utilnet.IPFamilyOf(hostIPs[0]), hostIPs[0].String())
    				}
    			}
    			s.HostIP = hostIPs[0].String()
    			if utilfeature.DefaultFeatureGate.Enabled(features.PodHostIPs) {
    				s.HostIPs = []v1.HostIP{{IP: s.HostIP}}
    				if len(hostIPs) == 2 {
    					s.HostIPs = append(s.HostIPs, v1.HostIP{IP: hostIPs[1].String()})
    				}
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  3. operator/cmd/mesh/testdata/manifest-generate/output/pilot_default.golden.yaml

                    fieldRef:
                      fieldPath: spec.serviceAccountName
                - name: HOST_IP
                  valueFrom:
                    fieldRef:
                      fieldPath: status.hostIP
                - name: ISTIO_CPU_LIMIT
                  valueFrom:
                    resourceFieldRef:
                      resource: limits.cpu
                - name: PROXY_CONFIG
                  value: |
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 10 05:10:03 UTC 2024
    - 102.6K bytes
    - Viewed (0)
  4. pkg/api/pod/util_test.go

    				t.Errorf("dropDisabledStatusFields() = %v, want %v", tt.podStatus, tt.wantPodStatus)
    			}
    		})
    	}
    }
    
    func makeHostIPs(ips ...string) []api.HostIP {
    	ret := []api.HostIP{}
    	for _, ip := range ips {
    		ret = append(ret, api.HostIP{IP: ip})
    	}
    	return ret
    }
    
    func TestDropNodeInclusionPolicyFields(t *testing.T) {
    	ignore := api.NodeInclusionPolicyIgnore
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  5. pkg/apis/core/zz_generated.deepcopy.go

    func (in *HostIP) DeepCopyInto(out *HostIP) {
    	*out = *in
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostIP.
    func (in *HostIP) DeepCopy() *HostIP {
    	if in == nil {
    		return nil
    	}
    	out := new(HostIP)
    	in.DeepCopyInto(out)
    	return out
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 181.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/core/v1/zz_generated.deepcopy.go

    func (in *HostIP) DeepCopyInto(out *HostIP) {
    	*out = *in
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostIP.
    func (in *HostIP) DeepCopy() *HostIP {
    	if in == nil {
    		return nil
    	}
    	out := new(HostIP)
    	in.DeepCopyInto(out)
    	return out
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 181.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/testdata/swagger.json

              "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.",
              "format": "int32",
              "type": "integer"
            },
            "hostIP": {
              "description": "What host IP to bind the external port to.",
              "type": "string"
            },
            "hostPort": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 20 15:45:02 UTC 2024
    - 229.4K bytes
    - Viewed (0)
  8. operator/cmd/mesh/testdata/manifest-generate/data-snapshot.tar.gz

    metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.namespace - name: INSTANCE_IP valueFrom: fieldRef: apiVersion: v1 fieldPath: status.podIP - name: HOST_IP valueFrom: fieldRef: apiVersion: v1 fieldPath: status.hostIP - name: ISTIO_CPU_LIMIT valueFrom: resourceFieldRef: resource: limits.cpu - name: SERVICE_ACCOUNT valueFrom: fieldRef: fieldPath: spec.serviceAccountName - name: ISTIO_META_WORKLOAD_NAME value: {{ $gateway.name }} - name: ISTIO_META_OWNER value: ...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 10 05:10:03 UTC 2024
    - 198.1K bytes
    - Viewed (0)
  9. pkg/kubelet/kubelet.go

    	// The pod IP may be changed in generateAPIPodStatus if the pod is using host network. (See #24576)
    	// TODO(random-liu): After writing pod spec into container labels, check whether pod is using host network, and
    	// set pod IP to hostIP directly in runtime.GetPodStatus
    	podStatus.IPs = make([]string, 0, len(apiPodStatus.PodIPs))
    	for _, ipInfo := range apiPodStatus.PodIPs {
    		podStatus.IPs = append(podStatus.IPs, ipInfo.IP)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
Back to top