@@ -54,16 +54,16 @@ func TestEKSConfigReconciler(t *testing.T) {
5454 reconciler := EKSConfigReconciler {
5555 Client : testEnv .Client ,
5656 }
57- t .Logf (fmt . Sprintf ( "Calling reconcile on cluster '%s' and config '%s' should requeue" , cluster .Name , config .Name ) )
57+ t .Logf ("Calling reconcile on cluster '%s' and config '%s' should requeue" , cluster .Name , config .Name )
5858 g .Eventually (func (gomega Gomega ) {
5959 err := reconciler .joinWorker (ctx , cluster , config , configOwner ("Machine" ))
6060 gomega .Expect (err ).NotTo (HaveOccurred ())
6161 }).Should (Succeed ())
6262
63- t .Logf (fmt . Sprintf ( "Secret '%s' should exist and be correct" , config .Name ) )
63+ t .Logf ("Secret '%s' should exist and be correct" , config .Name )
6464 secretList := & corev1.SecretList {}
6565 testEnv .Client .List (ctx , secretList )
66- t .Logf (dump ("secrets" , secretList ))
66+ t .Log (dump ("secrets" , secretList ))
6767 secret := & corev1.Secret {}
6868 g .Eventually (func (gomega Gomega ) {
6969 gomega .Expect (testEnv .Client .Get (ctx , client.ObjectKey {
@@ -91,10 +91,10 @@ func TestEKSConfigReconciler(t *testing.T) {
9191 },
9292 }
9393 config .Status .DataSecretName = & mp .Name
94- t .Logf (dump ("amcp" , amcp ))
95- t .Logf (dump ("config" , config ))
96- t .Logf (dump ("machinepool" , mp ))
97- t .Logf (dump ("cluster" , cluster ))
94+ t .Log (dump ("amcp" , amcp ))
95+ t .Log (dump ("config" , config ))
96+ t .Log (dump ("machinepool" , mp ))
97+ t .Log (dump ("cluster" , cluster ))
9898 oldUserData , err := newUserData (cluster .Name , map [string ]string {"test-arg" : "test-value" })
9999 g .Expect (err ).To (BeNil ())
100100 expectedUserData , err := newUserData (cluster .Name , map [string ]string {"test-arg" : "updated-test-value" })
@@ -103,21 +103,21 @@ func TestEKSConfigReconciler(t *testing.T) {
103103
104104 amcpList := & ekscontrolplanev1.AWSManagedControlPlaneList {}
105105 testEnv .Client .List (ctx , amcpList )
106- t .Logf (dump ("stored-amcps" , amcpList ))
106+ t .Log (dump ("stored-amcps" , amcpList ))
107107
108108 reconciler := EKSConfigReconciler {
109109 Client : testEnv .Client ,
110110 }
111- t .Logf (fmt . Sprintf ( "Calling reconcile on cluster '%s' and config '%s' should requeue" , cluster .Name , config .Name ) )
111+ t .Logf ("Calling reconcile on cluster '%s' and config '%s' should requeue" , cluster .Name , config .Name )
112112 g .Eventually (func (gomega Gomega ) {
113113 err := reconciler .joinWorker (ctx , cluster , config , configOwner ("MachinePool" ))
114114 gomega .Expect (err ).NotTo (HaveOccurred ())
115115 }).Should (Succeed ())
116116
117- t .Logf (fmt . Sprintf ( "Secret '%s' should exist and be correct" , config .Name ) )
117+ t .Logf ("Secret '%s' should exist and be correct" , config .Name )
118118 secretList := & corev1.SecretList {}
119119 testEnv .Client .List (ctx , secretList )
120- t .Logf (dump ("secrets" , secretList ))
120+ t .Log (dump ("secrets" , secretList ))
121121
122122 secret := & corev1.Secret {}
123123 g .Eventually (func (gomega Gomega ) {
@@ -132,15 +132,15 @@ func TestEKSConfigReconciler(t *testing.T) {
132132 config .Spec .KubeletExtraArgs = map [string ]string {
133133 "test-arg" : "updated-test-value" ,
134134 }
135- t .Logf (dump ("config" , config ))
135+ t .Log (dump ("config" , config ))
136136 g .Eventually (func (gomega Gomega ) {
137137 err := reconciler .joinWorker (ctx , cluster , config , configOwner ("MachinePool" ))
138138 gomega .Expect (err ).NotTo (HaveOccurred ())
139139 }).Should (Succeed ())
140- t .Logf (fmt . Sprintf ( "Secret '%s' should exist and be up to date" , config .Name ) )
140+ t .Logf ("Secret '%s' should exist and be up to date" , config .Name )
141141
142142 testEnv .Client .List (ctx , secretList )
143- t .Logf (dump ("secrets" , secretList ))
143+ t .Log (dump ("secrets" , secretList ))
144144 g .Eventually (func (gomega Gomega ) {
145145 gomega .Expect (testEnv .Client .Get (ctx , client.ObjectKey {
146146 Name : config .Name ,
@@ -156,10 +156,10 @@ func TestEKSConfigReconciler(t *testing.T) {
156156 cluster := newCluster (amcp .Name )
157157 machine := newMachine (cluster , "test-machine" )
158158 config := newEKSConfig (machine )
159- t .Logf (dump ("amcp" , amcp ))
160- t .Logf (dump ("config" , config ))
161- t .Logf (dump ("machine" , machine ))
162- t .Logf (dump ("cluster" , cluster ))
159+ t .Log (dump ("amcp" , amcp ))
160+ t .Log (dump ("config" , config ))
161+ t .Log (dump ("machine" , machine ))
162+ t .Log (dump ("cluster" , cluster ))
163163 expectedUserData , err := newUserData (cluster .Name , map [string ]string {"test-arg" : "test-value" })
164164 g .Expect (err ).To (BeNil ())
165165 g .Expect (testEnv .Client .Create (ctx , amcp )).To (Succeed ())
@@ -174,21 +174,21 @@ func TestEKSConfigReconciler(t *testing.T) {
174174
175175 amcpList := & ekscontrolplanev1.AWSManagedControlPlaneList {}
176176 testEnv .Client .List (ctx , amcpList )
177- t .Logf (dump ("stored-amcps" , amcpList ))
177+ t .Log (dump ("stored-amcps" , amcpList ))
178178
179179 reconciler := EKSConfigReconciler {
180180 Client : testEnv .Client ,
181181 }
182- t .Logf (fmt . Sprintf ( "Calling reconcile on cluster '%s' and config '%s' should requeue" , cluster .Name , config .Name ) )
182+ t .Logf ("Calling reconcile on cluster '%s' and config '%s' should requeue" , cluster .Name , config .Name )
183183 g .Eventually (func (gomega Gomega ) {
184184 err := reconciler .joinWorker (ctx , cluster , config , configOwner ("Machine" ))
185185 gomega .Expect (err ).NotTo (HaveOccurred ())
186186 }).Should (Succeed ())
187187
188- t .Logf (fmt . Sprintf ( "Secret '%s' should exist and be out of date" , config .Name ) )
188+ t .Logf ("Secret '%s' should exist and be out of date" , config .Name )
189189 secretList := & corev1.SecretList {}
190190 testEnv .Client .List (ctx , secretList )
191- t .Logf (dump ("secrets" , secretList ))
191+ t .Log (dump ("secrets" , secretList ))
192192
193193 secret = & corev1.Secret {}
194194 g .Eventually (func (gomega Gomega ) {
@@ -226,11 +226,11 @@ func TestEKSConfigReconciler(t *testing.T) {
226226 "secretKey" : []byte (secretContent ),
227227 },
228228 }
229- t .Logf (dump ("amcp" , amcp ))
230- t .Logf (dump ("config" , config ))
231- t .Logf (dump ("machine" , machine ))
232- t .Logf (dump ("cluster" , cluster ))
233- t .Logf (dump ("secret" , secret ))
229+ t .Log (dump ("amcp" , amcp ))
230+ t .Log (dump ("config" , config ))
231+ t .Log (dump ("machine" , machine ))
232+ t .Log (dump ("cluster" , cluster ))
233+ t .Log (dump ("secret" , secret ))
234234 g .Expect (testEnv .Client .Create (ctx , secret )).To (Succeed ())
235235 g .Expect (testEnv .Client .Create (ctx , amcp )).To (Succeed ())
236236
@@ -252,15 +252,15 @@ func TestEKSConfigReconciler(t *testing.T) {
252252 reconciler := EKSConfigReconciler {
253253 Client : testEnv .Client ,
254254 }
255- t .Logf (fmt . Sprintf ( "Calling reconcile on cluster '%s' and config '%s' should requeue" , cluster .Name , config .Name ) )
255+ t .Logf ("Calling reconcile on cluster '%s' and config '%s' should requeue" , cluster .Name , config .Name )
256256 g .Eventually (func (gomega Gomega ) {
257257 err := reconciler .joinWorker (ctx , cluster , config , configOwner ("Machine" ))
258258 gomega .Expect (err ).NotTo (HaveOccurred ())
259259 }).Should (Succeed ())
260260
261261 secretList := & corev1.SecretList {}
262262 testEnv .Client .List (ctx , secretList )
263- t .Logf (dump ("secrets" , secretList ))
263+ t .Log (dump ("secrets" , secretList ))
264264 gotSecret := & corev1.Secret {}
265265 g .Eventually (func (gomega Gomega ) {
266266 gomega .Expect (testEnv .Client .Get (ctx , client.ObjectKey {
0 commit comments