- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 369 for GetOptions (0.19 sec)
-
istioctl/pkg/util/ambient/util.go
isZtunnel := strings.HasPrefix(podName, "ztunnel") if client == nil { return isZtunnel } pod, err := client.Kube().CoreV1().Pods(podNamespace).Get(context.Background(), podName, metav1.GetOptions{}) if err != nil { return isZtunnel } if v, ok := pod.Labels["app"]; ok { return v == "ztunnel" } return isZtunnel } // InAmbient returns true if a resource is in ambient data plane mode.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 02 21:29:40 UTC 2024 - 1.7K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/helpers.go
for i := 0; i < 5; i++ { crd, err := client.ApiextensionsV1().CustomResourceDefinitions().Get(context.TODO(), name, metav1.GetOptions{}) if err != nil { return nil, fmt.Errorf("failed to get CustomResourceDefinition %q: %v", name, err) } update(crd)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 30 11:46:49 UTC 2021 - 7.2K bytes - Viewed (0) -
security/pkg/k8s/controller/casecret.go
) (*v1.Secret, error) { start := time.Now() var caSecret *v1.Secret var scrtErr error for { caSecret, scrtErr = csc.client.Secrets(namespace).Get(context.TODO(), secretName, metav1.GetOptions{}) if scrtErr == nil { return caSecret, nil } k8sControllerLog.Errorf("Failed on loading CA secret %s:%s.", namespace, secretName) if time.Since(start) > timeout {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 2.6K bytes - Viewed (0) -
pkg/kubelet/util/util.go
"k8s.io/kubernetes/pkg/util/filesystem" ) // FromApiserverCache modifies <opts> so that the GET request will // be served from apiserver cache instead of from etcd. func FromApiserverCache(opts *metav1.GetOptions) { opts.ResourceVersion = "0" } var IsUnixDomainSocket = filesystem.IsUnixDomainSocket // GetNodenameForKernel gets hostname value to set in the hostname field (the nodename field of struct utsname) of the pod.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 17 18:07:39 UTC 2023 - 2.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/generic/registry/dryrun_test.go
err := s.Create(context.Background(), "key", obj, out, 0, true) if err != nil { t.Fatalf("Failed to create new dry-run object: %v", err) } err = s.Get(context.Background(), "key", storage.GetOptions{}, out) if e, ok := err.(*storage.StorageError); !ok || e.Code != storage.ErrCodeKeyNotFound { t.Errorf("Expected key to be not found, error: %v", err) } } func TestDryRunCreateReturnsObject(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 24 09:23:05 UTC 2023 - 9.9K bytes - Viewed (0) -
pkg/registry/rbac/rest/storage_rbac.go
_, err := clusterRoleClient.ClusterRoles().Get(context.TODO(), newName, metav1.GetOptions{}) if err == nil { continue } if !apierrors.IsNotFound(err) { return err } existingRole, err := clusterRoleClient.ClusterRoles().Get(context.TODO(), oldName, metav1.GetOptions{}) if apierrors.IsNotFound(err) { continue } if err != nil { return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 14 03:25:19 UTC 2022 - 18.5K bytes - Viewed (0) -
pkg/volume/csi/nodeinfomanager/nodeinfomanager.go
if kubeClient == nil { return fmt.Errorf("error getting kube client") } nodeClient := kubeClient.CoreV1().Nodes() originalNode, err := nodeClient.Get(context.TODO(), string(nim.nodeName), metav1.GetOptions{}) if err != nil { return err } node := originalNode.DeepCopy() needUpdate := false for _, update := range updateFuncs { newNode, updated, err := update(node) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 11 09:02:45 UTC 2024 - 20.1K bytes - Viewed (0) -
pkg/controller/storageversiongc/gc_controller.go
return true } func (c *Controller) processDeletedLease(ctx context.Context, name string) error { _, err := c.kubeclientset.CoordinationV1().Leases(metav1.NamespaceSystem).Get(ctx, name, metav1.GetOptions{}) // the lease isn't deleted, nothing we need to do here if err == nil { return nil } if !apierrors.IsNotFound(err) { return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 10K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresourcedefinition/etcd.go
func (r *REST) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions) (runtime.Object, bool, error) { obj, err := r.Get(ctx, name, &metav1.GetOptions{}) if err != nil { return nil, false, err } crd := obj.(*apiextensions.CustomResourceDefinition) // Ensure we have a UID precondition if options == nil { options = metav1.NewDeleteOptions(0)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 18 09:21:19 UTC 2022 - 8K bytes - Viewed (0) -
pkg/registry/core/namespace/storage/storage.go
return r.store.Update(ctx, name, objInfo, createValidation, updateValidation, forceAllowCreate, options) } func (r *REST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error) { return r.store.Get(ctx, name, options) } func (r *REST) Watch(ctx context.Context, options *metainternalversion.ListOptions) (watch.Interface, error) { return r.store.Watch(ctx, options)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 18 09:21:19 UTC 2022 - 13.4K bytes - Viewed (0)