Skip to content

Commit 019702d

Browse files
Merge pull request #17486 from juanvallejo/jvallejo/move-ex-cmds-to-pkg-oc
Automatic merge from submit-queue. move "openshift ex" -> "oc ex" Moves the experimental command group to `oc` in order to break deps on `pkg/oc` in packages outside of that subtree. Part of #17309 and #17356 Release-Note: `Experimental commands moved from the "openshift" parent to the "oc" parent` cc @deads2k @liggitt
2 parents 6f2ba91 + 7c3a54e commit 019702d

29 files changed

+1231
-1297
lines changed

contrib/completions/bash/oc

Lines changed: 578 additions & 0 deletions
Large diffs are not rendered by default.

contrib/completions/bash/openshift

Lines changed: 0 additions & 605 deletions
Large diffs are not rendered by default.

contrib/completions/zsh/oc

Lines changed: 578 additions & 0 deletions
Large diffs are not rendered by default.

contrib/completions/zsh/openshift

Lines changed: 0 additions & 605 deletions
Large diffs are not rendered by default.

docs/cli_hacking_guide.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Commands are organized in the package structure as:
2929

3030
* https://github.com/openshift/origin/tree/master/pkg/oc[pkg/oc]
3131
** https://github.com/openshift/origin/tree/master/pkg/oc/cli[pkg/cmd/cli] - `oc` or `openshift cli`, and `kubectl` commands.
32-
** https://github.com/openshift/origin/tree/master/pkg/oc/experimental[pkg/cmd/experimental] - `openshift ex` command.
32+
** https://github.com/openshift/origin/tree/master/pkg/oc/experimental[pkg/cmd/experimental] - `oc ex` command.
3333

3434
=== Command Structure
3535

docs/man/man1/.files_generated_oc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,18 @@ oc-deploy.1
167167
oc-describe.1
168168
oc-edit.1
169169
oc-env.1
170+
oc-ex-build-chain.1
171+
oc-ex-config-patch.1
172+
oc-ex-config.1
173+
oc-ex-diagnostics.1
174+
oc-ex-dockergc.1
175+
oc-ex-ipfailover.1
176+
oc-ex-options.1
177+
oc-ex-prune-groups.1
178+
oc-ex-sync-groups.1
179+
oc-ex-validate-master-config.1
180+
oc-ex-validate-node-config.1
181+
oc-ex-validate.1
170182
oc-ex.1
171183
oc-exec.1
172184
oc-explain.1

docs/man/man1/.files_generated_openshift

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,4 @@
11
openshift-completion.1
2-
openshift-ex-build-chain.1
3-
openshift-ex-config-patch.1
4-
openshift-ex-config.1
5-
openshift-ex-diagnostics.1
6-
openshift-ex-dockergc.1
7-
openshift-ex-ipfailover.1
8-
openshift-ex-options.1
9-
openshift-ex-prune-groups.1
10-
openshift-ex-sync-groups.1
11-
openshift-ex-validate-master-config.1
12-
openshift-ex-validate-node-config.1
13-
openshift-ex-validate.1
14-
openshift-ex.1
152
openshift-options.1
163
openshift-start-etcd.1
174
openshift-start-master-api.1
File renamed without changes.
File renamed without changes.

docs/man/man1/openshift-ex.1

Lines changed: 0 additions & 3 deletions
This file was deleted.

