Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for validateServiceNodePort (0.38 sec)

  1. cmd/kube-apiserver/app/options/validation.go

    	if bits-ones > maxCIDRBits {
    		return fmt.Errorf("specified %s is too large; for %d-bit addresses, the mask must be >= %d", cidrFlag, bits, bits-maxCIDRBits)
    	}
    
    	return nil
    }
    
    func validateServiceNodePort(options Extra) []error {
    	var errs []error
    
    	if options.KubernetesServiceNodePort < 0 || options.KubernetesServiceNodePort > 65535 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  2. cmd/kube-apiserver/app/options/validation_test.go

    			options:      makeOptionsWithPort(30067, 30065, 5),
    			expectErrors: false,
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			errs := validateServiceNodePort(tc.options.Extra)
    			if errs != nil && !tc.expectErrors {
    				t.Errorf("expected no errors, error found %+v", errs)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top