Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getFromStructPath (0.18 sec)

  1. operator/pkg/translate/translate_common.go

    	componentNodeI, found, err := tpath.GetFromStructPath(controlPlaneSpec, "Components."+string(componentName)+".Enabled")
    	if err != nil {
    		return false, fmt.Errorf("error in IsComponentEnabledInSpec GetFromStructPath componentEnabled for component=%s: %s",
    			componentName, err)
    	}
    	if !found || componentNodeI == nil {
    		return false, 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)
  2. operator/pkg/name/name.go

    	defaultNamespace := iop.Namespace(controlPlaneSpec)
    
    	componentNodeI, found, err := tpath.GetFromStructPath(controlPlaneSpec, "Components."+string(componentName)+".Namespace")
    	if err != nil {
    		return "", fmt.Errorf("error in Namespace GetFromStructPath componentNamespace for component=%s: %s", componentName, err)
    	}
    	if !found {
    		return defaultNamespace, nil
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 19:23:44 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  3. operator/pkg/translate/translate_test.go

    			assert.NoError(t, err)
    			val := obj.UnstructuredObject().Object["spec"].(map[string]interface{})["ports"].([]interface{})[0]
    			apVal, found, _ := tpath.GetFromStructPath(val, "appProtocol")
    			if !tt.expectExist {
    				assert.Equal(t, found, false)
    			} else {
    				if apVal != nil {
    					assert.Equal(t, apVal.(string), tt.expectValue)
    				} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 12 19:43:09 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top