- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for idempotency (0.18 sec)
-
pkg/volume/downwardapi/downwardapi.go
klog.V(3).Infof("Setting up a downwardAPI volume %v for pod %v/%v at %v", b.volName, b.pod.Namespace, b.pod.Name, dir) // Wrap EmptyDir. Here we rely on the idempotency of the wrapped plugin to avoid repeatedly mounting wrapped, err := b.plugin.host.NewWrapperMounter(b.volName, wrappedVolumeSpec(), b.pod, *b.opts) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 10.4K bytes - Viewed (0) -
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) -
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) -
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) -
pkg/kube/inject/webhook.go
parsedContainers.InitContainers = parser(InitContainers, unMarshalledStatus) return parsedContainers } // reinsertOverrides applies the containers listed in OverrideAnnotation to a pod. This is to achieve // idempotency by handling an edge case where an injection template is modifying a container already // present in the pod spec. In these cases, the logic to strip injected containers would remove the
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 17:59:39 UTC 2024 - 42.2K bytes - Viewed (0) -
src/go/printer/printer_test.go
{"slow.input", "slow.golden", idempotent}, {"complit.input", "complit.x", export}, {"go2numbers.input", "go2numbers.golden", idempotent}, {"go2numbers.input", "go2numbers.norm", normNumber | idempotent}, {"generics.input", "generics.golden", idempotent | allowTypeParams}, {"gobuild1.input", "gobuild1.golden", idempotent}, {"gobuild2.input", "gobuild2.golden", idempotent}, {"gobuild3.input", "gobuild3.golden", idempotent},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 20.4K bytes - Viewed (0) -
pkg/volume/volume.go
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" ) // Volume represents a directory used by pods or hosts on a node. All method // implementations of methods in the volume interface must be idempotent. type Volume interface { // GetPath returns the path to which the volume should be mounted for the // pod. GetPath() string // MetricsProvider embeds methods for exposing metrics (e.g.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 11.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_traits.h
// Replace the outer involutions output with inner's input. return argumentOp->getOperand(0); } return {}; } } // namespace detail // This class adds property that the operation is idempotent. // This means a unary to unary operation "f" that satisfies f(f(x)) = f(x), // or a binary operation "g" that satisfies g(x, x) = x. template <typename ConcreteType>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.7K bytes - Viewed (0) -
pkg/volume/emptydir/empty_dir.go
if ed.mounter == nil { return fmt.Errorf("memory storage requested, but mounter is nil") } if err := ed.setupDir(dir); err != nil { return err } // Make SetUp idempotent. medium, isMnt, _, err := ed.mountDetector.GetMountMedium(dir, ed.medium) if err != nil { return err } // If the directory is a mountpoint with medium memory, there is no
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 10:18:16 UTC 2024 - 19K bytes - Viewed (0) -
cni/pkg/iptables/iptables.go
log.Debugf("ignoring error deleting optional iptables rule: %v", err) } } } return errors.Join(delErrs...) } // Setup iptables rules for in-pod mode. Ideally this should be an idempotent function. // NOTE that this expects to be run from within the pod network namespace! func (cfg *IptablesConfigurator) CreateInpodRules(hostProbeSNAT, hostProbeV6SNAT *netip.Addr) error { // Append our rules here
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 21:45:18 UTC 2024 - 19.9K bytes - Viewed (0)