- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 57 for ns (0.16 sec)
-
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 {
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) -
istioctl/pkg/cli/context_test.go
// limitations under the License. package cli import "testing" func Test_handleNamespace(t *testing.T) { ns := handleNamespace("test", "default") if ns != "test" { t.Fatalf("Get the incorrect namespace: %q back", ns) } tests := []struct { description string namespace string defaultNamespace string wantNamespace string }{ {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jun 09 18:17:49 GMT 2023 - 1.4K bytes - Viewed (0) -
istioctl/pkg/tag/tag.go
# Apply the tag to cluster kubectl apply -f tag.yaml # Point namespace "test-ns" at the revision pointed to by the "prod" revision tag kubectl label ns test-ns istio.io/rev=prod # Rollout namespace "test-ns" to update workloads to the "1-8-0" revision kubectl rollout restart deployments -n test-ns `, Args: func(cmd *cobra.Command, args []string) error { if len(args) == 0 {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Apr 02 08:32:06 GMT 2024 - 16.3K bytes - Viewed (0) -
cni/pkg/nodeagent/informers.go
})) return s } func (s *InformerHandlers) GetPodIfAmbient(podName, podNamespace string) (*corev1.Pod, error) { ns := s.namespaces.Get(podNamespace, "") if ns == nil { return nil, fmt.Errorf("failed to find namespace %v", ns) } pod := s.pods.Get(podName, podNamespace) if util.PodRedirectionEnabled(ns, pod) { return pod, nil } return nil, nil } func (s *InformerHandlers) Start() {
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) -
cni/pkg/repair/netns.go
netns "github.com/containernetworking/plugins/pkg/ns" "github.com/prometheus/procfs" "github.com/vishvananda/netlink" "golang.org/x/sys/unix" 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, err := netns.GetNS(getPidNamespace(1))
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Dec 20 22:14:13 GMT 2023 - 4.8K bytes - Viewed (0) -
manifests/charts/gateways/istio-ingress/templates/_affinity.tpl
{{- if $item.values }} values: {{- $vals := split "," $item.values }} {{- range $i, $v := $vals }} - {{ $v | quote }} {{- end }} {{- end }} topologyKey: {{ $item.topologyKey }} {{- if $item.namespaces }} namespaces: {{- $ns := split "," $item.namespaces }} {{- range $i, $n := $ns }} - {{ $n | quote }} {{- end }} {{- end }} {{- end }} {{- end }} {{- define "podAntiAffinityPrefe" }} {{- range $index, $item := .podAntiAffinityTermL }} - podAffinityTerm: labelSelector: matchExpressions: - key: {{ $item.key...
Others - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Aug 10 21:23:08 GMT 2022 - 3.1K bytes - Viewed (0) -
istioctl/pkg/util/handlers/handlers.go
} func InferPodsFromTypedResource(name, defaultNS string, factory cmdutil.Factory) ([]string, string, error) { resname, ns := inferNsInfo(name, defaultNS) if !strings.Contains(resname, "/") { return []string{resname}, ns, nil } client, podName, namespace, selector, err := getClientForResource(resname, ns, factory) if err != nil { return []string{}, "", err } if podName != "" { return []string{podName}, namespace, err
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Feb 06 15:01:41 GMT 2024 - 6.2K 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 != "" {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Mar 08 08:38:19 GMT 2024 - 13.6K bytes - Viewed (0) -
istioctl/pkg/util/handlers/handlers_test.go
}, } factory := cmdtesting.NewTestFactory().WithNamespace("test") ns := scheme.Codecs.WithoutConversion() codec := scheme.Codecs.LegacyCodec(scheme.Scheme.PrioritizedVersionsAllGroups()...) factory.Client = &fake.RESTClient{ GroupVersion: schema.GroupVersion{Group: "", Version: "v1"}, NegotiatedSerializer: ns, Client: fake.CreateHTTPClient(func(req *http.Request) (*http.Response, error) {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jun 09 18:17:49 GMT 2023 - 6.6K bytes - Viewed (0) -
istioctl/pkg/proxystatus/proxystatus.go
if len(args) > 0 { podName, ns, err := ctx.InferPodInfoFromTypedResource(args[0], ctx.Namespace()) if err != nil { return err } if ambient.IsZtunnelPod(kubeClient, podName, ns) { _, _ = fmt.Fprintf(c.OutOrStdout(), "Sync diff is not available for ztunnel pod %s.%s\n", podName, ns) return nil } var envoyDump []byte
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Sat Apr 13 05:23:38 GMT 2024 - 6.2K bytes - Viewed (0)