Adds includeDeleted flag to get remote cluster app and store methods (#28182)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
46ca7747f8
Коммит
cae456de2d
@@ -8909,11 +8909,11 @@ func (s *RetryLayerRemoteClusterStore) Delete(remoteClusterId string) (bool, err
|
||||
|
||||
}
|
||||
|
||||
func (s *RetryLayerRemoteClusterStore) Get(remoteClusterId string) (*model.RemoteCluster, error) {
|
||||
func (s *RetryLayerRemoteClusterStore) Get(remoteClusterId string, includeDeleted bool) (*model.RemoteCluster, error) {
|
||||
|
||||
tries := 0
|
||||
for {
|
||||
result, err := s.RemoteClusterStore.Get(remoteClusterId)
|
||||
result, err := s.RemoteClusterStore.Get(remoteClusterId, includeDeleted)
|
||||
if err == nil {
|
||||
return result, nil
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user