Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for IsAlreadyExists (0.25 sec)

  1. pkg/test/framework/components/istio/kube.go

    			ObjectMeta: metav1.ObjectMeta{
    				Labels:      nsLabels,
    				Annotations: nsAnnotations,
    				Name:        i.cfg.SystemNamespace,
    			},
    		}, metav1.CreateOptions{}); err != nil {
    			if errors.IsAlreadyExists(err) {
    				if _, err := c.Kube().CoreV1().Namespaces().Update(context.TODO(), &corev1.Namespace{
    					ObjectMeta: metav1.ObjectMeta{
    						Labels:      nsLabels,
    						Annotations: nsAnnotations,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  2. pkg/kubelet/volumemanager/reconciler/reconciler_common.go

    					}
    				}
    			}
    		}
    	}
    }
    
    // ignore nestedpendingoperations.IsAlreadyExists and exponentialbackoff.IsExponentialBackoff errors, they are expected.
    func isExpectedError(err error) bool {
    	return nestedpendingoperations.IsAlreadyExists(err) || exponentialbackoff.IsExponentialBackoff(err) || operationexecutor.IsMountFailedPreconditionError(err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:23:12 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  3. pkg/controller/statefulset/stateful_pod_control.go

    		spc.recordPodEvent("create", set, pod, err)
    		return err
    	}
    	// If we created the PVCs attempt to create the Pod
    	err := spc.objectMgr.CreatePod(ctx, pod)
    	// sink already exists errors
    	if apierrors.IsAlreadyExists(err) {
    		return err
    	}
    	if utilfeature.DefaultFeatureGate.Enabled(features.StatefulSetAutoDeletePVC) {
    		// Set PVC policy as much as is possible at this point.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go

    					// but the CRB is missing - i.e. the admin.conf user does not have permissions
    					// to create its own permission RBAC yet.
    					return true, nil
    				} else if apierrors.IsAlreadyExists(err) {
    					// If the CRB exists it means the admin.conf already has the right
    					// permissions; return.
    					crbExists = true
    					return true, nil
    				} else {
    					// Retry on any other error type.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 27K bytes
    - Viewed (0)
  5. pkg/webhooks/validation/controller/controller.go

    	istioClient := c.client.Istio().NetworkingV1alpha3()
    	_, err := istioClient.Gateways(c.o.WatchedNamespace).Create(context.TODO(), invalidGateway, createOptions)
    	if kerrors.IsAlreadyExists(err) {
    		updateOptions := metav1.UpdateOptions{DryRun: []string{metav1.DryRunAll}}
    		_, err = istioClient.Gateways(c.o.WatchedNamespace).Update(context.TODO(), invalidGateway, updateOptions)
    	}
    	if err == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 28 16:52:19 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  6. pkg/controller/statefulset/stateful_pod_control_test.go

    		return true, pod, apierrors.NewAlreadyExists(action.GetResource().GroupResource(), pod.Name)
    	})
    	if err := control.CreateStatefulPod(context.TODO(), set, pod); !apierrors.IsAlreadyExists(err) {
    		t.Errorf("Failed to create Pod error: %s", err)
    	}
    	events := collectEvents(recorder.Events)
    	if eventCount := len(events); eventCount != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 35.5K bytes
    - Viewed (0)
  7. pkg/controller/daemon/update.go

    		Revision: revision,
    	}
    
    	history, err = dsc.kubeClient.AppsV1().ControllerRevisions(ds.Namespace).Create(ctx, history, metav1.CreateOptions{})
    	if outerErr := err; errors.IsAlreadyExists(outerErr) {
    		logger := klog.FromContext(ctx)
    		// TODO: Is it okay to get from historyLister?
    		existedHistory, getErr := dsc.kubeClient.AppsV1().ControllerRevisions(ds.Namespace).Get(ctx, name, metav1.GetOptions{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 16:53:53 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet_node_status.go

    	_, err := kl.kubeClient.CoreV1().Nodes().Create(context.TODO(), node, metav1.CreateOptions{})
    	if err == nil {
    		kl.nodeStartupLatencyTracker.RecordRegisteredNewNode()
    		return true
    	}
    
    	if !apierrors.IsAlreadyExists(err) {
    		klog.ErrorS(err, "Unable to register node with API server", "node", klog.KObj(node))
    		return false
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 31.1K bytes
    - Viewed (0)
Back to top