Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for idempotent (0.13 sec)

  1. pkg/kube/util.go

    func IstioUserAgent() string {
    	return adjustCommand(os.Args[0]) + "/" + istioversion.Info.Version
    }
    
    // SetRestDefaults is a helper function that sets default values for the given rest.Config.
    // This function is idempotent.
    func SetRestDefaults(config *rest.Config) *rest.Config {
    	if config.GroupVersion == nil || config.GroupVersion.Empty() {
    		config.GroupVersion = &corev1.SchemeGroupVersion
    	}
    	if len(config.APIPath) == 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  2. pkg/kube/inject/inject_test.go

    			if actual != tc.want {
    				t.Fatalf("Unexpected result.\nExpected:\n%v\nActual:\n%v", tc.want, actual)
    			}
    			t.Run("idempotency", func(t *testing.T) {
    				actual := appendMultusNetwork(actual, "istio-cni")
    				if actual != tc.want {
    					t.Fatalf("Function is not idempotent.\nExpected:\n%v\nActual:\n%v", tc.want, actual)
    				}
    			})
    		})
    	}
    }
    
    func Test_updateClusterEnvs(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 20:35:11 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/docs/userguide/authoring-builds/basics/plugins.adoc

    There are also some constraints and possible limitations.
    
    [[sec:constrained_syntax]]
    ==== Constrained Syntax
    
    The `plugins {}` block does not support arbitrary code.
    
    It is constrained to be idempotent (produce the same result every time) and side effect-free (safe for Gradle to execute at any time).
    
    The form is:
    
    ====
    [.multi-language-sample]
    =====
    .build.gradle.kts
    [source,kotlin]
    ----
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 04:11:37 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/interface.go

    	// Unreserve is called by the scheduling framework when a reserved pod was
    	// rejected, an error occurred during reservation of subsequent plugins, or
    	// in a later phase. The Unreserve method implementation must be idempotent
    	// and may be called by the scheduler even if the corresponding Reserve
    	// method for the same plugin was not called.
    	Unreserve(ctx context.Context, state *CycleState, p *v1.Pod, nodeName string)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/genericapiserver.go

    	return s.muxAndDiscoveryCompleteSignals
    }
    
    // RegisterDestroyFunc registers a function that will be called during Destroy().
    // The function have to be idempotent and prepared to be called more than once.
    func (s *GenericAPIServer) RegisterDestroyFunc(destroyFn func()) {
    	s.destroyFns = append(s.destroyFns, destroyFn)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 42.9K bytes
    - Viewed (0)
  6. pkg/volume/util/operationexecutor/operation_executor.go

    // mounting, or unmounting a volume that are executed with a NewNestedPendingOperations which
    // prevents more than one operation from being triggered on the same volume.
    //
    // These operations should be idempotent (for example, AttachVolume should
    // still succeed if the volume is already attached to the node, etc.). However,
    // they depend on the volume plugins to implement this behavior.
    //
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  7. cmd/object-api-utils.go

    }
    
    // Close - calls the cleanup actions in reverse order
    func (g *GetObjectReader) Close() error {
    	if g == nil {
    		return nil
    	}
    	// sync.Once is used here to ensure that Close() is
    	// idempotent.
    	g.once.Do(func() {
    		for i := len(g.cleanUpFns) - 1; i >= 0; i-- {
    			g.cleanUpFns[i]()
    		}
    	})
    	return nil
    }
    
    // compressionIndexEncrypter returns a function that will read data from input,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  8. internal/s3select/select.go

    type ObjectReadSeekCloser struct {
    	segmentReader ObjectSegmentReaderFn
    
    	size   int64 // actual object size regardless of compression/encryption
    	offset int64
    	reader io.ReadCloser
    
    	// reader can be closed idempotently multiple times
    	closerOnce sync.Once
    	// Error storing reader.Close()
    	closerErr error
    }
    
    // NewObjectReadSeekCloser creates a new ObjectReadSeekCloser.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 21K bytes
    - Viewed (0)
  9. pkg/kube/inject/inject.go

    	pod := req.pod.DeepCopy()
    	prevStatus := injectionStatus(pod)
    	if prevStatus == nil {
    		return req.pod
    	}
    	// We found a previous status annotation. Possibly we are re-injecting the pod
    	// To ensure idempotency, remove our injected containers first
    	for _, c := range prevStatus.Containers {
    		pod.Spec.Containers = modifyContainers(pod.Spec.Containers, c, Remove)
    	}
    	for _, c := range prevStatus.InitContainers {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 20:35:11 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go

    			existingKubeConfig: invalidConfig,
    			kubeConfig:         invalidConfig,
    			expectedError:      true,
    		},
    		{ // if KubeConfig is equal to the existingKubeConfig - refers to the same cluster -, use the existing (Test idempotency)
    			name:               "KubeConfig refers to the same cluster",
    			existingKubeConfig: config,
    			kubeConfig:         config,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 39.5K bytes
    - Viewed (0)
Back to top