- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 49 for LeaderElection (0.32 sec)
-
operator/cmd/operator/server.go
mgrOpt = manager.Options{ Cache: cache.Options{DefaultNamespaces: watchNamespaces}, Metrics: metricsOptions, LeaderElection: leaderElectionEnabled, LeaderElectionNamespace: leaderElectionNS, LeaderElectionID: leaderElectionID, LeaseDuration: &leaseDuration, RenewDeadline: renewDeadline, }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 30 21:09:08 UTC 2023 - 7.6K bytes - Viewed (0) -
pilot/pkg/leaderelection/k8sleaderelection/k8sresourcelock/multilock.go
limitations under the License. */ package k8sresourcelock import ( "bytes" "context" "encoding/json" kerrors "k8s.io/apimachinery/pkg/api/errors" ) const ( UnknownLeader = "leaderelection.k8s.io/unknown" ) // MultiLock is used for lock's migration type MultiLock struct { Primary Interface Secondary Interface } // Get returns the older election record of the lock
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 03 08:41:32 UTC 2022 - 2.9K bytes - Viewed (0) -
pkg/scheduler/apis/config/scheme/scheme_test.go
}, want: `apiVersion: kubescheduler.config.k8s.io/v1 clientConnection: acceptContentTypes: "" burst: 0 contentType: "" kubeconfig: "" qps: 0 kind: KubeSchedulerConfiguration leaderElection: leaderElect: null leaseDuration: 0s renewDeadline: 0s resourceLock: "" resourceName: "" resourceNamespace: "" retryPeriod: 0s profiles: - pluginConfig: - args:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 13 07:42:19 UTC 2023 - 22.2K bytes - Viewed (0) -
pilot/pkg/leaderelection/k8sleaderelection/k8sresourcelock/endpointslock.go
if el.LockConfig.EventRecorder == nil { return } events := fmt.Sprintf("%v %v", el.LockConfig.Identity, s) el.LockConfig.EventRecorder.Eventf(&v1.Endpoints{ObjectMeta: el.e.ObjectMeta}, v1.EventTypeNormal, "LeaderElection", events) } // Describe is used to convert details on current resource lock // into a string func (el *EndpointsLock) Describe() string {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Oct 11 16:58:48 UTC 2021 - 3.7K bytes - Viewed (0) -
pilot/pkg/leaderelection/k8sleaderelection/k8sresourcelock/configmaplock.go
if cml.LockConfig.EventRecorder == nil { return } events := fmt.Sprintf("%v %v", cml.LockConfig.Identity, s) cml.LockConfig.EventRecorder.Eventf(&v1.ConfigMap{ObjectMeta: cml.cm.ObjectMeta}, v1.EventTypeNormal, "LeaderElection", events) } // Describe is used to convert details on current resource lock // into a string func (cml *ConfigMapLock) Describe() string {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Oct 11 16:58:48 UTC 2021 - 4K bytes - Viewed (0) -
pilot/pkg/leaderelection/k8sleaderelection/k8sresourcelock/leaselock.go
return } events := fmt.Sprintf("%v %v", ll.LockConfig.Identity, s) ll.LockConfig.EventRecorder.Eventf(&coordinationv1.Lease{ObjectMeta: ll.lease.ObjectMeta}, corev1.EventTypeNormal, "LeaderElection", events) } // Describe is used to convert details on current resource lock // into a string func (ll *LeaseLock) Describe() string { return fmt.Sprintf("%v/%v", ll.LeaseMeta.Namespace, ll.LeaseMeta.Name) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Jun 04 16:02:26 UTC 2022 - 4.3K bytes - Viewed (0) -
pilot/pkg/leaderelection/k8sleaderelection/healthzadaptor_test.go
*/ // nolint package k8sleaderelection import ( "context" "fmt" "net/http" "testing" "time" clock "k8s.io/utils/clock/testing" rl "istio.io/istio/pilot/pkg/leaderelection/k8sleaderelection/k8sresourcelock" ) type fakeLock struct { identity string key string } // Get is a dummy to allow us to have a fakeLock for testing.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Sep 12 18:41:53 UTC 2022 - 5.3K bytes - Viewed (0) -
cmd/kube-controller-manager/app/options/options.go
} s.GarbageCollectorController.GCIgnoredResources = gcIgnoredResources s.Generic.LeaderElection.ResourceName = "kube-controller-manager" s.Generic.LeaderElection.ResourceNamespace = "kube-system" return &s, nil } // NewDefaultComponentConfig returns kube-controller manager configuration object.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 13 20:41:50 UTC 2023 - 20.7K bytes - Viewed (0) -
pilot/pkg/leaderelection/k8sleaderelection/k8sresourcelock/interface.go
// resources used in leader election. The Interface is used // to hide the details on specific implementations in order to allow // them to change over time. This interface is strictly for use // by the leaderelection code. type Interface interface { // Get returns the LeaderElectionRecord Get(ctx context.Context) (*LeaderElectionRecord, []byte, error) // Create attempts to create a LeaderElectionRecord
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 6K bytes - Viewed (0) -
pkg/config/analysis/local/analyze_test.go
expect: false, }, { name: "not cm", obj: &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: "istiod", }, }, expect: false, }, { name: "leaderelection lock", obj: &v1.ConfigMap{ ObjectMeta: metav1.ObjectMeta{ Name: "istio-namespace-controller-election", Annotations: map[string]string{ "control-plane.alpha.kubernetes.io/leader": `{}`,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jan 09 07:43:43 UTC 2024 - 9.6K bytes - Viewed (0)