- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 53 for PatchOptions (0.2 sec)
-
operator/pkg/helmreconciler/reconciler.go
} t := true _, err := kubeClient.Dynamic().Resource(ogvr).Namespace(obj.GetNamespace()).Patch( context.TODO(), obj.GetName(), types.ApplyPatchType, []byte(yml), metav1.PatchOptions{ Force: &t, FieldManager: fieldOwnerOperator, }) if err != nil { return fmt.Errorf("failed to apply YAML: %w", err) } } return nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 22 08:32:23 UTC 2024 - 22K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder.go
endpoints.AddObjectParams(b.ws, route, &metav1.ListOptions{}) case "put": endpoints.AddObjectParams(b.ws, route, &metav1.UpdateOptions{}) case "patch": endpoints.AddObjectParams(b.ws, route, &metav1.PatchOptions{}) case "post": endpoints.AddObjectParams(b.ws, route, &metav1.CreateOptions{}) case "delete": endpoints.AddObjectParams(b.ws, route, &metav1.DeleteOptions{})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 22.8K bytes - Viewed (0) -
pkg/test/framework/components/echo/kube/deployment.go
deploymentNames = append(deploymentNames, fmt.Sprintf("%s-%s", d.cfg.Service, s.Version)) } curTimestamp := time.Now().Format(time.RFC3339) for _, deploymentName := range deploymentNames { patchOpts := metav1.PatchOptions{} patchData := fmt.Sprintf(`{ "spec": { "template": { "metadata": { "annotations": { "kubectl.kubernetes.io/restartedAt": %q } } } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 09 12:26:52 UTC 2024 - 24.1K bytes - Viewed (0) -
pilot/pkg/config/kube/gateway/deploymentcontroller.go
c := client.Dynamic().Resource(gvr).Namespace(namespace) t := true _, err := c.Patch(context.Background(), name, types.ApplyPatchType, data, metav1.PatchOptions{ Force: &t, FieldManager: features.ManagedGatewayController, }, subresources...) return err }, gateways: gateways, gatewayClasses: gatewayClasses,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon May 13 21:43:20 UTC 2024 - 26.3K bytes - Viewed (0) -
pkg/controller/daemon/update.go
} patchJSON, err := json.Marshal(patchRaw) if err != nil { return nil, err } _, err = dsc.kubeClient.CoreV1().Pods(ds.Namespace).Patch(ctx, pod.Name, types.MergePatchType, patchJSON, metav1.PatchOptions{}) if err != nil { return nil, err } } } // Clean up duplicates for _, cur := range curHistories { if cur.Name == keepCur.Name { continue } // Remove duplicates
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 13 16:53:53 UTC 2024 - 24.4K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/dynamicresources/dynamicresources.go
claim, err := pl.clientset.ResourceV1alpha2().ResourceClaims(claim.Namespace).Patch(ctx, claim.Name, types.StrategicMergePatchType, []byte(patch), metav1.PatchOptions{}, "status") if err != nil { // We will get here again when pod scheduling is retried. logger.Error(err, "unreserve", "resourceclaim", klog.KObj(claim)) } } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 15:22:37 UTC 2024 - 75.9K bytes - Viewed (0) -
pkg/kube/client.go
return err } data, err := json.Marshal(obj) if err != nil { return err } force := true _, err = dr.Patch(context.Background(), obj.GetName(), types.ApplyPatchType, data, metav1.PatchOptions{ DryRun: getDryRun(dryRun), Force: &force, FieldManager: "istio-ci", }) // If we are changing CRDs, invalidate the discovery client so future calls will not fail
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 14:44:17 UTC 2024 - 39K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/installer.go
if err != nil { return nil, nil, err } versionedPatchOptions, err := a.group.Creater.New(optionsExternalVersion.WithKind("PatchOptions")) if err != nil { return nil, nil, err } versionedUpdateOptions, err := a.group.Creater.New(optionsExternalVersion.WithKind("UpdateOptions")) if err != nil { return nil, nil, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 18:15:22 UTC 2024 - 51.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/generated/openapi/zz_generated.openapi.go
return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "PatchOptions may be provided when patching an API object. PatchOptions is meant to be a superset of UpdateOptions.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:07:17 UTC 2024 - 329.7K bytes - Viewed (0) -
pkg/controller/job/job_controller.go
} func (jm *Controller) patchJob(ctx context.Context, job *batch.Job, data []byte) error { _, err := jm.kubeClient.BatchV1().Jobs(job.Namespace).Patch( ctx, job.Name, types.StrategicMergePatchType, data, metav1.PatchOptions{}) return err } // getValidPodsWithFilter returns the valid pods that pass the filter. // Pods are valid if they have a finalizer or in uncounted set // and, for Indexed Jobs, a valid completion index.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 10 23:56:37 UTC 2024 - 77.6K bytes - Viewed (0)