@@ -118,7 +118,7 @@ func (r *IronicReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res
118118
119119 // Fetch the Ironic instance
120120 instance := & ironicv1.Ironic {}
121- err := r .Client . Get (ctx , req .NamespacedName , instance )
121+ err := r .Get (ctx , req .NamespacedName , instance )
122122 if err != nil {
123123 if k8s_errors .IsNotFound (err ) {
124124 // Request object not found, could have been deleted after reconcile request.
@@ -249,7 +249,7 @@ func (r *IronicReconciler) findObjectForSrc(ctx context.Context, src client.Obje
249249 listOps := & client.ListOptions {
250250 Namespace : src .GetNamespace (),
251251 }
252- err := r .Client . List (ctx , crList , listOps )
252+ err := r .List (ctx , crList , listOps )
253253 if err != nil {
254254 Log .Error (err , fmt .Sprintf ("listing %s for namespace: %s" , crList .GroupVersionKind ().Kind , src .GetNamespace ()))
255255 return requests
@@ -913,7 +913,7 @@ func (r *IronicReconciler) generateServiceConfigMaps(
913913 cmLabels := labels .GetLabels (instance , labels .GetGroupLabel (ironic .ServiceName ), map [string ]string {})
914914
915915 var tlsCfg * tls.Service
916- if instance .Spec .IronicAPI .TLS .Ca . CaBundleSecretName != "" {
916+ if instance .Spec .IronicAPI .TLS .CaBundleSecretName != "" {
917917 tlsCfg = & tls.Service {}
918918 }
919919
@@ -1119,13 +1119,13 @@ func (r *IronicReconciler) inspectorDeploymentDelete(
11191119 return err
11201120 }
11211121 deploymentObjectKey := client .ObjectKeyFromObject (deployment )
1122- if err := r .Client . Get (ctx , deploymentObjectKey , deployment ); err != nil {
1122+ if err := r .Get (ctx , deploymentObjectKey , deployment ); err != nil {
11231123 if k8s_errors .IsNotFound (err ) {
11241124 return nil
11251125 }
11261126 return err
11271127 }
1128- if err := r .Client . Delete (ctx , deployment ); err != nil {
1128+ if err := r .Delete (ctx , deployment ); err != nil {
11291129 return err
11301130 }
11311131 // Remove inspector APIEndpoints, Services and set ReadyCount 0
@@ -1196,13 +1196,13 @@ func (r *IronicReconciler) ironicNeutronAgentDeploymentDelete(
11961196 return err
11971197 }
11981198 deploymentObjectKey := client .ObjectKeyFromObject (deployment )
1199- if err := r .Client . Get (ctx , deploymentObjectKey , deployment ); err != nil {
1199+ if err := r .Get (ctx , deploymentObjectKey , deployment ); err != nil {
12001200 if k8s_errors .IsNotFound (err ) {
12011201 return nil
12021202 }
12031203 return err
12041204 }
1205- if err := r .Client . Delete (ctx , deployment ); err != nil {
1205+ if err := r .Delete (ctx , deployment ); err != nil {
12061206 return err
12071207 }
12081208 // Set ReadyCount 0
@@ -1311,7 +1311,7 @@ func (r *IronicReconciler) checkIronicAPIGeneration(
13111311 listOpts := []client.ListOption {
13121312 client .InNamespace (instance .Namespace ),
13131313 }
1314- if err := r .Client . List (context .Background (), api , listOpts ... ); err != nil {
1314+ if err := r .List (context .Background (), api , listOpts ... ); err != nil {
13151315 Log .Error (err , "Unable to retrieve IronicAPI CR %w" )
13161316 return false , err
13171317 }
@@ -1332,7 +1332,7 @@ func (r *IronicReconciler) checkIronicConductorGeneration(
13321332 listOpts := []client.ListOption {
13331333 client .InNamespace (instance .Namespace ),
13341334 }
1335- if err := r .Client . List (context .Background (), cnd , listOpts ... ); err != nil {
1335+ if err := r .List (context .Background (), cnd , listOpts ... ); err != nil {
13361336 Log .Error (err , "Unable to retrieve IronicConductor CR %w" )
13371337 return false , err
13381338 }
@@ -1353,7 +1353,7 @@ func (r *IronicReconciler) checkIronicInspectorGeneration(
13531353 listOpts := []client.ListOption {
13541354 client .InNamespace (instance .Namespace ),
13551355 }
1356- if err := r .Client . List (context .Background (), nsp , listOpts ... ); err != nil {
1356+ if err := r .List (context .Background (), nsp , listOpts ... ); err != nil {
13571357 Log .Error (err , "Unable to retrieve IronicInspector CR %w" )
13581358 return false , err
13591359 }
@@ -1374,7 +1374,7 @@ func (r *IronicReconciler) checkNeutronAgentGeneration(
13741374 listOpts := []client.ListOption {
13751375 client .InNamespace (instance .Namespace ),
13761376 }
1377- if err := r .Client . List (context .Background (), ag , listOpts ... ); err != nil {
1377+ if err := r .List (context .Background (), ag , listOpts ... ); err != nil {
13781378 Log .Error (err , "Unable to retrieve IronicNeutronAgent CR %w" )
13791379 return false , err
13801380 }
0 commit comments