- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 51 for GetOptions (0.24 sec)
-
operator/pkg/util/k8s.go
namespace = constants.IstioSystemNamespace } // check if the namespace already exists. If yes, do nothing. If no, create a new one. if _, err := cs.CoreV1().Namespaces().Get(context.TODO(), namespace, metav1.GetOptions{}); err != nil { if errors.IsNotFound(err) { ns := &v1.Namespace{ObjectMeta: metav1.ObjectMeta{ Name: namespace, Labels: map[string]string{}, }} if network != "" {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Feb 27 16:55:16 UTC 2024 - 3.6K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/util/util.go
return true, sandboxStatus.Metadata.Attempt + 1, sandboxStatus.Id } // Needs to create a new sandbox when network namespace changed. if sandboxStatus.GetLinux().GetNamespaces().GetOptions().GetNetwork() != NetworkNamespaceForPod(pod) { klog.V(2).InfoS("Sandbox for pod has changed. Need to start a new one", "pod", klog.KObj(pod)) return true, sandboxStatus.Metadata.Attempt + 1, "" }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 13 23:14:48 UTC 2024 - 4.6K bytes - Viewed (0) -
tests/integration/ambient/gateway_conformance_test.go
ambientComponent.NewWaypointProxyOrFail(ctx, meshNS, "namespace") for _, k := range ctx.AllClusters() { ns, err := k.Kube().CoreV1().Namespaces().Get(ctx.Context(), meshNS.Name(), metav1.GetOptions{}) if err != nil { t.Fatal(err) } labels := ns.Labels if labels == nil { labels = make(map[string]string) } labels[constants.AmbientUseWaypointLabel] = "namespace"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 02 21:29:40 UTC 2024 - 6K bytes - Viewed (0) -
pkg/registry/core/serviceaccount/storage/storage_test.go
// When more test cases are added, this getter will need extending/replacing to have a real test implementation. type panicGetter struct{} func (f panicGetter) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error) { panic("not implemented") } var _ rest.Getter = panicGetter{} func validNewServiceAccount(name string) *api.ServiceAccount { return &api.ServiceAccount{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 6.7K bytes - Viewed (0) -
pkg/test/framework/components/prometheus/kube.go
if err != nil { return nil, err } pod := pods[0] svc, err := cls.Kube().CoreV1().Services(cfg.TelemetryNamespace).Get(context.TODO(), serviceName, metav1.GetOptions{}) if err != nil { return nil, err } port := uint16(svc.Spec.Ports[0].Port) forwarder, err := cls.NewPortForwarder(pod.Name, pod.Namespace, "", 0, int(port)) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 6.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/util_test.go
require.NoError(t, err) return out } getPod := func(name, ns string) *example.Pod { key := "pods/" + ns + "/" + name out := &example.Pod{} err := etcdStorage.Get(context.TODO(), key, storage.GetOptions{}, out) require.NoError(t, err) return out } makeReplicaSet := func(name string) *example2v1.ReplicaSet { return &example2v1.ReplicaSet{ ObjectMeta: metav1.ObjectMeta{Namespace: "ns", Name: name},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 11 12:07:39 UTC 2024 - 6.3K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleJavadocsPlugin.java
.withPropertyName("stylesheetFile") .withPathSensitivity(PathSensitivity.NAME_ONLY); StandardJavadocDocletOptions options = (StandardJavadocDocletOptions) task.getOptions(); options.setEncoding("utf-8"); options.setDocEncoding("utf-8"); options.setCharSet("utf-8"); options.addBooleanOption("-allow-script-in-comments", true);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 30 04:10:18 UTC 2024 - 6.7K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/fake/fake_example.go
// Get takes name of the example, and returns the corresponding example object, and an error if there is any. func (c *FakeExamples) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Example, err error) { emptyResult := &v1.Example{} obj, err := c.Fake. Invokes(testing.NewGetAction(examplesResource, c.ns, name), emptyResult) if obj == nil { return emptyResult, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 12:23:16 UTC 2024 - 5.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1/fake/fake_customresourcedefinition.go
// Get takes name of the customResourceDefinition, and returns the corresponding customResourceDefinition object, and an error if there is any. func (c *FakeCustomResourceDefinitions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.CustomResourceDefinition, err error) { emptyResult := &v1beta1.CustomResourceDefinition{} obj, err := c.Fake. Invokes(testing.NewRootGetAction(customresourcedefinitionsResource, name), emptyResult)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 12:23:16 UTC 2024 - 8.5K bytes - Viewed (0) -
pkg/kube/kubetypes/types.go
} // ReadAPI exposes a generic API for a client go type for read operations. type ReadAPI[T runtime.Object, TL runtime.Object] interface { Get(ctx context.Context, name string, opts metav1.GetOptions) (T, error) List(ctx context.Context, opts metav1.ListOptions) (TL, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 28 16:41:38 UTC 2024 - 6.1K bytes - Viewed (0)