Description of problem: Should add one option 'wildcardPolicy' when creating wildcard subdomain route like 'oc expose svc/oc create route' otherwise, we cannot create wildcard subdomain route in CLI. 'wildcardPolicy' have been added in API, detail https://github.com/openshift/origin/pull/11550/files Version-Release number of selected component (if applicable): # oc version oc v3.4.0.21+ca4702d kubernetes v1.4.0+776c994 features: Basic-Auth GSSAPI Kerberos SPNEGO How reproducible: always Steps to Reproduce: 1. oc expose svc --help 2. oc create route --help 3. Actual results: no this option like 'wildcardPolicy' Expected results: should add this option for creating wildcard subdomain route. Additional info: for now we only can create wildcard subdomain route by json like { "kind": "Route", "apiVersion": "v1", "metadata": { "name": "route-passthrough" }, "spec": { "host": "route-pass.example.com", "wildcardPolicy": "Subdomain", "to": { "kind": "Service", "name": "service-secure" }, "tls": { "termination": "passthrough" } } }
We should also report the wildcard status back to the CLI when GET the routes. $ oc get route -o wide NAME HOST/PORT PATH SERVICES PORT TERMINATION route-edge3 edge.example.com service-unsecure <all> edge
The work for the CLI is done (https://github.com/openshift/origin/issues/12238) The web console work is being done on card https://trello.com/c/GEdeKzea Closing this in preference to the card.
hi, reopen this bug since it's not complete. 1. this feature should be also added to `oc create route` for the TLS related route. 2. should add an extra column for oc get route at same time.
Linked PR should complete this BZ https://github.com/openshift/origin/pull/12713
Commit pushed to master at https://github.com/openshift/origin https://github.com/openshift/origin/commit/5dbe22899128d7066d4c2783c10eb858a5c5bb12 Adding wildcardpolicy flag to `oc create route` and a column for the wildcardpolicy to `oc get route' Adding wildcard policy to 'oc create route' Adding a column for wildcard policy in 'oc get route' Bug 1391786
follow up PR: https://github.com/openshift/origin/pull/12774
This has been merged into ocp and is in OCP v3.5.0.17 or newer.
Did testing on v3.5.0.17 version, the added option is working well. there is a little issue for `oc expose svc` found in `oc expose svc` the option still is '--wildcardpolicy=', please help updated to '--wildcard-policy=' in order to keep consistent with `oc create route` side ************ oc expose svc ********************* $ oc expose svc --help | tail -3 --wildcardpolicy='': Sets the WildcardPolicy for the hostname, the default is "None". Valid values are "None" and "Subdomain" ************ oc create route************************ # oc create route edge --help | tail -4 # oc create route edge --help | tail -3 --wildcard-policy='': Sets the WilcardPolicy for the hostname, the default is "None". valid values are "None" and "Subdomain" Use "oc options" for a list of global command-line options (applies to all commands).
Posted follow-up https://bugzilla.redhat.com/show_bug.cgi?id=1391786
(In reply to jtanenba from comment #12) > Posted follow-up > > https://bugzilla.redhat.com/show_bug.cgi?id=1391786 Sorry the link is https://github.com/openshift/origin/pull/12849
This has been merged into ocp and is in OCP v3.5.0.18 or newer.
Verified this bug on v3.5.0.18
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:0884