Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 173 for constants (0.26 sec)

  1. cni/pkg/nodeagent/constants/constants.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package constants
    
    const (
    	// In the below, we add the fwmask to ensure only that mark can match
    
    	DNSCapturePort              = 15053
    	ZtunnelInboundPort          = 15008
    	ZtunnelOutboundPort         = 15001
    Go
    - Registered: Wed Apr 10 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 887 bytes
    - Viewed (0)
  2. istioctl/pkg/util/constants.go

    Xiaopeng Han <******@****.***> 1686841337 +0800
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  3. cni/pkg/constants/constants.go

    	RepairFieldSelectors     = "repair-field-selectors"
    )
    
    // Internal constants
    const (
    	DefaultKubeconfigMode = 0o600
    
    	CNIAddEventPath = "/cmdadd"
    	UDSLogPath      = "/log"
    
    	// K8s liveness and readiness endpoints
    	LivenessEndpoint  = "/healthz"
    	ReadinessEndpoint = "/readyz"
    	ReadinessPort     = "8000"
    )
    
    // Exposed for testing constants
    var (
    	CNIBinDir          = "/opt/cni/bin"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  4. istioctl/pkg/waypoint/waypoint_test.go

    			gateways: []*gateway.Gateway{
    				makeGateway(constants.DefaultNamespaceWaypoint, "default", true, true),
    				makeGateway(constants.DefaultNamespaceWaypoint, "fake", true, true),
    			},
    			expectedOutFile: "default-gateway",
    		},
    		{
    			name: "all namespaces gateways",
    			args: strings.Split("list -A", " "),
    			gateways: []*gateway.Gateway{
    				makeGateway(constants.DefaultNamespaceWaypoint, "default", true, true),
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 04 15:53:09 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  5. istioctl/pkg/waypoint/waypoint.go

    	"istio.io/istio/pkg/config/constants"
    	"istio.io/istio/pkg/config/protocol"
    	"istio.io/istio/pkg/config/schema/gvk"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/slices"
    	"istio.io/istio/pkg/util/sets"
    )
    
    var (
    	revision      = ""
    	waitReady     bool
    	allNamespaces bool
    
    	deleteAll bool
    
    	trafficType       = ""
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 19:45:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/server_test.go

    	pod, err = fakeClientSet.CoreV1().Pods("test").Get(fakeCtx, "test", metav1.GetOptions{})
    	assert.NoError(t, err)
    	assert.Equal(t, len(pod.Annotations), 1)
    	assert.Equal(t, pod.Annotations[constants.AmbientRedirection], constants.AmbientRedirectionEnabled)
    }
    
    func TestMeshDataplaneAddsAnnotationOnAddWithPartialError(t *testing.T) {
    	pod := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "test",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  7. cni/pkg/repair/repair_test_helpers.go

    		Name: constants.ValidationContainerName,
    		State: corev1.ContainerState{
    			Waiting: &corev1.ContainerStateWaiting{
    				Reason:  "CrashLoopBackOff",
    				Message: "Back-off 5m0s restarting failed blah blah blah",
    			},
    		},
    		LastTerminationState: corev1.ContainerState{
    			Terminated: &corev1.ContainerStateTerminated{
    				ExitCode: constants.ValidationErrorCode,
    				Reason:   "Error",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 12 17:39:53 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  8. cni/pkg/util/podutil_test.go

    	assert.Equal(t, len(podIPs), 0)
    }
    
    func TestPodRedirectionEnabled(t *testing.T) {
    	var (
    		ambientEnabledLabel     = map[string]string{constants.DataplaneModeLabel: constants.DataplaneModeAmbient}
    		ambientDisabledLabel    = map[string]string{constants.DataplaneModeLabel: constants.DataplaneModeNone}
    		sidecarStatusAnnotation = map[string]string{annotation.SidecarStatus.Name: "test"}
    
    		namespaceWithAmbientEnabledLabel = &corev1.Namespace{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/informers.go

    		if ns == nil {
    			return fmt.Errorf("failed to find namespace %v", ns)
    		}
    		wasAnnotated := oldPod.Annotations != nil && oldPod.Annotations[constants.AmbientRedirection] == constants.AmbientRedirectionEnabled
    		isAnnotated := newPod.Annotations != nil && newPod.Annotations[constants.AmbientRedirection] == constants.AmbientRedirectionEnabled
    		shouldBeEnabled := util.PodRedirectionEnabled(ns, newPod)
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  10. istioctl/pkg/util/handlers/handlers.go

    		}
    		namespace = t.Namespace
    		selector, err = labels.Parse(constants.GatewayNameLabel + "=" + t.Name)
    	case *gatewayapibeta.Gateway:
    		if !gateway.IsManaged(&t.Spec) {
    			return "", nil, fmt.Errorf("gateway is not a managed gateway")
    		}
    		namespace = t.Namespace
    		selector, err = labels.Parse(constants.GatewayNameLabel + "=" + t.Name)
    	default:
    		return polymorphichelpers.SelectorsForObject(object)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Feb 06 15:01:41 GMT 2024
    - 6.2K bytes
    - Viewed (0)
Back to top