Skip to content

Commit

Permalink
Warn about deprecated commands
Browse files Browse the repository at this point in the history
These commands still work against 3.6 servers, but we should start
warning that they will stop working once 3.7 is used.

Signed-off-by: Simo Sorce <[email protected]>
  • Loading branch information
simo5 committed Oct 11, 2017
1 parent 36865f9 commit 7642124
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cmd/server/admin/overwrite_bootstrappolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func NewCommandOverwriteBootstrapPolicy(commandName string, fullName string, cre
}
kcmdutil.CheckErr(options.OverwriteBootstrapPolicy())
},
Deprecated: fmt.Sprintf("will not work against 3.7 servers"),
}

flags := cmd.Flags()
Expand Down
1 change: 1 addition & 0 deletions pkg/oc/admin/migrate/authorization/authorization.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func NewCmdMigrateAuthorization(name, fullName string, f *clientcmd.Factory, in
kcmdutil.CheckErr(options.Validate())
kcmdutil.CheckErr(options.Run())
},
Deprecated: fmt.Sprintf("will not work against 3.7 servers"),
}
return cmd
}
Expand Down
1 change: 1 addition & 0 deletions pkg/oc/cli/cmd/create/policy_binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func NewCmdCreatePolicyBinding(name, fullName string, f *clientcmd.Factory, out
cmdutil.CheckErr(o.Validate())
cmdutil.CheckErr(o.Run())
},
Deprecated: fmt.Sprintf("will not work against 3.7 servers. Use (Cluster)RoleBindings instead."),
}
cmdutil.AddOutputFlagsForMutation(cmd)
return cmd
Expand Down

0 comments on commit 7642124

Please sign in to comment.