Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 122 for exists (0.17 sec)

  1. operator/cmd/mesh/install.go

    	// "no running Istio pods in istio-system" for the first time
    	_ = detectIstioVersionDiff(p, tag, ns, kubeClient, iop)
    	exists := revtag.PreviousInstallExists(context.Background(), kubeClient.Kube())
    	err = detectDefaultWebhookChange(p, kubeClient, iop, exists)
    	if err != nil {
    		return fmt.Errorf("failed to detect the default webhook change: %v", err)
    	}
    
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  2. istioctl/pkg/kubeinject/kubeinject.go

    			meshConfigMapName, ctx.IstioNamespace(), err)
    	}
    	// values in the data are strings, while proto might use a
    	// different data type.  therefore, we have to get a value by a
    	// key
    	configYaml, exists := meshConfigMap.Data[configMapKey]
    	if !exists {
    		return nil, fmt.Errorf("missing configuration map key %q", configMapKey)
    	}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  3. cmd/xl-storage_test.go

    		// Validate volume does not exist.
    		{
    			volume: "i-dont-exist",
    			path:   "",
    			err:    errVolumeNotFound,
    		},
    		// TestXLStorage case - 2.
    		// Validate bad condition file does not exist.
    		{
    			volume: "exists",
    			path:   "as-file-not-found",
    			err:    errFileNotFound,
    		},
    		// TestXLStorage case - 3.
    		// Validate bad condition file exists as prefix/directory and
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  4. utils/utils_test.go

    		}
    	}
    }
    
    func TestContains(t *testing.T) {
    	containsTests := []struct {
    		name  string
    		elems []string
    		elem  string
    		out   bool
    	}{
    		{"exists", []string{"1", "2", "3"}, "1", true},
    		{"not exists", []string{"1", "2", "3"}, "4", false},
    	}
    	for _, test := range containsTests {
    		t.Run(test.name, func(t *testing.T) {
    			if out := Contains(test.elems, test.elem); test.out != out {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Feb 19 03:42:25 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  5. cni/pkg/util/podutil_test.go

    			name: "pod has sidecar and namespace has ambient enabled",
    			args: args{
    				namespace: namespaceWithAmbientEnabledLabel,
    				pod:       podWithSidecar,
    			},
    			want: false,
    		},
    		// TODO: when there exists a means for users to signal the intent to exclude a pod from ambient without requiring the use of
    		// the ambient redirection annotation, this annotation should no longer be checked by this function and this case should return 'true'
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 18:04:40 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  6. internal/config/identity/ldap/ldap.go

    		// the directory.
    		bindDN, err := l.LDAP.LookupUserDN(conn, username)
    		if err != nil {
    			if strings.Contains(err.Error(), "User DN not found for") {
    				return "", nil
    			}
    			return "", fmt.Errorf("Unable to find user DN: %w", err)
    		}
    		return bindDN, nil
    	}
    
    	// Since the username parses as a valid DN, check that it exists and is
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  7. cni/pkg/install/install.go

    		}
    	}
    
    	if len(in.kubeconfigFilepath) > 0 && file.Exists(in.kubeconfigFilepath) {
    		installLog.Infof("Removing Istio CNI kubeconfig file: %s", in.kubeconfigFilepath)
    		if err := os.Remove(in.kubeconfigFilepath); err != nil {
    			return err
    		}
    	}
    
    	for _, targetDir := range in.cfg.CNIBinTargetDirs {
    		if istioCNIBin := filepath.Join(targetDir, "istio-cni"); file.Exists(istioCNIBin) {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 08 18:52:24 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  8. cmd/bucket-handlers.go

    				// such an intersection means that bucket exists on etcd.
    				// but if we do see a difference with local domain IPs with
    				// hostSlice from etcd then we should update with newer
    				// domainIPs, we proceed to do that here.
    				bucketsToBeUpdated.Add(bucket.Name)
    				continue
    			}
    
    			// No IPs seem to intersect, this means that bucket exists but has
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
  9. cmd/metacache-bucket.go

    	if serverDebugLog {
    		console.Debugf(format+"\n", data...)
    	}
    }
    
    // findCache will attempt to find a matching cache for the provided options.
    // If a cache with the same ID exists already it will be returned.
    // If none can be found a new is created with the provided ID.
    func (b *bucketMetacache) findCache(o listPathOptions) metacache {
    	if b == nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  10. cmd/admin-handlers-users.go

    	if accessKey == globalActiveCred.AccessKey {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAddUserInvalidArgument), r.URL)
    		return
    	}
    
    	user, exists := globalIAMSys.GetUser(ctx, accessKey)
    	if exists && (user.Credentials.IsTemp() || user.Credentials.IsServiceAccount()) {
    		// Updating STS credential is not allowed, and this API does not
    		// support updating service accounts.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 77.3K bytes
    - Viewed (0)
Back to top