Skip to content

Commit 7213640

Browse files
Merge pull request #18469 from mfojtik/remove-openshift-admin
Automatic merge from submit-queue. cli: remove traces of openshift admin command Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1542332
2 parents d5f8d8b + 0e0974d commit 7213640

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

pkg/cmd/server/admin/create_bootstrappolicy_file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
const (
2626
DefaultPolicyFile = "openshift.local.config/master/policy.json"
2727
CreateBootstrapPolicyFileCommand = "create-bootstrap-policy-file"
28-
CreateBootstrapPolicyFileFullCommand = "openshift admin " + CreateBootstrapPolicyFileCommand
28+
CreateBootstrapPolicyFileFullCommand = "oc adm " + CreateBootstrapPolicyFileCommand
2929
)
3030

3131
type CreateBootstrapPolicyFileOptions struct {

pkg/cmd/server/admin/create_nodeconfig_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func executeNodeConfig(args []string) string {
107107
},
108108
}
109109

110-
root.AddCommand(NewCommandNodeConfig("create-node-config", "openshift admin", ioutil.Discard))
110+
root.AddCommand(NewCommandNodeConfig("create-node-config", "oc adm", ioutil.Discard))
111111
root.SetArgs(argsToUse)
112112
root.Execute()
113113

pkg/oc/admin/diagnostics/diagnostics/systemd/systemd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ ${component} and ${version}; any others will cause this error.
4949
This could be a typo or you might be intending to hardcode something,
5050
such as a version which should be specified as e.g. v3.0, not ${v3.0}.
5151
Note that the --images flag may be supplied via the master, node, or
52-
"openshift admin registry/router" invocations and should usually
52+
"oc adm registry/router" invocations and should usually
5353
be the same for each.`,
5454
}
5555

pkg/oc/admin/node/evacuate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func (e *EvacuateOptions) RunEvacuate(node *kapi.Node) error {
8080
// we may not be able to recover in some cases to mark the node back to schedulable. To avoid these cases, we recommend
8181
// user to explicitly set the node to schedulable/unschedulable.
8282
if !node.Spec.Unschedulable {
83-
return fmt.Errorf("Node '%s' must be unschedulable to perform evacuation.\nYou can mark the node unschedulable with 'openshift admin manage-node %s --schedulable=false'", node.ObjectMeta.Name, node.ObjectMeta.Name)
83+
return fmt.Errorf("Node '%s' must be unschedulable to perform evacuation.\nYou can mark the node unschedulable with 'oc adm manage-node %s --schedulable=false'", node.ObjectMeta.Name, node.ObjectMeta.Name)
8484
}
8585

8686
labelSelector, err := labels.Parse(e.Options.PodSelector)

0 commit comments

Comments
 (0)