- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for getContainerPorts (1.16 sec)
-
pkg/kube/inject/template.go
func applicationPorts(containers []corev1.Container) string { return getContainerPorts(containers, func(c corev1.Container) bool { return c.Name != ProxyContainerName }) } func includeInboundPorts(containers []corev1.Container) string { // Include the ports from all containers in the deployment. return getContainerPorts(containers, func(corev1.Container) bool { return true }) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 16 02:12:03 UTC 2023 - 9.9K bytes - Viewed (0) -
pkg/test/framework/components/echo/kube/deployment.go
ObjectMeta: metav1.ObjectMeta{Name: serviceAccount}, }, metav1.CreateOptions{}) return err } // getContainerPorts converts the ports to a port list of container ports. // Adds ports for health/readiness if necessary. func getContainerPorts(cfg echo.Config) echoCommon.PortList { ports := cfg.Ports containerPorts := make(echoCommon.PortList, 0, len(ports)) var healthPort *echoCommon.Port
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 09 12:26:52 UTC 2024 - 24.1K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/nodeports/node_ports_test.go
HostPort: 8014, Protocol: v1.ProtocolTCP, }, }, }, } for i, test := range tests { t.Run(fmt.Sprintf("case_%d", i), func(t *testing.T) { result := getContainerPorts(test.pod1, test.pod2) if diff := cmp.Diff(test.expected, result); diff != "" { t.Errorf("container ports: container ports does not match (-want,+got): %s", diff) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 19 11:02:11 UTC 2023 - 10.1K bytes - Viewed (0)