Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 87 for albers (0.24 sec)

  1. istioctl/pkg/metrics/metrics_test.go

    `
    	if output != expectedOutput {
    		t.Fatalf("Unexpected output; got:\n %q\nwant:\n %q", output, expectedOutput)
    	}
    }
    
    func (client mockPromAPI) Alerts(ctx context.Context) (promv1.AlertsResult, error) {
    	return promv1.AlertsResult{}, fmt.Errorf("TODO mockPromAPI doesn't mock Alerts")
    }
    
    func (client mockPromAPI) AlertManagers(ctx context.Context) (promv1.AlertManagersResult, error) {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Oct 25 02:07:44 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  2. istioctl/pkg/checkinject/checkinject_test.go

    			checkResults := analyzeRunningWebhooks(whs,
    				c.pod.Labels, c.ns.Labels)
    			assert.Equal(t, c.expectedMessages, checkResults)
    		})
    	}
    }
    
    var nsTestObject = func(namespace, injLabelValue, revLabelValue string) *corev1.Namespace {
    	labels := map[string]string{}
    	if injLabelValue != "" {
    		labels["istio-injection"] = injLabelValue
    	}
    	if revLabelValue != "" {
    		labels[label.IoIstioRev.Name] = revLabelValue
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  3. operator/cmd/mesh/test-util_test.go

    		if objKind == kind {
    			ret.append(v)
    		}
    	}
    	return ret
    }
    
    // labels returns a subset of o where the object's labels match all the given labels.
    func (o *ObjectSet) labels(labels ...string) *ObjectSet {
    	ret := &ObjectSet{}
    	for _, obj := range o.objMap {
    		hasAll := true
    		for _, l := range labels {
    			lkv := strings.Split(l, "=")
    			if len(lkv) != 2 {
    				panic("label must have format key=value")
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  4. istioctl/pkg/tag/generate.go

    	}
    	decodedWh := whObject.(*admitv1.ValidatingWebhookConfiguration)
    	for i := range decodedWh.Webhooks {
    		decodedWh.Webhooks[i].ClientConfig.CABundle = []byte(config.CABundle)
    	}
    	decodedWh.Labels = generateLabels(decodedWh.Labels, config.Labels, opts.CustomLabels, opts.UserManaged)
    	decodedWh.Annotations = maps.MergeCopy(decodedWh.Annotations, config.Annotations)
    	for i := range decodedWh.Webhooks {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  5. istioctl/pkg/injector/injector-list_test.go

    		})
    	}
    }
    
    func Test_getNamespaces(t *testing.T) {
    	createNamespace := func(name string, labels map[string]string) *corev1.Namespace {
    		return &corev1.Namespace{
    			ObjectMeta: metav1.ObjectMeta{
    				Name:   name,
    				Labels: labels,
    			},
    		}
    	}
    	nss := []runtime.Object{
    		createNamespace("default", nil),
    		createNamespace("kube-system", nil),
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Jan 04 03:08:06 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  6. istioctl/pkg/workload/workload.go

    	for k, v := range wg.Spec.Metadata.Labels {
    		lbls[k] = v
    	}
    	// case where a user provided custom workload group has labels in the workload entry template field
    	we := wg.Spec.Template
    	if len(we.Labels) > 0 {
    		fmt.Printf("Labels should be set in the metadata. The following WorkloadEntry labels will override metadata labels: %s\n", we.Labels)
    		for k, v := range we.Labels {
    			lbls[k] = v
    		}
    	}
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  7. istioctl/pkg/injector/injector-list.go

    	"strconv"
    	"strings"
    	"text/tabwriter"
    
    	"github.com/spf13/cobra"
    	admitv1 "k8s.io/api/admissionregistration/v1"
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	api_pkg_labels "k8s.io/apimachinery/pkg/labels"
    
    	"istio.io/api/annotation"
    	"istio.io/api/label"
    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/istioctl/pkg/clioptions"
    	"istio.io/istio/istioctl/pkg/describe"
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Jan 04 03:08:06 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  8. cmd/metrics-v2.go

    		labels, values := getOrderedLabelValueArrays(metric.VariableLabels)
    		values = append(values, globalLocalNodeName)
    		labels = append(labels, serverName)
    
    		if metric.Description.Type == histogramMetric {
    			if metric.Histogram == nil {
    				return true
    			}
    			for k, v := range metric.Histogram {
    				labels = append(labels, metric.HistogramBucketLabel)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 11 21:22:15 GMT 2024
    - 132.1K bytes
    - Viewed (0)
  9. operator/cmd/mesh/manifest-generate_test.go

    }
    
    func selectorMatches(t *testing.T, selector *metav1.LabelSelector, labels klabels.Set) bool {
    	t.Helper()
    	// From webhook spec: "Default to the empty LabelSelector, which matches everything."
    	if selector == nil {
    		return true
    	}
    	s, err := metav1.LabelSelectorAsSelector(selector)
    	if err != nil {
    		t.Fatal(err)
    	}
    	return s.Matches(labels)
    }
    
    func TestSidecarTemplate(t *testing.T) {
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu Feb 22 08:32:23 GMT 2024
    - 42K bytes
    - Viewed (0)
  10. istioctl/pkg/multicluster/remote_secret_test.go

    				}
    				wantOutput := fmt.Sprintf(`# This file is autogenerated, do not edit.
    apiVersion: v1
    kind: Secret
    metadata:
      annotations:
        %s: 54643f96-eca0-11e9-bb97-42010a80000a
      creationTimestamp: null
      labels:
        istio/multiCluster: "true"
      name: %s
      namespace: istio-system-test
    stringData:
      %s: |
        apiVersion: v1
        clusters:
        - cluster:
            certificate-authority-data: Y2FEYXRh
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 20.6K bytes
    - Viewed (0)
Back to top