Skip to content

Commit

Permalink
podman-mount* flag should be used only on server installation
Browse files Browse the repository at this point in the history
  • Loading branch information
mbussolotto committed Apr 17, 2024
1 parent 1c27fac commit fd53a3e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mgradm/cmd/migrate/podman/podman.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ NOTE: migrating to a remote podman is not supported yet!
}

shared.AddMigrateFlags(migrateCmd)
podman_utils.AddPodmanInstallFlag(migrateCmd)
podman_utils.AddPodmanArgFlag(migrateCmd)

return migrateCmd
}
2 changes: 1 addition & 1 deletion mgradm/cmd/upgrade/podman/podman.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func NewCommand(globalFlags *types.GlobalFlags) *cobra.Command {
upgradeCmd.AddCommand(listCmd)

shared.AddUpgradeFlags(upgradeCmd)
podman.AddPodmanInstallFlag(upgradeCmd)
podman.AddPodmanArgFlag(upgradeCmd)

return upgradeCmd
}
2 changes: 1 addition & 1 deletion mgrpxy/cmd/install/podman/podman.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ NOTE: for now installing on a remote podman is not supported!
}

utils.AddInstallFlags(podmanCmd)
podman.AddPodmanInstallFlag(podmanCmd)
podman.AddPodmanArgFlag(podmanCmd)

return podmanCmd
}
8 changes: 6 additions & 2 deletions shared/podman/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,14 @@ type PodmanMountFlags struct {
Spacewalk string
}

// AddPodmanInstallFlag add the podman arguments to a command.
func AddPodmanInstallFlag(cmd *cobra.Command) {
// AddPodmanArgFlag add the podman arguments to a command.
func AddPodmanArgFlag(cmd *cobra.Command) {
cmd.Flags().StringSlice("podman-arg", []string{}, L("Extra arguments to pass to podman"))
}

// AddPodmanInstallFlag add the podman install arguments to a command.
func AddPodmanInstallFlag(cmd *cobra.Command) {
AddPodmanArgFlag(cmd)
cmd.Flags().String("podman-mount-cache", "", L("Path to custom /var/cache volume"))
cmd.Flags().String("podman-mount-postgresql", "", L("Path to custom /var/lib/pgsql volume"))
cmd.Flags().String("podman-mount-spacewalk", "", L("Path to custom /var/spacewalk volume"))
Expand Down
1 change: 1 addition & 0 deletions uyuni-tools.changes.mbussolotto.path_volume_flag
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- podman-mount* flag should be used only on server installation

0 comments on commit fd53a3e

Please sign in to comment.