Skip to content

Commit d6248ac

Browse files
committed
Refactor: Change function loadNetOpts from public to private
Signed-off-by: Pedro Aibar <[email protected]>
1 parent 842be9a commit d6248ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/cmd/container/create.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func Create(ctx context.Context, client *containerd.Client, args []string, netMa
248248
envs = append(envs, "HOSTNAME="+netLabelOpts.Hostname)
249249
opts = append(opts, oci.WithEnv(envs))
250250

251-
internalLabels.LoadNetOpts(netLabelOpts)
251+
internalLabels.loadNetOpts(netLabelOpts)
252252

253253
// NOTE: OCI hooks are currently not supported on Windows so we skip setting them altogether.
254254
// The OCI hooks we define (whose logic can be found in pkg/ocihook) primarily
@@ -726,8 +726,8 @@ func withInternalLabels(internalLabels internalLabels) (containerd.NewContainerO
726726
return containerd.WithAdditionalContainerLabels(m), nil
727727
}
728728

729-
// LoadNetOpts loads network options into InternalLabels.
730-
func (il *internalLabels) LoadNetOpts(opts types.NetworkOptions) {
729+
// loadNetOpts loads network options into InternalLabels.
730+
func (il *internalLabels) loadNetOpts(opts types.NetworkOptions) {
731731
il.hostname = opts.Hostname
732732
il.ports = opts.PortMappings
733733
il.ipAddress = opts.IPAddress

0 commit comments

Comments
 (0)