Remove wwctl overlay <build|import> --setdefault
- Closes: #1335 Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
@@ -11,7 +11,6 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
ContainerNames: args,
|
||||
Force: BuildForce,
|
||||
All: BuildAll,
|
||||
Default: SetDefault,
|
||||
}
|
||||
return container.ContainerBuild(cbp)
|
||||
}
|
||||
|
||||
@@ -23,13 +23,11 @@ var (
|
||||
}
|
||||
BuildForce bool
|
||||
BuildAll bool
|
||||
SetDefault bool
|
||||
)
|
||||
|
||||
func init() {
|
||||
baseCmd.PersistentFlags().BoolVarP(&BuildAll, "all", "a", false, "(re)Build all VNFS images for all nodes")
|
||||
baseCmd.PersistentFlags().BoolVarP(&BuildForce, "force", "f", false, "Force rebuild, even if it isn't necessary")
|
||||
baseCmd.PersistentFlags().BoolVar(&SetDefault, "setdefault", false, "Set this container for the default profile")
|
||||
}
|
||||
|
||||
// GetRootCommand returns the root cobra.Command for the application.
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -29,7 +29,6 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
ContainerNames: []string{containerName},
|
||||
Force: true,
|
||||
All: false,
|
||||
Default: false,
|
||||
}
|
||||
err := container_build.ContainerBuild(cbp)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user