Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 157 for patchSets (0.13 sec)

  1. cmd/kubeadm/app/util/patches/patches.go

    	if err != nil {
    		return err
    	}
    
    	// Iterate over the patchSets.
    	for _, patchSet := range pm.patchSets {
    		if patchSet.targetName != patchTarget.Name {
    			continue
    		}
    
    		// Iterate over the patches in the patchSets.
    		for _, patch := range patchSet.patches {
    			patchBytes := []byte(patch)
    
    			// Patch based on the patch type.
    			switch patchSet.patchType {
    
    			// JSON patch.
    			case types.JSONPatchType:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/patches/patches_test.go

    		targetName       string
    		patchType        types.PatchType
    		expectedPatchSet *patchSet
    		data             string
    	}{
    		{
    
    			name:       "valid: YAML patches are separated and converted to JSON",
    			targetName: "etcd",
    			patchType:  types.StrategicMergePatchType,
    			data:       "foo: bar\n---\nfoo: baz\n",
    			expectedPatchSet: &patchSet{
    				targetName: "etcd",
    				patchType:  types.StrategicMergePatchType,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 09 14:24:11 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/patch.go

    				var subschema LookupPatchMeta
    				var patchMeta PatchMeta
    				var patchStrategy string
    				var err error
    				switch leftValue.(type) {
    				case []interface{}:
    					subschema, patchMeta, err = schema.LookupPatchMetadataForSlice(key)
    					if err != nil {
    						return true, err
    					}
    					_, patchStrategy, err = extractRetainKeysPatchStrategy(patchMeta.patchStrategies)
    					if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 23:34:23 UTC 2023
    - 75.5K bytes
    - Viewed (0)
  4. pkg/controller/testutil/test_utils.go

    	patchOpts := opts.ToPatchOptions()
    	data, err := json.Marshal(node)
    	if err != nil {
    		return nil, err
    	}
    	name := node.Name
    	if name == nil {
    		return nil, fmt.Errorf("deployment.Name must be provided to Apply")
    	}
    
    	return m.Patch(ctx, *name, types.ApplyPatchType, data, patchOpts)
    }
    
    // ApplyStatus applies a status of a Node in the fake store.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/meta.go

    const patchStrategy = "x-kubernetes-patch-strategy"
    
    type PatchMeta struct {
    	patchStrategies []string
    	patchMergeKey   string
    }
    
    func (pm *PatchMeta) GetPatchStrategies() []string {
    	if pm.patchStrategies == nil {
    		return []string{}
    	}
    	return pm.patchStrategies
    }
    
    func (pm *PatchMeta) SetPatchStrategies(ps []string) {
    	pm.patchStrategies = ps
    }
    
    func (pm *PatchMeta) GetPatchMergeKey() string {
    	return pm.patchMergeKey
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 16:45:45 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/types.go

    	if err != nil {
    		item.err = err
    		return
    	}
    	item.patchmeta = PatchMeta{
    		patchStrategies: patchStrategies,
    		patchMergeKey:   mergeKey,
    	}
    	item.subschema = subschema
    }
    
    type sliceItem struct {
    	key          string
    	path         *openapi.Path
    	err          error
    	patchmeta    PatchMeta
    	subschema    openapi.Schema
    	hasVisitKind bool
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 20 22:35:14 UTC 2017
    - 4.4K bytes
    - Viewed (0)
  7. pilot/pkg/model/envoyfilter_test.go

    	}
    	if patches := cfilter.Patches[networking.EnvoyFilter_INVALID]; len(patches) != 1 {
    		t.Fatalf("unexpected patches of %v: %v", networking.EnvoyFilter_INVALID, cfilter.Patches)
    	}
    	if patches := cfilter.Patches[networking.EnvoyFilter_HTTP_ROUTE]; len(patches) != 1 { // check num of invalid http route patches
    		t.Fatalf("unexpected patches of %v: %v", networking.EnvoyFilter_HTTP_ROUTE, cfilter.Patches)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 27 04:20:28 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  8. operator/cmd/mesh/testdata/manifest-generate/input/pilot_override_kubernetes.yaml

              - kind: Service
                name: istiod
                patches:
                  - path: spec.ports.[name:https-dns].port
                    value: 11111 # OVERRIDDEN
              # Cluster scope resource
              - kind: MutatingWebhookConfiguration
                name: istio-sidecar-injector-istio-control
                patches:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 01 22:07:45 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  9. pilot/pkg/model/envoyfilter.go

    }
    
    // Returns the keys of all the wrapped envoyfilters.
    func (efw *EnvoyFilterWrapper) Keys() []string {
    	if efw == nil {
    		return nil
    	}
    	keys := sets.String{}
    	for _, patches := range efw.Patches {
    		for _, patch := range patches {
    			keys.Insert(patch.Key())
    		}
    	}
    	return sets.SortedList(keys)
    }
    
    // Returns the keys of all the wrapped envoyfilters.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 13:57:28 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/phases/kubelet/config.go

    }
    
    // applyKubeletConfigPatches reads patches from a directory and applies them over the input kubeletBytes
    func applyKubeletConfigPatches(kubeletBytes []byte, patchesDir string, output io.Writer) ([]byte, error) {
    	patchManager, err := patches.GetPatchManagerForPath(patchesDir, patches.KnownTargets(), output)
    	if err != nil {
    		return nil, err
    	}
    
    	patchTarget := &patches.PatchTarget{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 02 12:34:30 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top