GetPartialReference is exactly like GetReference, but allows you to set the FieldPath.
(scheme *runtime.Scheme, obj runtime.Object, fieldPath string)
| 117 | |
| 118 | // GetPartialReference is exactly like GetReference, but allows you to set the FieldPath. |
| 119 | func GetPartialReference(scheme *runtime.Scheme, obj runtime.Object, fieldPath string) (*v1.ObjectReference, error) { |
| 120 | ref, err := GetReference(scheme, obj) |
| 121 | if err != nil { |
| 122 | return nil, err |
| 123 | } |
| 124 | ref.FieldPath = fieldPath |
| 125 | return ref, nil |
| 126 | } |
nothing calls this directly
no test coverage detected