Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for coordinationv1 (0.3 sec)

  1. pkg/controller/storageversiongc/gc_controller_test.go

    limitations under the License.
    */
    
    package storageversiongc
    
    import (
    	"context"
    	"reflect"
    	"testing"
    	"time"
    
    	apiserverinternalv1alpha1 "k8s.io/api/apiserverinternal/v1alpha1"
    	coordinationv1 "k8s.io/api/coordination/v1"
    	apierrors "k8s.io/apimachinery/pkg/api/errors"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/client-go/informers"
    	"k8s.io/client-go/kubernetes"
    	"k8s.io/client-go/kubernetes/fake"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 12:19:43 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  2. pkg/controller/storageversiongc/gc_controller.go

    func (c *Controller) onDeleteLease(logger klog.Logger, obj interface{}) {
    	castObj, ok := obj.(*coordinationv1.Lease)
    	if !ok {
    		tombstone, ok := obj.(cache.DeletedFinalStateUnknown)
    		if !ok {
    			utilruntime.HandleError(fmt.Errorf("couldn't get object from tombstone %#v", obj))
    			return
    		}
    		castObj, ok = tombstone.Obj.(*coordinationv1.Lease)
    		if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 10K bytes
    - Viewed (0)
  3. pilot/pkg/leaderelection/k8sleaderelection/leaderelection_test.go

    		obj = &corev1.Endpoints{ObjectMeta: objectMeta}
    	case "configmaps":
    		obj = &corev1.ConfigMap{ObjectMeta: objectMeta}
    	case "leases":
    		var spec coordinationv1.LeaseSpec
    		if record != nil {
    			spec = rl.LeaderElectionRecordToLeaseSpec(record)
    		}
    		obj = &coordinationv1.Lease{ObjectMeta: objectMeta, Spec: spec}
    	default:
    		t.Fatal("unexpected objType:" + objectType)
    	}
    	return
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jan 23 16:39:43 UTC 2023
    - 42.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/apis/flowcontrol/bootstrap/default.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package bootstrap
    
    import (
    	coordinationv1 "k8s.io/api/coordination/v1"
    	corev1 "k8s.io/api/core/v1"
    	flowcontrol "k8s.io/api/flowcontrol/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apiserver/pkg/authentication/serviceaccount"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  5. pkg/config/schema/kubeclient/resources.gen.go

    		}
    	case gvr.Lease:
    		l = func(options metav1.ListOptions) (runtime.Object, error) {
    			return c.Kube().CoordinationV1().Leases(opts.Namespace).List(context.Background(), options)
    		}
    		w = func(options metav1.ListOptions) (watch.Interface, error) {
    			return c.Kube().CoordinationV1().Leases(opts.Namespace).Watch(context.Background(), options)
    		}
    	case gvr.MutatingWebhookConfiguration:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 13:57:51 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  6. plugin/pkg/auth/authorizer/node/node_authorizer_test.go

    			expect: authorizer.DecisionNoOpinion,
    		},
    		{
    			name:   "disallowed create lease in namespace other than kube-node-lease - feature enabled",
    			attrs:  authorizer.AttributesRecord{User: node0, ResourceRequest: true, Verb: "create", Resource: "leases", APIGroup: "coordination.k8s.io", Name: "node0", Namespace: "foo"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/client-go/applyconfigurations/coordination/v1beta1/lease.go

    	b := &LeaseApplyConfiguration{}
    	err := managedfields.ExtractInto(lease, internal.Parser().Type("io.k8s.api.coordination.v1beta1.Lease"), fieldManager, b, subresource)
    	if err != nil {
    		return nil, err
    	}
    	b.WithName(lease.Name)
    	b.WithNamespace(lease.Namespace)
    
    	b.WithKind("Lease")
    	b.WithAPIVersion("coordination.k8s.io/v1beta1")
    	return b, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 23 17:59:55 UTC 2022
    - 11.4K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_experimental.cc

    #include "xla/tsl/c/tsl_status_internal.h"
    #include "xla/tsl/distributed_runtime/coordination/coordination_service_agent.h"
    #include "tensorflow/core/common_runtime/composite_device.h"
    #include "tensorflow/core/common_runtime/device.h"
    #include "tensorflow/core/common_runtime/eager/eager_operation.h"
    #include "tensorflow/core/distributed_runtime/coordination/coordination_service_error_util.h"
    #include "tensorflow/core/framework/function.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 11 23:52:39 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  9. plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/cluster-roles.yaml

        - ""
        - events.k8s.io
        resources:
        - events
        verbs:
        - create
        - patch
        - update
      - apiGroups:
        - coordination.k8s.io
        resources:
        - leases
        verbs:
        - create
      - apiGroups:
        - coordination.k8s.io
        resourceNames:
        - kube-controller-manager
        resources:
        - leases
        verbs:
        - get
        - update
      - apiGroups:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 08:11:08 UTC 2023
    - 24.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/client-go/applyconfigurations/coordination/v1/lease.go

    	b := &LeaseApplyConfiguration{}
    	err := managedfields.ExtractInto(lease, internal.Parser().Type("io.k8s.api.coordination.v1.Lease"), fieldManager, b, subresource)
    	if err != nil {
    		return nil, err
    	}
    	b.WithName(lease.Name)
    	b.WithNamespace(lease.Namespace)
    
    	b.WithKind("Lease")
    	b.WithAPIVersion("coordination.k8s.io/v1")
    	return b, nil
    }
    
    // WithKind sets the Kind field in the declarative configuration to the given value
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 23 17:59:55 UTC 2022
    - 11.3K bytes
    - Viewed (0)
Back to top