Skip to content

Commit cfb11b3

Browse files
authored
Update provision nginx log statement to be more clear (#3968)
The current provision nginx log statement doesn't state the object names for the objects that are being updated, only the name of the nginx resource. This change includes the object names in the log so users can see what resources are being updated.
1 parent 4fb351e commit cfb11b3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

internal/controller/provisioner/provisioner.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,16 @@ func (p *NginxProvisioner) provisionNginx(
224224
return nil
225225
}
226226

227+
objNames := make([]string, 0, len(objects))
228+
for _, obj := range objects {
229+
objNames = append(objNames, obj.GetName())
230+
}
231+
227232
p.cfg.Logger.Info(
228233
"Creating/Updating nginx resources",
229234
"namespace", gateway.GetNamespace(),
230-
"name", resourceName,
235+
"nginx resource name", resourceName,
236+
"resource names", objNames,
231237
)
232238

233239
var agentConfigMapUpdated, deploymentCreated bool

0 commit comments

Comments
 (0)