Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ToYAMLPath (0.17 sec)

  1. operator/pkg/translate/translate_value.go

    		_, found, err := tpath.GetPathContext(valuesOverlay, util.ToYAMLPath(inPath), false)
    		if err != nil {
    			scope.Debug(err.Error())
    			continue
    		}
    		if found {
    			deprecatedFields = append(deprecatedFields, inPath)
    		}
    	}
    	for inPath := range t.GatewayKubernetesMapping.EgressMapping {
    		_, found, err := tpath.GetPathContext(valuesOverlay, util.ToYAMLPath(inPath), false)
    		if err != nil {
    			scope.Debug(err.Error())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 08 03:52:24 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  2. operator/pkg/util/path.go

    	if len(p) != len(p2) {
    		return false
    	}
    	for i, pp := range p {
    		if pp != p2[i] {
    			return false
    		}
    	}
    	return true
    }
    
    // ToYAMLPath converts a path string to path such that the first letter of each path element is lower case.
    func ToYAMLPath(path string) Path {
    	p := PathFromString(path)
    	for i := range p {
    		p[i] = firstCharToLowerCase(p[i])
    	}
    	return p
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 12 17:12:54 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  3. operator/pkg/translate/translate_common.go

    	enableNodeI, found, err := tpath.Find(valueSpec, util.ToYAMLPath(enabledPath))
    	if err != nil {
    		return false, false, fmt.Errorf("error finding component enablement path: %s in helm value.yaml tree", enabledPath)
    	}
    	if !found {
    		// Some components do not specify enablement should be treated as enabled if the root node in the component subtree exists.
    		_, found, err := tpath.Find(valueSpec, util.ToYAMLPath(valuePath))
    		if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. operator/pkg/util/path_test.go

    	}{
    		{
    			desc:   "all-uppercase",
    			in:     "A.B.C.D",
    			expect: Path{"a", "b", "c", "d"},
    		},
    	}
    
    	for _, tt := range tests {
    		t.Run(tt.desc, func(t *testing.T) {
    			if got := ToYAMLPath(tt.in); !got.Equals(tt.expect) {
    				t.Errorf("%s: expect %v got %v", tt.desc, tt.expect, got)
    			}
    		})
    	}
    }
    
    func TestIsKVPathElement(t *testing.T) {
    	tests := []struct {
    		desc   string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Aug 29 00:15:38 UTC 2020
    - 6.7K bytes
    - Viewed (0)
Back to top