- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 42 for PatchType (0.5 sec)
-
cmd/kubeadm/app/util/patches/patches_test.go
} if patchType != tc.expectedPatchType { t.Errorf("expected patch type: %v, got: %v", tc.expectedPatchType, patchType) } }) } } func TestCreatePatchSet(t *testing.T) { tests := []struct { name string targetName string patchType types.PatchType expectedPatchSet *patchSet data string }{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 09 14:24:11 UTC 2023 - 11.9K bytes - Viewed (0) -
pkg/kube/adapter.go
DryRun: arRequest.DryRun, Options: arRequest.Options, } } if arResponse != nil { var patchType *kubeApiAdmissionv1beta1.PatchType if arResponse.PatchType != nil { patchType = (*kubeApiAdmissionv1beta1.PatchType)(arResponse.PatchType) } arv1beta1.Response = &kubeApiAdmissionv1beta1.AdmissionResponse{ UID: arResponse.UID,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 10 16:40:00 UTC 2023 - 13.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/request/admissionreview_test.go
v1beta1JSONPatch := admissionv1beta1.PatchTypeJSONPatch v1JSONPatch := admissionv1.PatchTypeJSONPatch emptyv1beta1Patch := admissionv1beta1.PatchType("") emptyv1Patch := admissionv1.PatchType("") invalidv1beta1Patch := admissionv1beta1.PatchType("Foo") invalidv1Patch := admissionv1.PatchType("Foo") testcases := []struct { name string uid types.UID mutating bool review runtime.Object
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 07 16:56:12 UTC 2023 - 20.1K bytes - Viewed (0) -
cmd/kubeadm/app/util/patches/patches.go
} patchType := patchTypes[sub[4]] return targetName, patchType, nil, nil } // createPatchSet creates a patchSet object, by splitting the given "data" by "\n---". func createPatchSet(targetName string, patchType types.PatchType, data string) (*patchSet, error) { var patches []string // Split the patches and convert them to JSON.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 10.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher.go
} } func (w *webhookAnnotator) addPatchAnnotation(patch interface{}, patchType admissionv1.PatchType) { if w.attr == nil || w.attr.Attributes == nil { return } var value string var err error switch patchType { case admissionv1.PatchTypeJSONPatch: value, err = jsonPatchAnnotationValue(w.configuration, w.webhook, patch) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 19.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/validation/validation_test.go
opts metav1.PatchOptions patchType types.PatchType }{{ opts: metav1.PatchOptions{ Force: boolPtr(true), FieldManager: "kubectl", }, patchType: types.ApplyPatchType, }, { opts: metav1.PatchOptions{ FieldManager: "kubectl", }, patchType: types.ApplyPatchType, }, { opts: metav1.PatchOptions{}, patchType: types.MergePatchType, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 02 07:48:42 UTC 2023 - 15.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go
contentType := req.Header.Get("Content-Type") // Remove "; charset=" if included in header. if idx := strings.Index(contentType, ";"); idx > 0 { contentType = contentType[:idx] } patchType := types.PatchType(contentType) // Ensure the patchType is one we support if !sets.NewString(patchTypes...).Has(contentType) { scope.err(negotiation.NewUnsupportedMediaTypeError(patchTypes), w, req) return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 28.5K bytes - Viewed (0) -
pilot/pkg/config/kube/crdclient/client.go
} func genPatchBytes(oldRes, modRes runtime.Object, patchType types.PatchType) ([]byte, error) { oldJSON, err := json.Marshal(oldRes) if err != nil { return nil, fmt.Errorf("failed marhsalling original resource: %v", err) } newJSON, err := json.Marshal(modRes) if err != nil { return nil, fmt.Errorf("failed marhsalling modified resource: %v", err) } switch patchType { case types.JSONPatchType:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 14 00:12:28 UTC 2024 - 13.7K bytes - Viewed (0) -
staging/src/k8s.io/api/admission/v1/generated.pb.go
i-- dAtA[i] = 0xa i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) i-- dAtA[i] = 0x32 } } if m.PatchType != nil { i -= len(*m.PatchType) copy(dAtA[i:], *m.PatchType) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PatchType))) i-- dAtA[i] = 0x2a } if m.Patch != nil { i -= len(m.Patch) copy(dAtA[i:], m.Patch)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:37 UTC 2024 - 46K bytes - Viewed (0) -
staging/src/k8s.io/api/admission/v1beta1/generated.pb.go
i-- dAtA[i] = 0xa i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) i-- dAtA[i] = 0x32 } } if m.PatchType != nil { i -= len(*m.PatchType) copy(dAtA[i:], *m.PatchType) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PatchType))) i-- dAtA[i] = 0x2a } if m.Patch != nil { i -= len(m.Patch) copy(dAtA[i:], m.Patch)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:37 UTC 2024 - 46.1K bytes - Viewed (0)