MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / getUpdateFunc

Function getUpdateFunc

pkg/provision/sync/update.go:70–80  ·  view source on GitHub ↗
(obj crclient.Object)

Source from the content-addressed store, hash-verified

68}
69
70func getUpdateFunc(obj crclient.Object) updateFunc {
71 objType := reflect.TypeOf(obj).Elem()
72 switch objType {
73 case reflect.TypeOf(corev1.Service{}):
74 return serviceUpdateFunc
75 case reflect.TypeOf(corev1.ServiceAccount{}):
76 return serviceAccountUpdateFunc
77 default:
78 return defaultUpdateFunc
79 }
80}
81
82func unrecognizedObjectUpdateFunc(spec, cluster crclient.Object) (crclient.Object, error) {
83 if cluster == nil {

Callers 1

updateObjectGenericFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected