Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 451 for Cfg (0.06 sec)

  1. cmd/kubeadm/app/apis/kubeadm/types_test.go

    )
    
    func TestClusterConfigurationEncryptionAlgorithmType(t *testing.T) {
    	tests := []struct {
    		name           string
    		cfg            *ClusterConfiguration
    		expectedResult EncryptionAlgorithmType
    	}{
    		{
    			name: "feature gate is set to true, return ECDSA-P256",
    			cfg: &ClusterConfiguration{
    				FeatureGates: map[string]bool{
    					features.PublicKeysECDSA: true,
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 09:39:24 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. internal/config/compress/compress.go

    		if kvs.Empty() {
    			return cfg, nil
    		}
    		return cfg, err
    	}
    	if !cfg.Enabled {
    		return cfg, nil
    	}
    
    	allowEnc := env.Get(EnvCompressAllowEncryption, kvs.Get(AllowEncrypted))
    	if allowEnc == "" {
    		allowEnc = env.Get(EnvCompressAllowEncryptionLegacy, "")
    	}
    
    	cfg.AllowEncrypted, err = config.ParseBool(allowEnc)
    	if err != nil {
    		return cfg, err
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/join_test.go

    				if data.cfg.Discovery.BootstrapToken == nil ||
    					data.cfg.Discovery.BootstrapToken.APIServerEndpoint != "1.2.3.4:6443" || //only first arg should be kept as APIServerEndpoint
    					data.cfg.Discovery.BootstrapToken.Token != "abcdef.0123456789abcdef" ||
    					data.cfg.Discovery.BootstrapToken.UnsafeSkipCAVerification != true {
    					t.Error("Invalid data.cfg.Discovery.BootstrapToken")
    				}
    			},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 12:26:20 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. cmd/kube-scheduler/app/options/options.go

    // ApplyLeaderElectionTo obtains the CLI args related with leaderelection, and override the values in `cfg`.
    // Then the `cfg` object is injected into the `options` object.
    func (o *Options) ApplyLeaderElectionTo(cfg *kubeschedulerconfig.KubeSchedulerConfiguration) {
    	if o.Flags == nil {
    		return
    	}
    	// Obtain CLI args related with leaderelection. Set them to `cfg` if specified in command line.
    	leaderelection := o.Flags.FlagSet("leader election")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 17 17:06:29 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/util/config/upgradeconfiguration_test.go

    	options := LoadOrDefaultConfigurationOptions{}
    
    	tests := []struct {
    		name    string
    		cfgPath string
    		cfg     *kubeadmapiv1.UpgradeConfiguration
    		want    *kubeadmapi.UpgradeConfiguration
    	}{
    		{
    			name:    "cfgpPath is empty, the result should be obtained from cfg",
    			cfgPath: "",
    			cfg: &kubeadmapiv1.UpgradeConfiguration{
    				Apply: kubeadmapiv1.UpgradeApplyConfiguration{
    					CertificateRenewal: ptr.To(false),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 08:34:39 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. src/cmd/go/internal/work/gc.go

    			}
    		}
    	}
    
    	if cfg.Goarch == "386" {
    		// Define GO386_value from cfg.GO386.
    		args = append(args, "-D", "GO386_"+cfg.GO386)
    	}
    
    	if cfg.Goarch == "amd64" {
    		// Define GOAMD64_value from cfg.GOAMD64.
    		args = append(args, "-D", "GOAMD64_"+cfg.GOAMD64)
    	}
    
    	if cfg.Goarch == "mips" || cfg.Goarch == "mipsle" {
    		// Define GOMIPS_value from cfg.GOMIPS.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:37:44 UTC 2024
    - 23K bytes
    - Viewed (0)
  7. pkg/test/framework/components/echo/kube/builder.go

    func Build(ctx resource.Context, configs []echo.Config) (echo.Instances, error) {
    	instances := make([]echo.Instance, len(configs))
    
    	g := multierror.Group{}
    	for i, cfg := range configs {
    		i, cfg := i, cfg
    		g.Go(func() (err error) {
    			instances[i], err = newInstance(ctx, cfg)
    			return
    		})
    	}
    
    	err := g.Wait().ErrorOrNil()
    	return instances, err
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  8. internal/config/storageclass/storage-class.go

    	if ssc != "" {
    		cfg.Standard, err = parseStorageClass(ssc)
    		if err != nil {
    			return Config{}, err
    		}
    	} else {
    		cfg.Standard.Parity = DefaultParityBlocks(setDriveCount)
    	}
    
    	if rrsc != "" {
    		cfg.RRS, err = parseStorageClass(rrsc)
    		if err != nil {
    			return Config{}, err
    		}
    	} else {
    		cfg.RRS.Parity = defaultRRSParity
    		if setDriveCount == 1 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  9. pkg/controlplane/instance.go

    	discoveryAddresses.CIDRRules = append(discoveryAddresses.CIDRRules,
    		discovery.CIDRRule{IPRange: cfg.Extra.ServiceIPRange, Address: net.JoinHostPort(cfg.Extra.APIServerServiceIP.String(), strconv.Itoa(cfg.Extra.APIServerServicePort))})
    	cfg.ControlPlane.Generic.DiscoveryAddresses = discoveryAddresses
    
    	if cfg.Extra.ServiceNodePortRange.Size == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 11:50:04 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  10. cni/pkg/install/install.go

    func checkValidCNIConfig(cfg *config.InstallConfig, cniConfigFilepath string) error {
    	defaultCNIConfigFilename, err := getDefaultCNINetwork(cfg.MountedCNINetDir)
    	if err != nil {
    		return err
    	}
    	defaultCNIConfigFilepath := filepath.Join(cfg.MountedCNINetDir, defaultCNIConfigFilename)
    	if defaultCNIConfigFilepath != cniConfigFilepath {
    		if len(cfg.CNIConfName) > 0 || !cfg.ChainedCNIPlugin {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:18 UTC 2024
    - 10.7K bytes
    - Viewed (0)
Back to top