- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 203 for metav1 (0.06 sec)
-
cni/pkg/util/podutil_test.go
namespaceWithAmbientEnabledLabel = &corev1.Namespace{ ObjectMeta: metav1.ObjectMeta{ Name: "test", Labels: ambientEnabledLabel, }, } unlabelledNamespace = &corev1.Namespace{ ObjectMeta: metav1.ObjectMeta{ Name: "test", }, } podWithAmbientEnabledLabel = &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 - 4.9K bytes - Viewed (0) -
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) -
cni/pkg/nodeagent/cni-watcher_test.go
defer cancel() pod := &corev1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: "pod-bingo", Namespace: "funkyns", }, Spec: corev1.PodSpec{ NodeName: NodeName, }, Status: corev1.PodStatus{ PodIP: fakePodIP, }, } ns := &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "funkyns"}} client := kube.NewFakeClient(ns, pod)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 7.6K bytes - Viewed (0) -
istioctl/pkg/tag/tag_test.go
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 8.5K bytes - Viewed (0) -
istioctl/pkg/injector/injector-list_test.go
{ name: "has rev annotation", pod: &corev1.Pod{ ObjectMeta: metav1.ObjectMeta{ Annotations: map[string]string{ annotation.SidecarStatus.Name: `{"revision": "test-anno"}`, }, }, }, expectedRevision: "test-anno", }, { name: "has both rev label and annotation, use label", pod: &corev1.Pod{ ObjectMeta: metav1.ObjectMeta{ Labels: map[string]string{
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 5.5K bytes - Viewed (0) -
istioctl/pkg/tag/util.go
admitv1 "k8s.io/api/admissionregistration/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" "istio.io/api/label" "istio.io/istio/istioctl/pkg/util" ) func GetRevisionWebhooks(ctx context.Context, client kubernetes.Interface) ([]admitv1.MutatingWebhookConfiguration, error) { webhooks, err := client.AdmissionregistrationV1().MutatingWebhookConfigurations().List(ctx, metav1.ListOptions{
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 5.5K bytes - Viewed (0) -
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) -
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) -
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) -
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)