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,8 +26,6 @@ import (
|
||||
|
||||
// TODO: comment
|
||||
var (
|
||||
DownReplicas int
|
||||
DownEmptyVols bool
|
||||
DownOpt kobject.ConvertOptions
|
||||
)
|
||||
|
||||
@ -39,10 +37,8 @@ var downCmd = &cobra.Command{
|
||||
|
||||
// Create the Convert options.
|
||||
DownOpt = kobject.ConvertOptions{
|
||||
Replicas: DownReplicas,
|
||||
InputFiles: GlobalFiles,
|
||||
Provider: strings.ToLower(GlobalProvider),
|
||||
EmptyVols: DownEmptyVols,
|
||||
}
|
||||
|
||||
// Validate before doing anything else.
|
||||
@ -54,7 +50,5 @@ var downCmd = &cobra.Command{
|
||||
}
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user