hack/lib/start.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,13 @@ readonly -f os::start::internal::configure_master
161161
function os::start::internal::patch_master_config() {
162162
local sudo=${USE_SUDO:+sudo}
163163
cp "${SERVER_CONFIG_DIR}/master/master-config.yaml" "${SERVER_CONFIG_DIR}/master/master-config.orig.yaml"
164-
openshift ex config patch "${SERVER_CONFIG_DIR}/master/master-config.orig.yaml" --patch="{\"etcdConfig\": {\"address\": \"${API_HOST}:${ETCD_PORT}\"}}" | \
165-
openshift ex config patch - --patch="{\"etcdConfig\": {\"servingInfo\": {\"bindAddress\": \"${API_HOST}:${ETCD_PORT}\"}}}" | \
166-
openshift ex config patch - --type json --patch="[{\"op\": \"replace\", \"path\": \"/etcdClientInfo/urls\", \"value\": [\"${API_SCHEME}://${API_HOST}:${ETCD_PORT}\"]}]" | \
167-
openshift ex config patch - --patch="{\"etcdConfig\": {\"peerAddress\": \"${API_HOST}:${ETCD_PEER_PORT}\"}}" | \
168-
openshift ex config patch - --patch="{\"etcdConfig\": {\"peerServingInfo\": {\"bindAddress\": \"${API_HOST}:${ETCD_PEER_PORT}\"}}}" | \
169-
openshift ex config patch - --patch="{\"auditConfig\": {\"enabled\": true}}" | \
170-
openshift ex config patch - --patch="{\"imagePolicyConfig\": {\"maxImagesBulkImportedPerRepository\": ${MAX_IMAGES_BULK_IMPORTED_PER_REPOSITORY:-5}}}" > "${SERVER_CONFIG_DIR}/master/master-config.yaml"
164+
oc ex config patch "${SERVER_CONFIG_DIR}/master/master-config.orig.yaml" --patch="{\"etcdConfig\": {\"address\": \"${API_HOST}:${ETCD_PORT}\"}}" | \
165+
oc ex config patch - --patch="{\"etcdConfig\": {\"servingInfo\": {\"bindAddress\": \"${API_HOST}:${ETCD_PORT}\"}}}" | \
166+
oc ex config patch - --type json --patch="[{\"op\": \"replace\", \"path\": \"/etcdClientInfo/urls\", \"value\": [\"${API_SCHEME}://${API_HOST}:${ETCD_PORT}\"]}]" | \
167+
oc ex config patch - --patch="{\"etcdConfig\": {\"peerAddress\": \"${API_HOST}:${ETCD_PEER_PORT}\"}}" | \
168+
oc ex config patch - --patch="{\"etcdConfig\": {\"peerServingInfo\": {\"bindAddress\": \"${API_HOST}:${ETCD_PEER_PORT}\"}}}" | \
169+
oc ex config patch - --patch="{\"auditConfig\": {\"enabled\": true}}" | \
170+
oc ex config patch - --patch="{\"imagePolicyConfig\": {\"maxImagesBulkImportedPerRepository\": ${MAX_IMAGES_BULK_IMPORTED_PER_REPOSITORY:-5}}}" > "${SERVER_CONFIG_DIR}/master/master-config.yaml"
171171

172172
# Make oc use ${MASTER_CONFIG_DIR}/admin.kubeconfig, and ignore anything in the running user's $HOME dir
173173
export ADMIN_KUBECONFIG="${MASTER_CONFIG_DIR}/admin.kubeconfig"

pkg/cmd/openshift/openshift.go

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,8 @@ import (
2020
"github.com/openshift/origin/pkg/cmd/server/start"
2121
"github.com/openshift/origin/pkg/cmd/templates"
2222
cmdutil "github.com/openshift/origin/pkg/cmd/util"
23-
"github.com/openshift/origin/pkg/oc/admin"
24-
diagnostics "github.com/openshift/origin/pkg/oc/admin/diagnostics"
25-
sync "github.com/openshift/origin/pkg/oc/admin/groups/sync/cli"
26-
"github.com/openshift/origin/pkg/oc/admin/validate"
2723
"github.com/openshift/origin/pkg/oc/cli/cmd"
2824
"github.com/openshift/origin/pkg/oc/cli/util/clientcmd"
29-
"github.com/openshift/origin/pkg/oc/experimental/buildchain"
30-
configcmd "github.com/openshift/origin/pkg/oc/experimental/config"
31-
"github.com/openshift/origin/pkg/oc/experimental/dockergc"
32-
exipfailover "github.com/openshift/origin/pkg/oc/experimental/ipfailover"
3325
)
3426

3527
var (
@@ -103,7 +95,6 @@ func NewCommandOpenShift(name string) *cobra.Command {
10395

10496
startAllInOne, _ := start.NewCommandStartAllInOne(name, out, errout)
10597
root.AddCommand(startAllInOne)
106-
root.AddCommand(newExperimentalCommand("ex", name+" ex"))
10798
root.AddCommand(newCompletionCommand("completion", name+" completion"))
10899
root.AddCommand(cmd.NewCmdVersion(name, f, out, cmd.VersionOptions{PrintEtcdVersion: true, IsServer: true}))
109100
root.AddCommand(cmd.NewCmdOptions(out))
@@ -114,39 +105,6 @@ func NewCommandOpenShift(name string) *cobra.Command {
114105
return root
115106
}
116107

117-
func newExperimentalCommand(name, fullName string) *cobra.Command {
118-
out := os.Stdout
119-
errout := os.Stderr
120-
121-
experimental := &cobra.Command{
122-
Use: name,
123-
Short: "Experimental commands under active development",
124-
Long: "The commands grouped here are under development and may change without notice.",
125-
Run: func(c *cobra.Command, args []string) {
126-
c.SetOutput(out)
127-
c.Help()
128-
},
129-
BashCompletionFunction: admin.BashCompletionFunc,
130-
}
131-
132-
f := clientcmd.New(experimental.PersistentFlags())
133-
134-
experimental.AddCommand(validate.NewCommandValidate(validate.ValidateRecommendedName, fullName+" "+validate.ValidateRecommendedName, out, errout))
135-
experimental.AddCommand(exipfailover.NewCmdIPFailoverConfig(f, fullName, "ipfailover", out, errout))
136-
experimental.AddCommand(dockergc.NewCmdDockerGCConfig(f, fullName, "dockergc", out, errout))
137-
experimental.AddCommand(buildchain.NewCmdBuildChain(name, fullName+" "+buildchain.BuildChainRecommendedCommandName, f, out))
138-
experimental.AddCommand(configcmd.NewCmdConfig(configcmd.ConfigRecommendedName, fullName+" "+configcmd.ConfigRecommendedName, f, out, errout))
139-
deprecatedDiag := diagnostics.NewCmdDiagnostics(diagnostics.DiagnosticsRecommendedName, fullName+" "+diagnostics.DiagnosticsRecommendedName, out)
140-
deprecatedDiag.Deprecated = fmt.Sprintf(`use "oc adm %[1]s" to run diagnostics instead.`, diagnostics.DiagnosticsRecommendedName)
141-
experimental.AddCommand(deprecatedDiag)
142-
experimental.AddCommand(cmd.NewCmdOptions(out))
143-
144-
// these groups also live under `oc adm groups {sync,prune}` and are here only for backwards compatibility
145-
experimental.AddCommand(sync.NewCmdSync("sync-groups", fullName+" "+"sync-groups", f, out))
146-
experimental.AddCommand(sync.NewCmdPrune("prune-groups", fullName+" "+"prune-groups", f, out))
147-
return experimental
148-
}
149-
150108
var (
151109
completion_long = ktemplates.LongDesc(`
152110
Output shell completion code for the given shell (bash or zsh).

pkg/oc/admin/diagnostics/diagnostics/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ logic. This provides two major benefits:
5252
Having configuration files where ansible places them means you will generally
5353
not even need to specify where to find them. Running:
5454

55-
openshift ex diagnostics
55+
oc ex diagnostics
5656

5757
by itself will look for master and node configs (in addition to client
5858
config file) in the standard locations and use them if found; so this
5959
should make the ansible-installed use case as simple as possible. It's also
6060
very easy to use configuration files when they are not in the expected
6161
Enterprise locations:
6262

63-
openshift ex diagnostics --master-config=... --node-config=...
63+
oc ex diagnostics --master-config=... --node-config=...
6464

6565
Having logs in journald is necessary for the current log analysis
6666
logic. Other usage may have logs going into files, output to stdout,

pkg/oc/cli/cli.go

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ import (
1717
"github.com/openshift/origin/pkg/cmd/templates"
1818
"github.com/openshift/origin/pkg/cmd/util/term"
1919
"github.com/openshift/origin/pkg/oc/admin"
20+
diagnostics "github.com/openshift/origin/pkg/oc/admin/diagnostics"
21+
sync "github.com/openshift/origin/pkg/oc/admin/groups/sync/cli"
22+
"github.com/openshift/origin/pkg/oc/admin/validate"
2023
"github.com/openshift/origin/pkg/oc/cli/cmd"
2124
"github.com/openshift/origin/pkg/oc/cli/cmd/cluster"
2225
"github.com/openshift/origin/pkg/oc/cli/cmd/image"
@@ -30,6 +33,10 @@ import (
3033
"github.com/openshift/origin/pkg/oc/cli/sa"
3134
"github.com/openshift/origin/pkg/oc/cli/secrets"
3235
"github.com/openshift/origin/pkg/oc/cli/util/clientcmd"
36+
"github.com/openshift/origin/pkg/oc/experimental/buildchain"
37+
configcmd "github.com/openshift/origin/pkg/oc/experimental/config"
38+
"github.com/openshift/origin/pkg/oc/experimental/dockergc"
39+
exipfailover "github.com/openshift/origin/pkg/oc/experimental/ipfailover"
3340
)
3441

3542
const productName = `OpenShift`
@@ -192,13 +199,7 @@ func NewCommandCLI(name, fullName string, in io.Reader, out, errout io.Writer) *
192199
templates.ActsAsRootCommand(cmds, filters, groups...).
193200
ExposeFlags(loginCmd, "certificate-authority", "insecure-skip-tls-verify", "token")
194201

195-
// experimental commands are those that are bundled with the binary but not displayed to end users
196-
// directly
197-
experimental := &cobra.Command{
198-
Use: "ex", // Because this command exposes no description, it will not be shown in help
199-
}
200-
experimental.AddCommand()
201-
cmds.AddCommand(experimental)
202+
cmds.AddCommand(newExperimentalCommand("ex", name+"ex"))
202203

203204
cmds.AddCommand(cmd.NewCmdPlugin(fullName, f, in, out, errout))
204205
if name == fullName {
@@ -254,6 +255,39 @@ func changeSharedFlagDefaults(rootCmd *cobra.Command) {
254255
}
255256
}
256257

258+
func newExperimentalCommand(name, fullName string) *cobra.Command {
259+
out := os.Stdout
260+
errout := os.Stderr
261+
262+
experimental := &cobra.Command{
263+
Use: name,
264+
Short: "Experimental commands under active development",
265+
Long: "The commands grouped here are under development and may change without notice.",
266+
Run: func(c *cobra.Command, args []string) {
267+
c.SetOutput(out)
268+
c.Help()
269+
},
270+
BashCompletionFunction: admin.BashCompletionFunc,
271+
}
272+
273+
f := clientcmd.New(experimental.PersistentFlags())
274+
275+
experimental.AddCommand(validate.NewCommandValidate(validate.ValidateRecommendedName, fullName+" "+validate.ValidateRecommendedName, out, errout))
276+
experimental.AddCommand(exipfailover.NewCmdIPFailoverConfig(f, fullName, "ipfailover", out, errout))
277+
experimental.AddCommand(dockergc.NewCmdDockerGCConfig(f, fullName, "dockergc", out, errout))
278+
experimental.AddCommand(buildchain.NewCmdBuildChain(name, fullName+" "+buildchain.BuildChainRecommendedCommandName, f, out))
279+
experimental.AddCommand(configcmd.NewCmdConfig(configcmd.ConfigRecommendedName, fullName+" "+configcmd.ConfigRecommendedName, f, out, errout))
280+
deprecatedDiag := diagnostics.NewCmdDiagnostics(diagnostics.DiagnosticsRecommendedName, fullName+" "+diagnostics.DiagnosticsRecommendedName, out)
281+
deprecatedDiag.Deprecated = fmt.Sprintf(`use "oc adm %[1]s" to run diagnostics instead.`, diagnostics.DiagnosticsRecommendedName)
282+
experimental.AddCommand(deprecatedDiag)
283+
experimental.AddCommand(cmd.NewCmdOptions(out))
284+
285+
// these groups also live under `oc adm groups {sync,prune}` and are here only for backwards compatibility
286+
experimental.AddCommand(sync.NewCmdSync("sync-groups", fullName+" "+"sync-groups", f, out))
287+
experimental.AddCommand(sync.NewCmdPrune("prune-groups", fullName+" "+"prune-groups", f, out))
288+
return experimental
289+
}
290+
257291
// CommandFor returns the appropriate command for this base name,
258292
// or the OpenShift CLI command.
259293
func CommandFor(basename string) *cobra.Command {

test/cmd/diagnostics.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ os::cmd::expect_failure_and_text 'oc adm diagnostics AnalyzeLogs AlsoMissing' 'N
4141
os::cmd::expect_success_and_text 'oc adm diagnostics MetricsApiProxy' 'Skipping diagnostic: MetricsApiProxy'
4242
os::cmd::expect_success_and_text 'oc adm diagnostics NetworkCheck --prevent-modification' 'Skipping diagnostic: NetworkCheck'
4343

44-
# openshift ex diagnostics is deprecated but not removed. Make sure it works until we consciously remove it.
45-
os::cmd::expect_success 'openshift ex diagnostics ClusterRoleBindings ClusterRoles ConfigContexts '
44+
# oc ex diagnostics is deprecated but not removed. Make sure it works until we consciously remove it.
45+
os::cmd::expect_success 'oc ex diagnostics ClusterRoleBindings ClusterRoles ConfigContexts '
4646
echo "diagnostics: ok"
4747
os::test::junit::declare_suite_end

test/cmd/help.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ os::test::junit::declare_suite_start "cmd/help"
77

88
# verify some default commands
99
os::cmd::expect_success 'openshift'
10-
os::cmd::expect_success 'openshift ex'
1110
os::cmd::expect_success 'kubectl'
1211
os::cmd::expect_success 'oc'
12+
os::cmd::expect_success 'oc ex'
1313
os::cmd::expect_success 'origin'
1414

1515
# help for root commands must be consistent
@@ -75,9 +75,9 @@ os::cmd::expect_failure_and_text 'oc login --certificate-authority=/path/to/inva
7575
os::cmd::expect_failure 'oc policy TYPO'
7676
os::cmd::expect_failure 'oc secrets TYPO'
7777

78-
# make sure that LDAP group sync and prune exist under both parents
79-
os::cmd::expect_success_and_text 'openshift ex sync-groups --help' 'external provider'
80-
os::cmd::expect_success_and_text 'openshift ex prune-groups --help' 'external provider'
78+
# make sure that LDAP group sync and prune exist under both experimental and `oc adm`
79+
os::cmd::expect_success_and_text 'oc ex sync-groups --help' 'external provider'
80+
os::cmd::expect_success_and_text 'oc ex prune-groups --help' 'external provider'
8181
os::cmd::expect_success_and_text 'oc adm groups sync --help' 'external provider'
8282
os::cmd::expect_success_and_text 'oc adm groups prune --help' 'external provider'
8383
os::cmd::expect_success_and_text 'oc adm prune groups --help' 'external provider'

test/extended/gssapi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ backend='https://openshift.default.svc.cluster.local:443'
4545

4646
oauth_patch="$(sed "s/HOST_NAME/${host}/" "${test_data_location}/config/oauth_config.json")"
4747
cp "${SERVER_CONFIG_DIR}/master/master-config.yaml" "${SERVER_CONFIG_DIR}/master/master-config.tmp.yaml"
48-
openshift ex config patch "${SERVER_CONFIG_DIR}/master/master-config.tmp.yaml" --patch="${oauth_patch}" > "${SERVER_CONFIG_DIR}/master/master-config.yaml"
48+
oc ex config patch "${SERVER_CONFIG_DIR}/master/master-config.tmp.yaml" --patch="${oauth_patch}" > "${SERVER_CONFIG_DIR}/master/master-config.yaml"
4949
os::start::server
5050

5151
export KUBECONFIG="${ADMIN_KUBECONFIG}"

test/extended/setup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,24 +113,24 @@ function os::test::extended::setup () {
113113
# put change there - only want this for extended tests
114114
os::log::info "Turn on audit logging"
115115
cp "${SERVER_CONFIG_DIR}/master/master-config.yaml" "${SERVER_CONFIG_DIR}/master/master-config.orig2.yaml"
116-
openshift ex config patch "${SERVER_CONFIG_DIR}/master/master-config.orig2.yaml" --patch="{\"auditConfig\": {\"enabled\": true, \"auditFilePath\": \"${LOG_DIR}/audit.log\"}}" > "${SERVER_CONFIG_DIR}/master/master-config.yaml"
116+
oc ex config patch "${SERVER_CONFIG_DIR}/master/master-config.orig2.yaml" --patch="{\"auditConfig\": {\"enabled\": true, \"auditFilePath\": \"${LOG_DIR}/audit.log\"}}" > "${SERVER_CONFIG_DIR}/master/master-config.yaml"
117117

118118
cp "${SERVER_CONFIG_DIR}/master/master-config.yaml" "${SERVER_CONFIG_DIR}/master/master-config.orig2.yaml"
119-
openshift ex config patch "${SERVER_CONFIG_DIR}/master/master-config.orig2.yaml" --patch="{\"templateServiceBrokerConfig\": {\"templateNamespaces\": [\"openshift\"]}}" > "${SERVER_CONFIG_DIR}/master/master-config.yaml"
119+
oc ex config patch "${SERVER_CONFIG_DIR}/master/master-config.orig2.yaml" --patch="{\"templateServiceBrokerConfig\": {\"templateNamespaces\": [\"openshift\"]}}" > "${SERVER_CONFIG_DIR}/master/master-config.yaml"
120120

121121
# If the XFS volume dir mount point exists enable local storage quota in node-config.yaml so these tests can pass:
122122
if [[ -n "${LOCAL_STORAGE_QUOTA}" ]]; then
123123
# The ec2 images usually have ~5Gi of space defined for the xfs vol for the registry; want to give /registry a good chunk of that
124124
# to store the images created when the extended tests run
125125
cp "${NODE_CONFIG_DIR}/node-config.yaml" "${NODE_CONFIG_DIR}/node-config.orig2.yaml"
126-
openshift ex config patch "${NODE_CONFIG_DIR}/node-config.orig2.yaml" --patch='{"volumeConfig":{"localQuota":{"perFSGroup":"4480Mi"}}}' > "${NODE_CONFIG_DIR}/node-config.yaml"
126+
oc ex config patch "${NODE_CONFIG_DIR}/node-config.orig2.yaml" --patch='{"volumeConfig":{"localQuota":{"perFSGroup":"4480Mi"}}}' > "${NODE_CONFIG_DIR}/node-config.yaml"
127127
fi
128128
os::log::info "Using VOLUME_DIR=${VOLUME_DIR}"
129129

130130
# This is a bit hacky, but set the pod gc threshold appropriately for the garbage_collector test
131131
# and enable-hostpath-provisioner for StatefulSet tests
132132
cp "${SERVER_CONFIG_DIR}/master/master-config.yaml" "${SERVER_CONFIG_DIR}/master/master-config.orig3.yaml"
133-
openshift ex config patch "${SERVER_CONFIG_DIR}/master/master-config.orig3.yaml" --patch='{"kubernetesMasterConfig":{"controllerArguments":{"terminated-pod-gc-threshold":["100"], "enable-hostpath-provisioner":["true"]}}}' > "${SERVER_CONFIG_DIR}/master/master-config.yaml"
133+
oc ex config patch "${SERVER_CONFIG_DIR}/master/master-config.orig3.yaml" --patch='{"kubernetesMasterConfig":{"controllerArguments":{"terminated-pod-gc-threshold":["100"], "enable-hostpath-provisioner":["true"]}}}' > "${SERVER_CONFIG_DIR}/master/master-config.yaml"
134134

135135
os::start::server "${API_SERVER_VERSION:-}" "${CONTROLLER_VERSION:-}" "${SKIP_NODE:-}"
136136

tools/clicheck/check_cli_conventions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var (
1414
"openshift start kubernetes", // TODO enable when we upstream all these conventions
1515
"openshift cli create quota", // TODO has examples starting with '//', enable when we upstream all these conventions
1616
"openshift cli adm", // already checked in 'openshift admin'
17-
"openshift ex", // we will only care about experimental when they get promoted
17+
"openshift cli ex", // we will only care about experimental when they get promoted
1818
"openshift cli types",
1919
}
2020
)

0 commit comments

Comments
 (0)