forked from LaconicNetwork/kompose
Merge pull request #523 from cdrage/remove-unused-flags-from-down
Remove unused parameters from Kompose down
This commit is contained in:
commit
1c789c5a93
@ -26,9 +26,7 @@ import (
|
|||||||
|
|
||||||
// TODO: comment
|
// TODO: comment
|
||||||
var (
|
var (
|
||||||
DownReplicas int
|
DownOpt kobject.ConvertOptions
|
||||||
DownEmptyVols bool
|
|
||||||
DownOpt kobject.ConvertOptions
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var downCmd = &cobra.Command{
|
var downCmd = &cobra.Command{
|
||||||
@ -39,10 +37,8 @@ var downCmd = &cobra.Command{
|
|||||||
|
|
||||||
// Create the Convert options.
|
// Create the Convert options.
|
||||||
DownOpt = kobject.ConvertOptions{
|
DownOpt = kobject.ConvertOptions{
|
||||||
Replicas: DownReplicas,
|
|
||||||
InputFiles: GlobalFiles,
|
InputFiles: GlobalFiles,
|
||||||
Provider: strings.ToLower(GlobalProvider),
|
Provider: strings.ToLower(GlobalProvider),
|
||||||
EmptyVols: DownEmptyVols,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate before doing anything else.
|
// Validate before doing anything else.
|
||||||
@ -54,7 +50,5 @@ var downCmd = &cobra.Command{
|
|||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
downCmd.Flags().BoolVar(&DownEmptyVols, "emptyvols", false, "Use Empty Volumes. Do not generate PVCs")
|
|
||||||
downCmd.Flags().IntVar(&DownReplicas, "replicas", 1, "Specify the number of repliaces in the generate resource spec")
|
|
||||||
RootCmd.AddCommand(downCmd)
|
RootCmd.AddCommand(downCmd)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user