From 0e1d685769875b8e30aa01701db66aabcbeda979 Mon Sep 17 00:00:00 2001 From: Aaron Kuehler Date: Tue, 16 Jan 2024 09:16:27 -0500 Subject: [PATCH] Run make generate to fix DestroySentinelResource (#38) Ran the `make generate` target locally while preparing a branch for the 1.8.0 release. I'm not entirely sure what happened, but the client generator wants to move and fix the documentation of the `DestroySentinelResources` method that was added in https://github.com/powerhome/redis-operator/pull/33. --- .../service/RedisFailoverClient.go | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/mocks/operator/redisfailover/service/RedisFailoverClient.go b/mocks/operator/redisfailover/service/RedisFailoverClient.go index 7d8258af7..d4f060126 100644 --- a/mocks/operator/redisfailover/service/RedisFailoverClient.go +++ b/mocks/operator/redisfailover/service/RedisFailoverClient.go @@ -14,6 +14,20 @@ type RedisFailoverClient struct { mock.Mock } +// DestroySentinelResources provides a mock function with given fields: rFailover +func (_m *RedisFailoverClient) DestroySentinelResources(rFailover *v1.RedisFailover) error { + ret := _m.Called(rFailover) + + var r0 error + if rf, ok := ret.Get(0).(func(*v1.RedisFailover) error); ok { + r0 = rf(rFailover) + } else { + r0 = ret.Error(0) + } + + return r0 +} + // EnsureHAProxyConfigmap provides a mock function with given fields: rFailover, labels, ownerRefs func (_m *RedisFailoverClient) EnsureHAProxyConfigmap(rFailover *v1.RedisFailover, labels map[string]string, ownerRefs []metav1.OwnerReference) error { ret := _m.Called(rFailover, labels, ownerRefs) @@ -224,20 +238,6 @@ func (_m *RedisFailoverClient) EnsureSentinelDeployment(rFailover *v1.RedisFailo return r0 } -// DestroySentinelResources provides a mock function with given fields: rFailover, labels, ownerRefs -func (_m *RedisFailoverClient) DestroySentinelResources(rFailover *v1.RedisFailover) error { - ret := _m.Called(rFailover) - - var r0 error - if rf, ok := ret.Get(0).(func(*v1.RedisFailover) error); ok { - r0 = rf(rFailover) - } else { - r0 = ret.Error(0) - } - - return r0 -} - // EnsureSentinelNetworkPolicy provides a mock function with given fields: rFailover, labels, ownerRefs func (_m *RedisFailoverClient) EnsureSentinelNetworkPolicy(rFailover *v1.RedisFailover, labels map[string]string, ownerRefs []metav1.OwnerReference) error { ret := _m.Called(rFailover, labels, ownerRefs)