Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 117 for defaulting (0.28 sec)

  1. pkg/controller/volume/persistentvolume/config/v1alpha1/defaults.go

    // function to allow consumers of this type to set whatever defaults for their
    // embedded configs. Forcing consumers to use these defaults would be problematic
    // as defaulting in the scheme is done as part of the conversion, and there would
    // be no easy way to opt-out. Instead, if you want to use this defaulting method
    // run it in your wrapper struct of this type in its `SetDefaults_` method.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 02:59:09 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/componentconfigs/kubelet_test.go

    		},
    	}
    }
    
    func TestKubeletDefault(t *testing.T) {
    	tests := []struct {
    		name       string
    		clusterCfg kubeadmapi.ClusterConfiguration
    		expected   kubeletConfig
    	}{
    		{
    			name:       "No specific defaulting works",
    			clusterCfg: kubeadmapi.ClusterConfiguration{},
    			expected: kubeletConfig{
    				config: kubeletconfig.KubeletConfiguration{
    					FeatureGates:  map[string]bool{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 10:26:46 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  3. pkg/controller/podautoscaler/config/v1alpha1/defaults.go

    // function to allow consumers of this type to set whatever defaults for their
    // embedded configs. Forcing consumers to use these defaults would be problematic
    // as defaulting in the scheme is done as part of the conversion, and there would
    // be no easy way to opt-out. Instead, if you want to use this defaulting method
    // run it in your wrapper struct of this type in its `SetDefaults_` method.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 19 09:49:23 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. cluster/images/etcd/migrate/options.go

    			opts.port = 18631
    		} else {
    			opts.port = 18629
    		}
    		klog.Infof("--port unset - defaulting to %d", opts.port)
    	}
    	if opts.peerPort == 0 {
    		if etcdEventsRE.MatchString(opts.dataDir) {
    			opts.peerPort = 2381
    		} else {
    			opts.peerPort = 2380
    		}
    		klog.Infof("--peer-port unset - defaulting to %d", opts.peerPort)
    	}
    
    	if opts.initialCluster == "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 09:59:52 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. pkg/apis/batch/fuzzer/fuzzer.go

    var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(j *batch.Job, c fuzz.Continue) {
    			c.FuzzNoCustom(j) // fuzz self without calling this function again
    
    			// match defaulting
    			if len(j.Labels) == 0 {
    				j.Labels = j.Spec.Template.Labels
    			}
    		},
    		func(j *batch.JobSpec, c fuzz.Continue) {
    			c.FuzzNoCustom(j) // fuzz self without calling this function again
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 17:25:15 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. pkg/kube/labels/labels.go

    // `app.kubernetes.io/name` is checked, then `app`, evenutually falling back to the
    // supplied `workloadName`. For canonical revision, `app.kubernetes.io/version` is checked,
    // followed by `version` and finally defaulting to the literal value of `"latest"`.
    func CanonicalService(labels map[string]string, workloadName string) (string, string) {
    	return canonicalServiceName(labels, workloadName), canonicalServiceRevision(labels)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. pkg/apis/core/v1/defaults_test.go

    	// Forbidden: adding a new field `MyField *bool` and defaulting it to a non-nil value
    	// Forbidden: defaulting an existing field `MyField *bool` when it was previously not defaulted
    	// Forbidden: changing an existing default value
    	// Allowed: adding a new field `MyContainer *MyType` and defaulting a child of that type (e.g. `MyContainer.MyChildField`) if and only if MyContainer is non-nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  8. pkg/registry/core/service/storage/storage.go

    type Before struct {
    	*api.Service
    }
    type After struct {
    	*api.Service
    }
    
    // defaultOnRead sets interlinked fields that were not previously set on read.
    // We can't do this in the normal defaulting path because that same logic
    // applies on Get, Create, and Update, but we need to distinguish between them.
    //
    // This will be called on both Service and ServiceList types.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 13:09:33 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  9. pkg/api/testing/defaulting_test.go

    		for {
    			if iter > *roundtrip.FuzzIters {
    				if !expectedChanged || changedOnce {
    					break
    				}
    				if iter > 300 {
    					t.Errorf("expected %s to trigger defaulting due to fuzzing", gvk)
    					break
    				}
    				// if we expected defaulting, continue looping until the fuzzer gives us one
    				// at worst, we will timeout
    			}
    			iter++
    
    			src, err := scheme.New(gvk)
    			if err != nil {
    				t.Fatal(err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  10. pkg/controlplane/apiserver/options/options.go

    	// Use (ServiceAccountSigningKeyFile != "") as a proxy to the user enabling
    	// TokenRequest functionality. This defaulting was convenient, but messed up
    	// a lot of people when they rotated their serving cert with no idea it was
    	// connected to their service account keys. We are taking this opportunity to
    	// remove this problematic defaulting.
    	if completed.ServiceAccountSigningKeyFile == "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 12:19:56 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top