Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 85 for elseif (0.17 sec)

  1. cni/pkg/install/install_test.go

    			if len(c.invalidConfigFilename) > 0 {
    				if err := file.AtomicCopy(filepath.Join("testdata", c.invalidConfigFilename), tempDir, c.cniConfigFilename); err != nil {
    					t.Fatal(err)
    				}
    			} else {
    				if err := os.Remove(cniConfigFilepath); err != nil {
    					t.Fatal(err)
    				}
    			}
    
    			select {
    			case err := <-errChan:
    				if err != nil {
    					// An invalid configuration should return nil
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  2. istioctl/pkg/xds/google.go

    			if _, ok := dst[k]; ok {
    				return fmt.Errorf("underlying %s credentials contain a %s header which is already present in the combined credentials", kind, k)
    			}
    			dst[k] = v
    		} else {
    			dst[dstHdr] = v
    		}
    	}
    	return nil
    }
    
    type hubMembership struct {
    	WorkloadIdentityPool string
    }
    
    func getHubMembership(ctx context.Context, exClient kube.CLIClient) (*hubMembership, error) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Nov 14 20:23:34 GMT 2022
    - 3.4K bytes
    - Viewed (0)
  3. istioctl/pkg/tag/revision.go

    		if revPresent {
    			if tagLabel != "" {
    				ri.Webhooks = append(ri.Webhooks, &MutatingWebhookConfigInfo{
    					Name:     hook.Name,
    					Revision: rev,
    					Tag:      tagLabel,
    				})
    			}
    		} else {
    			revisions[rev] = &RevisionDescription{
    				IstioOperatorCRs: []*IstioOperatorCRInfo{},
    				Webhooks:         []*MutatingWebhookConfigInfo{{Name: hook.Name, Revision: rev, Tag: tagLabel}},
    			}
    		}
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Jan 28 13:16:05 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  4. istioctl/pkg/proxystatus/proxystatus_test.go

    	}
    
    	if c.wantException {
    		if fErr == nil {
    			t.Fatalf("Wanted an exception for 'istioctl %s', didn't get one, output was %q",
    				strings.Join(c.args, " "), output)
    		}
    	} else {
    		if fErr != nil {
    			t.Fatalf("Unwanted exception for 'istioctl %s': %v", strings.Join(c.args, " "), fErr)
    		}
    	}
    }
    
    func init() {
    	cli.MakeKubeFactory = func(k kube.CLIClient) cmdutil.Factory {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  5. istioctl/pkg/describe/describe_test.go

    	}
    
    	if c.wantException {
    		if fErr == nil {
    			t.Fatalf("Wanted an exception for 'istioctl %s', didn't get one, output was %q",
    				strings.Join(c.args, " "), output)
    		}
    	} else {
    		if fErr != nil {
    			t.Fatalf("Unwanted exception for 'istioctl %s': %v", strings.Join(c.args, " "), fErr)
    		}
    	}
    }
    
    func TestGetIstioVirtualServicePathForSvcFromRoute(t *testing.T) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Mar 28 09:54:01 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  6. istioctl/pkg/util/configdump/secret.go

    				returnStr = base64.StdEncoding.EncodeToString(inlineBytes)
    				returnErr = nil
    			} else {
    				returnStr = ""
    				returnErr = fmt.Errorf("can not retrieve inlineBytes from trustCA section")
    			}
    		} else {
    			returnStr = ""
    			returnErr = fmt.Errorf("can not retrieve trustedCa from secret ROOTCA")
    		}
    	} else {
    		returnStr = ""
    		returnErr = fmt.Errorf("can not find ROOTCA from secret config dump")
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 25 04:09:53 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  7. istioctl/pkg/wait/wait.go

    `,
    		RunE: func(cmd *cobra.Command, args []string) error {
    			if forFlag == "delete" {
    				return errors.New("wait for delete is not yet implemented")
    			} else if forFlag != "distribution" {
    				return fmt.Errorf("--for must be 'delete' or 'distribution', got: %s", forFlag)
    			}
    			if proxyFlag != "" && threshold != 1 {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 17 12:24:17 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  8. istioctl/pkg/writer/envoy/configdump/route.go

    	w, routes, err := c.setupRouteConfigWriter()
    	if err != nil {
    		return err
    	}
    	if filter.Verbose {
    		fmt.Fprintln(w, "NAME\tVHOST NAME\tDOMAINS\tMATCH\tVIRTUAL SERVICE")
    	} else {
    		fmt.Fprintln(w, "NAME\tVIRTUAL HOSTS")
    	}
    	for _, route := range routes {
    		if filter.Verify(route) {
    			if includeConfigType {
    				route.Name = fmt.Sprintf("route/%s", route.Name)
    			}
    			if filter.Verbose {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 11 05:38:17 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  9. istioctl/pkg/describe/describe.go

    			}
    			// Consider adding RemoveResponseHeaders, AppendResponseHeaders, RemoveRequestHeaders, AppendRequestHeaders
    		} else {
    			if dest.Destination.Subset == "" {
    				differentHostFact := fmt.Sprintf("Route to host \"%s\" with weight %d%%", dest.Destination.Host, dest.Weight)
    				facts = append(facts, differentHostFact)
    			} else {
    				facts = append(facts, fmt.Sprintf("Route to %s with invalid config", dest.Destination.Host))
    			}
    		}
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 50.4K bytes
    - Viewed (0)
  10. istioctl/pkg/analyze/analyze.go

    						return nil
    					} else if err != nil {
    						return err
    					}
    				}
    			}
    
    			// If we've explicitly asked for all namespaces, blank the selectedNamespace var out
    			// If the user hasn't specified a namespace, use the default namespace
    			if allNamespaces {
    				selectedNamespace = ""
    			} else if selectedNamespace == "" {
    				selectedNamespace = metav1.NamespaceDefault
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 17K bytes
    - Viewed (0)
Back to top