@@ -88,6 +88,11 @@ type ReconcileLifecycleOptions interface {
8888 // NeedRecordLifecycleFinalizerCondition only needed for those adapters that follow PodOpsLifecycle,
8989 // in the case of employment relationship might change and resources in backend provider might be changed by others.
9090 NeedRecordLifecycleFinalizerCondition () bool
91+
92+ // GetSelectedEmployeeNames returns employees' names selected by employer
93+ // note: in multi cluster case, if adapters deployed in fed and employees are under local, the format of employeeName
94+ // should be "employeeName" + "#" + "clusterName"
95+ GetSelectedEmployeeNames (ctx context.Context , employer client.Object ) ([]string , error )
9196}
9297
9398type ReconcileRequeueOptions interface {
@@ -99,11 +104,6 @@ type ReconcileRequeueOptions interface {
99104type ReconcileAdapter interface {
100105 GetControllerName () string
101106
102- // GetSelectedEmployeeNames returns employees' names selected by employer
103- // note: in multi cluster case, if adapters deployed in fed and employees are under local, the format of employeeName
104- // should be "employeeName" + "#" + "clusterName"
105- GetSelectedEmployeeNames (ctx context.Context , employer client.Object ) ([]string , error )
106-
107107 // GetExpectedEmployer and GetCurrentEmployer return expect/current status of employer from related backend provider
108108 GetExpectedEmployer (ctx context.Context , employer client.Object ) ([]IEmployer , error )
109109 GetCurrentEmployer (ctx context.Context , employer client.Object ) ([]IEmployer , error )
@@ -134,6 +134,7 @@ type IEmployee interface {
134134 // GetEmployeeName returns employee's name
135135 // note: in multi cluster case, if adapters deployed in fed and employees are under local, the format of employeeName
136136 // should be "employeeName" + "#" + "clusterName"
137+ // GetEmployeeName need to be implemented if follow Lifecycle
137138 GetEmployeeName () string
138139 GetEmployeeStatuses () interface {}
139140 EmployeeEqual (employee IEmployee ) (bool , error )
0 commit comments