Skip to content

Commit

Permalink
fix: get rollout always return not found except default namespace (ar…
Browse files Browse the repository at this point in the history
…goproj#961)

Signed-off-by: zhouchencheng <[email protected]>
  • Loading branch information
zcc35357949 authored and zhaozhiqiang committed Feb 11, 2021
1 parent 8c78561 commit 4f75077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kubectl-argo-rollouts/cmd/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ const (

// NewCmdCreate returns a new instance of an `rollouts create` command
func NewCmdCreate(o *options.ArgoRolloutsOptions) *cobra.Command {
o.DynamicClientset()
createOptions := CreateOptions{
ArgoRolloutsOptions: *o,
}
Expand All @@ -78,6 +77,7 @@ func NewCmdCreate(o *options.ArgoRolloutsOptions) *cobra.Command {
Example: o.Example(createExample),
SilenceUsage: true,
RunE: func(c *cobra.Command, args []string) error {
createOptions.DynamicClientset()
if len(createOptions.Files) == 0 {
return o.UsageErr(c)
}
Expand Down

0 comments on commit 4f75077

Please sign in to comment.