Skip to content

Commit

Permalink
Update a comment
Browse files Browse the repository at this point in the history
... to match the 2017 docker/reference API migration.

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
  • Loading branch information
mtrmac committed Jul 18, 2023
1 parent 6f6aa20 commit 195bfa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/policyconfiguration/naming.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func DockerReferenceNamespaces(ref reference.Named) []string {
// then in its parent "docker.io/library"; in none of "busybox",
// un-namespaced "library" nor in "" supposedly implicitly representing "library/".
//
// ref.FullName() == ref.Hostname() + "/" + ref.RemoteName(), so the last
// ref.Name() == ref.Domain() + "/" + ref.Path(), so the last
// iteration matches the host name (for any namespace).
res := []string{}
name := ref.Name()
Expand Down

0 comments on commit 195bfa4

Please sign in to comment.