Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 211 for klabels (0.15 sec)

  1. cni/pkg/nodeagent/informers.go

    	namespace := o.GetName()
    	labels := o.GetLabels()
    	matchAmbient := labels[constants.DataplaneModeLabel] == constants.DataplaneModeAmbient
    	if matchAmbient {
    		log.Infof("Namespace %s is enabled in ambient mesh", namespace)
    	} else {
    		log.Infof("Namespace %s is disabled from ambient mesh", namespace)
    	}
    	for _, pod := range s.pods.List(namespace, klabels.Everything()) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  2. istioctl/pkg/describe/describe_test.go

    }
    
    func TestGetRevisionFromPodAnnotation(t *testing.T) {
    	cases := []struct {
    		anno klabels.Set
    
    		expected string
    	}{
    		{
    			anno: klabels.Set{
    				apiannotation.SidecarStatus.Name: "",
    			},
    			expected: "",
    		},
    		{
    			anno:     klabels.Set{},
    			expected: "",
    		},
    		{
    			anno: klabels.Set{
    				apiannotation.SidecarStatus.Name: `
    				{
    					"initContainers": [
    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)
  3. istioctl/pkg/describe/describe.go

    	// says "We recommend adding an explicit app label and version label to deployments."
    	if !labels.HasCanonicalServiceName(pod.Labels) {
    		fmt.Fprintf(writer, "Suggestion: add required service name label for Istio telemetry. "+
    			"See %s.\n", url.DeploymentRequirements)
    	}
    	if !labels.HasCanonicalServiceRevision(pod.Labels) {
    		fmt.Fprintf(writer, "Suggestion: add required service revision label for Istio telemetry. "+
    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)
  4. cni/pkg/repair/repair_test.go

    // limitations under the License.
    
    package repair
    
    import (
    	"fmt"
    	"strings"
    	"testing"
    	"time"
    
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	klabels "k8s.io/apimachinery/pkg/labels"
    	"k8s.io/apimachinery/pkg/runtime"
    
    	"istio.io/istio/cni/pkg/config"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/monitoring/monitortest"
    	"istio.io/istio/pkg/slices"
    	"istio.io/istio/pkg/test"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 24 03:31:28 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  5. operator/cmd/mesh/manifest-generate_test.go

    func TestWebhookSelector(t *testing.T) {
    	// Setup various labels to be tested
    	empty := klabels.Set{}
    	revLabel := klabels.Set{"istio.io/rev": "canary"}
    	legacyAndRevLabel := klabels.Set{"istio-injection": "enabled", "istio.io/rev": "canary"}
    	legacyDisabledAndRevLabel := klabels.Set{"istio-injection": "disabled", "istio.io/rev": "canary"}
    	legacyLabel := klabels.Set{"istio-injection": "enabled"}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
  6. istioctl/pkg/waypoint/waypoint.go

    			}
    
    			if gw.Labels == nil {
    				gw.Labels = map[string]string{}
    			}
    
    			gw.Labels[constants.AmbientWaypointForTrafficTypeLabel] = trafficType
    		}
    
    		if revision != "" {
    			gw.Labels = map[string]string{label.IoIstioRev.Name: revision}
    		}
    		return &gw, nil
    	}
    	waypointGenerateCmd := &cobra.Command{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 19:45:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  7. manifests/charts/gateway/templates/_helpers.tpl

    }} {{- define "gateway.selectorLabels" -}} {{- if hasKey .Values.labels "app" }} {{- with .Values.labels.app }}app: {{.|quote}} {{- end}} {{- else }}app: {{ include "gateway.name" . }} {{- end }} {{- if hasKey .Values.labels "istio" }} {{- with .Values.labels.istio }} istio: {{.|quote}} {{- end}} {{- else }} istio: {{ include "gateway.name" . | trimPrefix "istio-" }} {{- end }} {{- end }} {{- define "gateway.serviceAccountName" -}} {{- if .Values.serviceAccount.create }} {{- .Values.serviceAccount.name...
    Others
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 06 16:57:46 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  8. istioctl/pkg/tag/generate_test.go

    	"k8s.io/apimachinery/pkg/runtime/serializer"
    
    	"istio.io/api/label"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/test/env"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    var (
    	defaultRevisionCanonicalWebhook = admitv1.MutatingWebhookConfiguration{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:   "istio-sidecar-injector",
    			Labels: map[string]string{label.IoIstioRev.Name: "default"},
    		},
    		Webhooks: []admitv1.MutatingWebhook{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 12.1K bytes
    - Viewed (0)
  9. istioctl/pkg/tag/util.go

    func GetWebhookTagName(wh admitv1.MutatingWebhookConfiguration) string {
    	return wh.ObjectMeta.Labels[IstioTagLabel]
    }
    
    // GetWebhookRevision extracts tag target revision from webhook object.
    func GetWebhookRevision(wh admitv1.MutatingWebhookConfiguration) (string, error) {
    	if tagName, ok := wh.ObjectMeta.Labels[label.IoIstioRev.Name]; ok {
    		return tagName, nil
    	}
    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)
  10. common-protos/k8s.io/api/apps/v1beta2/generated.proto

      // +optional
      optional int32 minReadySeconds = 4;
    
      // Selector is a label query over pods that should match the replica count.
      // Label keys and values that must match in order to be controlled by this replica set.
      // It must match the pod template's labels.
      // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
      optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
    
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 36.4K bytes
    - Viewed (0)
Back to top