- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for newKube (0.1 sec)
-
pkg/test/framework/components/prometheus/kube.go
} if err := ctx.ConfigKube().YAML(ns, yaml).Apply(apply.NoCleanup); err != nil { return err } ctx.CleanupConditionally(func() { _ = ctx.ConfigKube().YAML(ns, yaml).Delete() }) return nil } func newKube(ctx resource.Context, cfgIn Config) (Instance, error) { c := &kubeComponent{ clusters: ctx.Clusters(), } c.id = ctx.TrackResource(c) c.api = make(map[string]prometheusApiV1.API)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 6.3K bytes - Viewed (0) -
pkg/test/framework/components/namespace/kube.go
_, err := c.Kube().CoreV1().Namespaces().Patch(context.TODO(), name, types.JSONPatchType, []byte(nsLabelPatch), metav1.PatchOptions{}) return err }) } // NewNamespace allocates a new testing namespace. func newKube(ctx resource.Context, cfg Config) (Instance, error) { mu.Lock() idctr++ nsid := idctr r := rnd.Intn(99999) mu.Unlock() name := fmt.Sprintf("%s-%d-%d", cfg.Prefix, nsid, r) n := &kubeNamespace{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 9K bytes - Viewed (0) -
cni/pkg/iptables/iptables_linux.go
// A very similar mechanism is used for sidecar TPROXY. // // TODO largely identical/copied from tools/istio-iptables/pkg/capture/run_linux.go inpodMarkRule := netlink.NewRule() inpodMarkRule.Family = family inpodMarkRule.Table = RouteTableInbound inpodMarkRule.Mark = InpodTProxyMark inpodMarkRule.Mask = InpodTProxyMask inpodMarkRule.Priority = 32764
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 22:24:38 UTC 2024 - 3.3K bytes - Viewed (0) -
tools/istio-iptables/pkg/capture/run_linux.go
families := []int{unix.AF_INET} if cfg.EnableIPv6 { families = append(families, unix.AF_INET6) } for _, family := range families { r := netlink.NewRule() r.Family = family r.Table = tproxyTable r.Mark = tproxyMark if err := netlink.RuleAdd(r); err != nil { return fmt.Errorf("failed to configure netlink rule: %v", err) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 22:24:38 UTC 2024 - 3.1K bytes - Viewed (0)