Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 151 for metav1 (0.27 sec)

  1. istioctl/pkg/describe/describe_test.go

    			client.Istio().NetworkingV1().DestinationRules(t.Namespace).Create(context.TODO(), t, metav1.CreateOptions{})
    		case *clientnetworking.Gateway:
    			client.Istio().NetworkingV1().Gateways(t.Namespace).Create(context.TODO(), t, metav1.CreateOptions{})
    		case *clientnetworking.VirtualService:
    			client.Istio().NetworkingV1().VirtualServices(t.Namespace).Create(context.TODO(), t, metav1.CreateOptions{})
    		}
    	}
    	for i := range c.k8sConfigs {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 20:04:20 UTC 2024
    - 30.8K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/server_test.go

    	pod, err = fakeClientSet.CoreV1().Pods("test").Get(fakeCtx, "test", metav1.GetOptions{})
    	assert.NoError(t, err)
    	assert.Equal(t, len(pod.Annotations), 1)
    	assert.Equal(t, pod.Annotations[annotation.AmbientRedirection.Name], constants.AmbientRedirectionEnabled)
    }
    
    func TestMeshDataplaneAddsAnnotationOnAddWithPartialError(t *testing.T) {
    	pod := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "test",
    			Namespace: "test",
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  3. istioctl/pkg/multicluster/remote_secret.go

    	if _, err := client.Kube().CoreV1().Namespaces().Get(context.TODO(), ns, metav1.GetOptions{}); err != nil {
    		if _, err := client.Kube().CoreV1().Namespaces().Create(context.TODO(), &v1.Namespace{
    			ObjectMeta: metav1.ObjectMeta{
    				Name: ns,
    			},
    		}, metav1.CreateOptions{}); err != nil {
    			return fmt.Errorf("failed creating namespace %s: %v", ns, err)
    		}
    	}
    	return nil
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 15 16:31:46 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  4. istioctl/pkg/kubeinject/kubeinject.go

    	}
    	if err != nil {
    		return nil, err
    	}
    	rev := &admission.AdmissionReview{
    		TypeMeta: metav1.TypeMeta{
    			APIVersion: admission.SchemeGroupVersion.String(),
    			Kind:       "AdmissionReview",
    		},
    		Request: &admission.AdmissionRequest{
    			Object: runtime.RawExtension{Raw: podBytes},
    			Kind: metav1.GroupVersionKind{
    				Group:   admission.GroupName,
    				Version: admission.SchemeGroupVersion.Version,
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 15 16:31:46 UTC 2024
    - 21K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/informers_test.go

    	defer cancel()
    
    	pod := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "test",
    			Namespace: "test",
    		},
    		Spec: corev1.PodSpec{
    			NodeName: NodeName,
    		},
    		Status: corev1.PodStatus{
    			PodIP: "11.1.1.12",
    		},
    	}
    	ns := &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "test"}}
    
    	client := kube.NewFakeClient(ns, pod)
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/net_test.go

    // limitations under the License.
    
    package nodeagent
    
    import (
    	"context"
    	"errors"
    	"net/netip"
    	"runtime"
    	"sync/atomic"
    	"testing"
    	"time"
    
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/apimachinery/pkg/util/intstr"
    
    	"istio.io/istio/cni/pkg/iptables"
    	istiolog "istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/test/util/assert"
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jul 25 16:13:38 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. istioctl/pkg/waypoint/waypoint.go

    			return nil, fmt.Errorf("invalid name provided for waypoint, 'none' is a reserved value")
    		}
    		gw := gateway.Gateway{
    			TypeMeta: metav1.TypeMeta{
    				Kind:       gvk.KubernetesGateway_v1.Kind,
    				APIVersion: gvk.KubernetesGateway_v1.GroupVersion(),
    			},
    			ObjectMeta: metav1.ObjectMeta{
    				Name:      waypointName,
    				Namespace: ns,
    			},
    			Spec: gateway.GatewaySpec{
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  8. istioctl/pkg/injector/injector-list.go

    import (
    	"context"
    	"fmt"
    	"io"
    	"sort"
    	"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"
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Oct 18 11:39:52 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  9. istioctl/pkg/workload/workload_test.go

    		}, metav1.CreateOptions{})
    		client.Kube().CoreV1().ConfigMaps("istio-system").Create(context.Background(), &v1.ConfigMap{
    			ObjectMeta: metav1.ObjectMeta{Namespace: "istio-system", Name: "istio"},
    			Data: map[string]string{
    				"mesh": "defaultConfig: {}",
    			},
    		}, metav1.CreateOptions{})
    		client.Kube().CoreV1().Secrets("bar").Create(context.Background(), &v1.Secret{
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 20:04:20 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  10. istioctl/pkg/multicluster/remote_secret_test.go

    	kubeSystemNamespace    = &v1.Namespace{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: "kube-system",
    			UID:  kubeSystemNamespaceUID,
    		},
    	}
    )
    
    const (
    	testNamespace          = "istio-system-test"
    	testServiceAccountName = "test-service-account"
    )
    
    func makeServiceAccount(secrets ...string) *v1.ServiceAccount {
    	sa := &v1.ServiceAccount{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      testServiceAccountName,
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 17:36:49 UTC 2024
    - 20.7K bytes
    - Viewed (0)
Back to top