Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for maps (0.2 sec)

  1. istioctl/pkg/writer/ztunnel/configdump/services.go

    // limitations under the License.
    
    package configdump
    
    import (
    	"cmp"
    	"encoding/json"
    	"fmt"
    	"strings"
    
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/pkg/maps"
    	"istio.io/istio/pkg/slices"
    )
    
    // ServiceFilter is used to pass filter information into service based config writer print functions
    type ServiceFilter struct {
    	Namespace string
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/ztunnel/configdump/connections.go

    	"fmt"
    	"net"
    	"strings"
    
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/pkg/maps"
    	"istio.io/istio/pkg/slices"
    )
    
    type ConnectionsFilter struct {
    	Namespace string
    	Direction string
    	Raw       bool
    }
    
    func (c *ConfigWriter) PrintConnectionsDump(filter ConnectionsFilter, outputFormat string) error {
    	d := c.ztunnelDump
    	workloads := maps.Values(d.WorkloadState)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Apr 22 15:39:28 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/pod_cache.go

    	"errors"
    	"fmt"
    	"path/filepath"
    	"runtime"
    	"sync"
    
    	corev1 "k8s.io/api/core/v1"
    
    	"istio.io/istio/pkg/maps"
    	"istio.io/istio/pkg/zdsapi"
    )
    
    var ErrPodNotFound = errors.New("netns not provided, but is needed as pod is not in cache")
    
    type PodNetnsCache interface {
    	ReadCurrentPodSnapshot() map[string]WorkloadInfo
    }
    
    // Hold a cache of node local pods with their netns
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/ztunnel/configdump/policies.go

    // limitations under the License.
    
    package configdump
    
    import (
    	"cmp"
    	"encoding/json"
    	"fmt"
    	"strings"
    
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/pkg/maps"
    	"istio.io/istio/pkg/slices"
    )
    
    // PolicyFilter is used to pass filter information into service based config writer print functions
    type PolicyFilter struct {
    	Namespace string
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  5. istioctl/pkg/tag/tag.go

    	"istio.io/istio/pkg/config/analysis/diag"
    	"istio.io/istio/pkg/config/analysis/local"
    	"istio.io/istio/pkg/config/resource"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/maps"
    	"istio.io/istio/pkg/slices"
    )
    
    const (
    
    	// help strings and long formatted user outputs
    	skipConfirmationFlagHelpStr = `The skipConfirmation determines whether the user is prompted for confirmation.
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  6. architecture/ambient/ztunnel.md

    In addition, they are more clear and strictly typed; using Envoy types would require us to put a lot of information in untyped `metadata` maps.
    
    With this in mind, Ztunnel supports two xDS resources: `Address` and `Authorization`.
    
    ### Address Type
    
    The primary configuration consumed by Ztunnel is the [`Address` resource](../../pkg/workloadapi/workload.proto).
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Apr 25 22:35:16 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  7. cni/pkg/plugin/plugin_dryrun_test.go

    			lines = append(lines, "COMMIT")
    			tables[tableName] = strings.Join(lines, "\n")
    		}
    	}
    	return tables
    }
    
    func refreshGoldens(t *testing.T, goldenFileName string, generatedRules map[string]string) {
    	tables := slices.Sort(maps.Keys(generatedRules))
    	goldenFileContent := ""
    	for _, t := range tables {
    		goldenFileContent += generatedRules[t] + "\n"
    	}
    	diff.RefreshGoldenFile(t, []byte(goldenFileContent), goldenFileName)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  8. common/config/.golangci.yml

              - pkg: go.opencensus.io
                desc: "do not use OpenCensus; use OpenTelemetry instead"
              - pkg: golang.org/x/exp/maps
                desc: "do not use golang.org/x/exp/maps; use istio.io/istio/pkg/maps instead"
              - pkg: maps
                desc: "do not use maps; use istio.io/istio/pkg/maps instead"
              - pkg: golang.org/x/exp/slices
    Others
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Apr 22 19:22:39 GMT 2024
    - 11K bytes
    - Viewed (0)
  9. istioctl/pkg/tag/generate.go

    		return "", err
    	}
    
    	return whBuf.String(), nil
    }
    
    func generateLabels(whLabels, curLabels, customLabels map[string]string, userManaged bool) map[string]string {
    	whLabels = maps.MergeCopy(whLabels, curLabels)
    	whLabels = maps.MergeCopy(whLabels, customLabels)
    	if userManaged {
    		for label := range whLabels {
    			if strings.Contains(label, operatorNamespace) {
    				delete(whLabels, label)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  10. istioctl/pkg/describe/describe_test.go

    					},
    				},
    				&corev1.Service{
    					ObjectMeta: metav1.ObjectMeta{
    						Name:      "ingress",
    						Namespace: "default",
    						Labels: map[string]string{
    							"istio": "ingressgateway",
    						},
    					},
    					Spec: corev1.ServiceSpec{
    						Selector: map[string]string{
    							"istio": "ingressgateway",
    						},
    						Ports: []corev1.ServicePort{
    							{
    								Name:       "http",
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Mar 28 09:54:01 GMT 2024
    - 30.4K bytes
    - Viewed (0)
Back to top