Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for coordinationv1client (0.26 sec)

  1. pilot/pkg/leaderelection/k8sleaderelection/k8sresourcelock/leaselock.go

    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	coordinationv1client "k8s.io/client-go/kubernetes/typed/coordination/v1"
    )
    
    type LeaseLock struct {
    	// LeaseMeta should contain a Name and a Namespace of a
    	// LeaseMeta object that the LeaderElector will attempt to lead.
    	LeaseMeta  metav1.ObjectMeta
    	Client     coordinationv1client.LeasesGetter
    	LockConfig ResourceLockConfig
    	lease      *coordinationv1.Lease
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Jun 04 16:02:26 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  2. pilot/pkg/leaderelection/k8sleaderelection/k8sresourcelock/interface.go

    	Describe() string
    }
    
    // Manufacture will create a lock of a given type according to the input parameters
    // nolint: lll
    func New(lockType string, ns string, name string, coreClient corev1.CoreV1Interface, coordinationClient coordinationv1.CoordinationV1Interface, rlc ResourceLockConfig) (Interface, error) {
    	endpointsLock := &EndpointsLock{
    		EndpointsMeta: metav1.ObjectMeta{
    			Namespace: ns,
    			Name:      name,
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 6K bytes
    - Viewed (0)
Back to top