Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/openshift/oc

go 1.25.6
go 1.25.12

require (
al.essio.dev/pkg/shellescape v1.6.0
Expand Down
7 changes: 3 additions & 4 deletions pkg/cli/admin/top/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,12 @@ func addImageStreamsToGraph(g genericgraph.Graph, streams *imagev1.ImageStreamLi
imageStreamNode := isNode.(*imagegraph.ImageStreamNode)

// connect IS with underlying images
for tag, history := range stream.Status.Tags {
for i := range history.Items {
image := history.Items[i]
for _, history := range stream.Status.Tags {
for i, image := range history.Items {
imageNode := imagegraph.FindImage(g, image.Image)
if imageNode == nil {
klog.V(2).Infof("Unable to find image %q in graph (from tag=%q, dockerImageReference=%s)",
history.Items[i].Image, tag, image.DockerImageReference)
history.Items[i].Image, history.Tag, image.DockerImageReference)
continue
}
klog.V(4).Infof("Adding edge from %q to %q", imageStreamNode.UniqueName(), imageNode.UniqueName())
Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/process/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ func (o *ProcessOptions) RunProcess() error {
return nil
})
if len(duplicatedKeys) != 0 {
return o.usageErrorFn(fmt.Sprintf("The following parameters were provided more than once: %s", strings.Join(duplicatedKeys.List(), ", ")))
return o.usageErrorFn("The following parameters were provided more than once: %s", strings.Join(duplicatedKeys.List(), ", "))
}

if len(o.templateName) == 0 && len(o.filename) == 0 {
Expand Down