Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DeducedTypeConverter (0.18 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/typeconverter.go

    		return t.FromStructured(obj, opts...)
    	}
    }
    
    func (c *typeConverter) TypedToObject(value *typed.TypedValue) (runtime.Object, error) {
    	return valueToObject(value.AsValue())
    }
    
    type deducedTypeConverter struct{}
    
    // DeducedTypeConverter is a TypeConverter for CRDs that don't have a
    // schema. It does implement the same interface though (and create the
    // same types of objects), so that everything can still work the same.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:55:50 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/typeconverter_test.go

    		t.Run(fmt.Sprintf("%v ObjectToTyped with TypeConverter", testCase.name), func(t *testing.T) {
    			testObjectToTyped(t, testTypeConverter, testCase.yaml)
    		})
    		t.Run(fmt.Sprintf("%v ObjectToTyped with DeducedTypeConverter", testCase.name), func(t *testing.T) {
    			testObjectToTyped(t, dtc, testCase.yaml)
    		})
    	}
    }
    
    func testObjectToTyped(t *testing.T, tc TypeConverter, y string) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 6.6K bytes
    - Viewed (0)
Back to top