specgen: fix comment

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano
2024-12-20 09:31:15 +01:00
parent b4ef95590b
commit 1e0f03b046
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ const (
pastaType = "pasta" pastaType = "pasta"
) )
// KeepIDUserNsOptions defines how to keepIDmatically create a user namespace. // KeepIDUserNsOptions defines how to create a user namespace using keep-id.
type KeepIDUserNsOptions struct { type KeepIDUserNsOptions struct {
// UID is the target uid in the user namespace. // UID is the target uid in the user namespace.
UID *uint32 UID *uint32

View File

@ -56,7 +56,7 @@ const (
// Pasta indicates that a pasta network stack should be used. // Pasta indicates that a pasta network stack should be used.
// Only used with the network namespace, invalid otherwise. // Only used with the network namespace, invalid otherwise.
Pasta NamespaceMode = "pasta" Pasta NamespaceMode = "pasta"
// KeepId indicates a user namespace to keep the owner uid inside // KeepID indicates a user namespace to keep the owner uid inside
// of the namespace itself. // of the namespace itself.
// Only used with the user namespace, invalid otherwise. // Only used with the user namespace, invalid otherwise.
KeepID NamespaceMode = "keep-id" KeepID NamespaceMode = "keep-id"