File tree Expand file tree Collapse file tree 5 files changed +8
-13
lines changed Expand file tree Collapse file tree 5 files changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ require (
66 github.com/go-logr/logr v1.4.2
77 github.com/onsi/ginkgo/v2 v2.19.1
88 github.com/onsi/gomega v1.34.1
9- github.com/openstack-k8s-operators/lib-common/modules/common v0.4.1-0.20240730142703-7fd3da600c9d
9+ github.com/openstack-k8s-operators/lib-common/modules/common v0.4.1-0.20240808095747-579da98fa7a6
1010 k8s.io/api v0.28.12
1111 k8s.io/apimachinery v0.28.12
1212 k8s.io/client-go v0.28.12
Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ github.com/onsi/gomega v1.34.1 h1:EUMJIKUjM8sKjYbtxQI9A4z2o+rruxnzNvpknOXie6k=
8383github.com/onsi/gomega v1.34.1 /go.mod h1:kU1QgUvBDLXBJq618Xvm2LUX6rSAfRaFRTcdOeDLwwY =
8484github.com/openshift/api v0.0.0-20230414143018-3367bc7e6ac7 h1:rncLxJBpFGqBztyxCMwNRnMjhhIDOWHJowi6q8G6koI =
8585github.com/openshift/api v0.0.0-20230414143018-3367bc7e6ac7 /go.mod h1:ctXNyWanKEjGj8sss1KjjHQ3ENKFm33FFnS5BKaIPh4 =
86- github.com/openstack-k8s-operators/lib-common/modules/common v0.4.1-0.20240730142703-7fd3da600c9d h1:WfEUkOxDpMnnYo+mQTJc9juoY85me/V6ubNAsOHdjnc =
87- github.com/openstack-k8s-operators/lib-common/modules/common v0.4.1-0.20240730142703-7fd3da600c9d /go.mod h1:YlNmaOTuZNZvwlOfosPI94od/V2Itektn9KWThRzylI =
86+ github.com/openstack-k8s-operators/lib-common/modules/common v0.4.1-0.20240808095747-579da98fa7a6 h1:QrqPZPnJuJoYRFXL3aE4b+onLjjEUq8b3JjuptUkOoE =
87+ github.com/openstack-k8s-operators/lib-common/modules/common v0.4.1-0.20240808095747-579da98fa7a6 /go.mod h1:hCT/Ba8kRkRB23d07YEsCzELsYcJGpD/Uw4NDh+LD6w =
8888github.com/pkg/errors v0.8.1 /go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0 =
8989github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4 =
9090github.com/pkg/errors v0.9.1 /go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0 =
Original file line number Diff line number Diff line change @@ -269,20 +269,15 @@ func (r *MariaDBAccountReconciler) reconcileCreate(
269269 r .Client ,
270270 time .Duration (30 )* time .Second ,
271271 )
272- if err != nil {
272+ if ( err != nil || secretResult != ctrl. Result {}) {
273273
274274 instance .Status .Conditions .Set (condition .FalseCondition (
275275 databasev1beta1 .MariaDBAccountReadyCondition ,
276276 secret .ReasonSecretMissing ,
277277 condition .SeverityInfo ,
278278 databasev1beta1 .MariaDBAccountSecretNotReadyMessage , err ))
279279
280- if k8s_errors .IsNotFound (err ) {
281- return secretResult , nil
282- }
283-
284- return ctrl.Result {}, err
285-
280+ return secretResult , err
286281 }
287282
288283 log .Info (fmt .Sprintf ("Running account create '%s' MariaDBDatabase '%s'" , instance .Name , mariadbDatabaseName ))
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ require (
77 github.com/google/uuid v1.6.0
88 github.com/onsi/ginkgo/v2 v2.19.1
99 github.com/onsi/gomega v1.34.1
10- github.com/openstack-k8s-operators/lib-common/modules/common v0.4.1-0.20240730142703-7fd3da600c9d
10+ github.com/openstack-k8s-operators/lib-common/modules/common v0.4.1-0.20240808095747-579da98fa7a6
1111 github.com/openstack-k8s-operators/mariadb-operator/api v0.0.0-00010101000000-000000000000
1212 go.uber.org/zap v1.27.0
1313 golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56
Original file line number Diff line number Diff line change @@ -87,8 +87,8 @@ github.com/onsi/gomega v1.34.1 h1:EUMJIKUjM8sKjYbtxQI9A4z2o+rruxnzNvpknOXie6k=
8787github.com/onsi/gomega v1.34.1 /go.mod h1:kU1QgUvBDLXBJq618Xvm2LUX6rSAfRaFRTcdOeDLwwY =
8888github.com/openshift/api v0.0.0-20230414143018-3367bc7e6ac7 h1:rncLxJBpFGqBztyxCMwNRnMjhhIDOWHJowi6q8G6koI =
8989github.com/openshift/api v0.0.0-20230414143018-3367bc7e6ac7 /go.mod h1:ctXNyWanKEjGj8sss1KjjHQ3ENKFm33FFnS5BKaIPh4 =
90- github.com/openstack-k8s-operators/lib-common/modules/common v0.4.1-0.20240730142703-7fd3da600c9d h1:WfEUkOxDpMnnYo+mQTJc9juoY85me/V6ubNAsOHdjnc =
91- github.com/openstack-k8s-operators/lib-common/modules/common v0.4.1-0.20240730142703-7fd3da600c9d /go.mod h1:YlNmaOTuZNZvwlOfosPI94od/V2Itektn9KWThRzylI =
90+ github.com/openstack-k8s-operators/lib-common/modules/common v0.4.1-0.20240808095747-579da98fa7a6 h1:QrqPZPnJuJoYRFXL3aE4b+onLjjEUq8b3JjuptUkOoE =
91+ github.com/openstack-k8s-operators/lib-common/modules/common v0.4.1-0.20240808095747-579da98fa7a6 /go.mod h1:hCT/Ba8kRkRB23d07YEsCzELsYcJGpD/Uw4NDh+LD6w =
9292github.com/pkg/errors v0.8.1 /go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0 =
9393github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4 =
9494github.com/pkg/errors v0.9.1 /go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0 =
You can’t perform that action at this time.
0 commit comments