Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for IsAlreadyExists (0.39 sec)

  1. tests/integration/pilot/mcs/discoverability/discoverability_test.go

    				defer wg.Done()
    
    				err := c.Dynamic().Resource(mcs.ServiceExportGVR).Namespace(echos.Namespace.Name()).Delete(context.TODO(),
    					serviceExport.Name, metav1.DeleteOptions{})
    				if err != nil && !kerrors.IsAlreadyExists(err) {
    					scopes.Framework.Warnf("failed deleting ServiceExport %s/%s in cluster %s: %v",
    						echos.Namespace, common.ServiceB, c.Name(), err)
    					return
    				}
    			}()
    		}
    
    		wg.Wait()
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. pkg/test/framework/components/echo/kube/deployment.go

    		// create service account, the next workload command will use it to generate a token
    		err = createServiceAccount(cfg.Cluster.Kube(), cfg.Namespace.Name(), serviceAccount(cfg))
    		if err != nil && !kerrors.IsAlreadyExists(err) {
    			return err
    		}
    	}
    
    	if err := os.WriteFile(path.Join(dir, "workloadgroup.yaml"), []byte(wg), 0o600); err != nil {
    		return err
    	}
    
    	ist, err := istio.Get(ctx)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 12:26:52 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  5. 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)
  6. tests/integration/security/file_mounted_certs/main_test.go

    			"root-cert.pem":  caCert,
    		},
    	}
    
    	_, err = kubeAccessor.Kube().CoreV1().Secrets(namespace.Name()).Create(context.TODO(), secret, metav1.CreateOptions{})
    	if err != nil {
    		if kerrors.IsAlreadyExists(err) {
    			if _, err := kubeAccessor.Kube().CoreV1().Secrets(namespace.Name()).Update(context.TODO(), secret, metav1.UpdateOptions{}); err != nil {
    				return fmt.Errorf("failed updating secret %s: %v", secret.Name, err)
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. pkg/controlplane/controller/clusterauthenticationtrust/cluster_authentication_trust_controller.go

    		ObjectMeta: metav1.ObjectMeta{
    			Name:      ns,
    			Namespace: "",
    		},
    	}
    	_, err := nsClient.Namespaces().Create(context.TODO(), newNs, metav1.CreateOptions{})
    	if err != nil && apierrors.IsAlreadyExists(err) {
    		err = nil
    	}
    	return err
    }
    
    func writeConfigMap(configMapClient corev1client.ConfigMapsGetter, required *corev1.ConfigMap) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/phases/addons/dns/dns.go

    		// Ignore if the Service is invalid with this error message:
    		// 	Service "kube-dns" is invalid: spec.clusterIP: Invalid value: "10.96.0.10": provided IP is already allocated
    
    		if !apierrors.IsAlreadyExists(err) && !apierrors.IsInvalid(err) {
    			return errors.Wrap(err, "unable to create a new DNS service")
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 16.1K bytes
    - Viewed (0)
Back to top