Remove wwctl overlay <build|import> --setdefault

- Closes: #1335

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2024-12-24 22:32:04 -07:00
parent 3bbe859e07
commit d0f4eaa9bb
9 changed files with 349 additions and 436 deletions

View File

@@ -20,7 +20,6 @@ func CobraRunE(cmd *cobra.Command, args []string) (err error) {
Force: SetForce,
Update: SetUpdate,
Build: SetBuild,
Default: SetDefault,
SyncUser: SyncUser,
OciNoHttps: OciNoHttps,
OciUsername: OciUsername,

View File

@@ -32,7 +32,6 @@ Imported containers are used to create bootable VNFS images.`,
SetForce bool
SetUpdate bool
SetBuild bool
SetDefault bool
SyncUser bool
OciNoHttps bool
OciUsername string
@@ -44,7 +43,6 @@ func init() {
baseCmd.PersistentFlags().BoolVarP(&SetForce, "force", "f", false, "Force overwrite of an existing container")
baseCmd.PersistentFlags().BoolVarP(&SetUpdate, "update", "u", false, "Update and overwrite an existing container")
baseCmd.PersistentFlags().BoolVarP(&SetBuild, "build", "b", false, "Build container after pulling")
baseCmd.PersistentFlags().BoolVar(&SetDefault, "setdefault", false, "Set this container for the default profile")
baseCmd.PersistentFlags().BoolVar(&SyncUser, "syncuser", false, "Synchronize UIDs/GIDs from host to container")
baseCmd.PersistentFlags().BoolVar(&OciNoHttps, "nohttps", false, "Ignore wrong TLS certificates, superseedes env WAREWULF_OCI_NOHTTPS")
baseCmd.PersistentFlags().StringVar(&OciUsername, "username", "", "Set username for the access to the registry, superseedes env WAREWULF_OCI_USERNAME")