- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 246 for Errorf (0.18 sec)
-
istioctl/pkg/writer/envoy/clusters/clusters.go
failedOutlierCheck bool } // Prime loads the clusters output into the writer ready for printing func (c *ConfigWriter) Prime(b []byte) error { cd := clusters.Wrapper{} err := json.Unmarshal(b, &cd) if err != nil { return fmt.Errorf("error unmarshalling config dump response from Envoy: %v", err) } c.clusters = &cd return nil } func retrieveEndpointAddress(host *admin.HostStatus) string {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu Nov 03 08:41:32 GMT 2022 - 5.8K bytes - Viewed (0) -
istioctl/cmd/sysexits_test.go
package cmd import ( "errors" "testing" "istio.io/istio/istioctl/pkg/analyze" "istio.io/istio/istioctl/pkg/util" ) var KnownErrorCode = map[error]int{ errors.New("unknown command"): ExitIncorrectUsage, errors.New("unexpected error"): ExitUnknownError, util.CommandParseError{Err: errors.New("command parse error")}: ExitIncorrectUsage,
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu Jun 15 15:02:17 GMT 2023 - 1.3K bytes - Viewed (0) -
istioctl/cmd/istioctl_test.go
case istioctlutil.CommandParseError: // do nothing default: t.Errorf("Expected a CommandParseError, but got %q.", fErr) } // we should propagate to subcommands rootCmd = GetRootCmd([]string{"analyze", "--unknown-flag"}) fErr = rootCmd.Execute() switch fErr.(type) { case istioctlutil.CommandParseError: // do nothing default: t.Errorf("Expected a CommandParseError, but got %q.", fErr) }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Aug 29 14:53:25 GMT 2023 - 1.5K bytes - Viewed (0) -
operator/cmd/mesh/manifest-diff.go
"removed.", Args: func(cmd *cobra.Command, args []string) error { if len(args) != 2 { return fmt.Errorf("diff requires two files or directories") } return nil }, RunE: func(cmd *cobra.Command, args []string) error { var err error var equal bool if diffArgs.compareDir { equal, err = compareManifestsFromDirs(diffArgs.verbose, args[0], args[1],
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Mar 15 01:18:49 GMT 2024 - 5.8K bytes - Viewed (0) -
istioctl/pkg/internaldebug/internal-debug.go
xdsResponses map[string]*discovery.DiscoveryResponse, ) (map[string]*discovery.DiscoveryResponse, error) { for _, response := range xdsResponses { for _, resource := range response.Resources { eString := string(resource.Value) switch { case strings.Contains(eString, "You must provide a proxyID in the query string"): return nil, fmt.Errorf(" You must provide a proxyID in the query string, e.g. [%s]", "edsz?proxyID=istio-ingressgateway")
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Mar 15 04:16:55 GMT 2024 - 6.9K bytes - Viewed (0) -
istioctl/pkg/proxystatus/proxystatus.go
"istio.io/istio/pkg/log" ) var configDumpFile string func readConfigFile(filename string) ([]byte, error) { file := os.Stdin if filename != "-" { var err error file, err = os.Open(filename) if err != nil { return nil, err } } defer func() { if err := file.Close(); err != nil { log.Errorf("failed to close %s: %s", filename, err) } }() data, err := io.ReadAll(file) if err != nil {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Sat Apr 13 05:23:38 GMT 2024 - 6.2K bytes - Viewed (0) -
istioctl/pkg/tag/util.go
func GetWebhookRevision(wh admitv1.MutatingWebhookConfiguration) (string, error) { if tagName, ok := wh.ObjectMeta.Labels[label.IoIstioRev.Name]; ok { return tagName, nil } return "", fmt.Errorf("could not extract tag revision from webhook") } // DeleteTagWebhooks deletes the given webhooks. func DeleteTagWebhooks(ctx context.Context, client kubernetes.Interface, tag string) error { webhooks, err := GetWebhooksWithTag(ctx, client, tag)
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Jan 16 17:43:42 GMT 2024 - 5.4K bytes - Viewed (1) -
istioctl/pkg/writer/envoy/configdump/listener.go
return w, listeners, nil } func (c *ConfigWriter) retrieveSortedListenerSlice() ([]*listener.Listener, error) { if c.configDump == nil { return nil, fmt.Errorf("config writer has not been primed") } listenerDump, err := c.configDump.GetListenerConfigDump() if err != nil { return nil, fmt.Errorf("listener dump: %v", err) } listeners := make([]*listener.Listener, 0)
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Nov 29 12:37:14 GMT 2023 - 18.1K bytes - Viewed (0) -
cni/pkg/install/cniconfig.go
} return "", fmt.Errorf("no valid networks found in %s", confDir) } // newCNIConfig = istio-cni config, that should be inserted into existingCNIConfig func insertCNIConfig(newCNIConfig, existingCNIConfig []byte) ([]byte, error) { var istioMap map[string]any err := json.Unmarshal(newCNIConfig, &istioMap) if err != nil { return nil, fmt.Errorf("error loading Istio CNI config (JSON error): %v", err) }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 10.4K bytes - Viewed (0) -
istioctl/pkg/workload/workload_test.go
} for _, tt := range tests { t.Run(tt.arg, func(t *testing.T) { gotKey, gotValue := splitEqual(tt.arg) if gotKey != tt.wantKey { t.Errorf("splitEqual(%v) got = %v, want %v", tt.arg, gotKey, tt.wantKey) } if gotValue != tt.wantValue { t.Errorf("splitEqual(%v) got1 = %v, want %v", tt.arg, gotValue, tt.wantValue) } }) }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Mar 27 16:59:05 GMT 2024 - 14.6K bytes - Viewed (0)