- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 107 for ns (0.03 sec)
-
istioctl/pkg/checkinject/checkinject_test.go
func Test_analyzeRunningWebhooks(t *testing.T) { cases := []struct { name string pod *corev1.Pod ns *corev1.Namespace expectedMessages []webhookAnalysis }{ { name: "no inj because of no match labels", pod: podTestObject("test1", "test1", "", ""), ns: nsTestObject("test1", "", ""), expectedMessages: []webhookAnalysis{ { Name: "istio-sidecar-injector",
Registered: 2025-05-28 22:53 - Last Modified: 2023-06-15 15:02 - 10.6K bytes - Viewed (0) -
schema/naming_test.go
} for key, value := range maps { if ns.SchemaName(key) != value { t.Errorf("%v schema name should equal %v, but got %v", key, value, ns.SchemaName(key)) } } } func TestNamingStrategy(t *testing.T) { ns := NamingStrategy{ TablePrefix: "public.", SingularTable: true, NameReplacer: strings.NewReplacer("CID", "Cid"), } idxName := ns.IndexName("public.table", "name")
Registered: 2025-05-25 09:35 - Last Modified: 2023-05-30 02:00 - 7K bytes - Viewed (0) -
cni/pkg/repair/netns_linux.go
netns "github.com/containernetworking/plugins/pkg/ns" "github.com/prometheus/procfs" corev1 "k8s.io/api/core/v1" "istio.io/istio/pkg/log" ) func getPidNamespace(pid int) string { return "/host/proc/" + strconv.Itoa(pid) + "/ns/net" } func runInHost[T any](f func() (T, error)) (T, error) { var res T ns := getPidNamespace(1) err := netns.WithNetNSPath(ns, func(_ netns.NetNS) error { var err error
Registered: 2025-05-28 22:53 - Last Modified: 2025-03-03 21:55 - 4.3K bytes - Viewed (0) -
cni/pkg/nodeagent/pod_cache_linux_test.go
pod := &corev1.Pod{ObjectMeta: metav1.ObjectMeta{UID: "testUID"}} ns := newFakeNsInode(inc(), 1) wl := WorkloadInfo{ Workload: podToWorkload(pod), Netns: ns, } netns1 := p.UpsertPodCacheWithNetns(string(pod.UID), wl) if !reflect.DeepEqual(netns1, ns) { t.Fatalf("Expected the same Netns for the same uid, got %v and %v", netns1, ns) } ns2 := newFakeNsInode(inc(), 1) wl2 := WorkloadInfo{
Registered: 2025-05-28 22:53 - Last Modified: 2025-03-03 21:55 - 4.2K bytes - Viewed (0) -
schema/naming.go
return ns.TablePrefix + str } if ns.SingularTable { return ns.TablePrefix + ns.toDBName(str) } return ns.TablePrefix + inflection.Plural(ns.toDBName(str)) } // RelationshipFKName generate fk name for relation func (ns NamingStrategy) RelationshipFKName(rel Relationship) string { return ns.formatName("fk", rel.Schema.Table, ns.toDBName(rel.Name)) } // CheckerName generate checker name
Registered: 2025-05-25 09:35 - Last Modified: 2024-06-12 03:46 - 5.3K bytes - Viewed (0) -
istioctl/pkg/waypoint/waypoint.go
if err != nil { return fmt.Errorf("failed to create Kubernetes client: %v", err) } var ns string if allNamespaces { ns = "" } else { ns = ctx.NamespaceOrDefault(ctx.Namespace()) } gws, err := kubeClient.GatewayAPI().GatewayV1().Gateways(ns). List(context.Background(), metav1.ListOptions{}) if err != nil { return err } if len(gws.Items) == 0 {
Registered: 2025-05-28 22:53 - Last Modified: 2025-04-03 01:42 - 20.9K bytes - Viewed (0) -
cni/pkg/nodeagent/netns_linux_test.go
import "testing" func TestOpenNetns(t *testing.T) { ns, err := OpenNetns("/proc/self/ns/net") if err != nil { t.Fatalf("unexpected error: %v", err) } // the inode for netns is proc dynamic, so it needs to be higher than // #define PROC_DYNAMIC_FIRST 0xF0000000U if ns.Inode() < 0xF0000000 { t.Fatalf("unexpected inode: %v", ns.Inode()) } defer ns.Close()
Registered: 2025-05-28 22:53 - Last Modified: 2024-01-26 20:34 - 976 bytes - Viewed (0) -
cni/pkg/plugin/plugin_test.go
"cnibindir": "/testDirectory" } }` pod, ns := buildFakePodAndNSForClient() testDoAddRun(t, fmt.Sprintf(confNoPrevResult, false), testNSName, pod, ns) testDoAddRun(t, fmt.Sprintf(confNoPrevResult, true), testNSName, pod, ns) } func TestCmdAddEnableDualStack(t *testing.T) { pod, ns := buildFakePodAndNSForClient() pod.ObjectMeta.Annotations[sidecarStatusKey] = "true"
Registered: 2025-05-28 22:53 - Last Modified: 2025-05-06 05:38 - 18.1K bytes - Viewed (0) -
istioctl/pkg/multixds/gather.go
ns string, serviceAccount string, kubeClient kube.CLIClient, options Options, ) (map[string]*discovery.DiscoveryResponse, error) { // If Central Istiod case, just call it if ns == "" { ns = istioNamespace } if ns == istioNamespace { serviceAccount = tokenServiceAccount } if centralOpts.Xds != "" {
Registered: 2025-05-28 22:53 - Last Modified: 2025-03-07 06:40 - 10.5K bytes - Viewed (0) -
istioctl/pkg/xds/client.go
func GetXdsResponse(dr *discovery.DiscoveryRequest, ns string, serviceAccount string, opts clioptions.CentralControlPlaneOptions, grpcOpts []grpc.DialOption, ) (*discovery.DiscoveryResponse, error) { adscConn, err := adsc.NewWithBackoffPolicy(opts.Xds, &adsc.ADSConfig{ Config: adsc.Config{ Meta: model.NodeMetadata{ Generator: "event", ServiceAccount: serviceAccount, Namespace: ns, CloudrunAddr: opts.IstiodAddr,
Registered: 2025-05-28 22:53 - Last Modified: 2023-12-19 22:42 - 3.7K bytes - Viewed (0)