| |
@@ -20,6 +20,10 @@
|
| |
"prod": {"server_url": "https://odcs.engineering.redhat.com"},
|
| |
"staging": {"server_url": "https://odcs.stage.engineering.redhat.com"},
|
| |
},
|
| |
+ "stream": {
|
| |
+ "prod": {"server_url": "https://odcs.stream.rdu2.redhat.com"},
|
| |
+ "staging": {"server_url": "https://odcs.stg.stream.rdu2.redhat.com"},
|
| |
+ },
|
| |
}
|
| |
|
| |
id_provider_config = {
|
| |
@@ -50,6 +54,15 @@
|
| |
"be used by default.",
|
| |
)
|
| |
parser.add_argument(
|
| |
+ "--stream",
|
| |
+ action="store_const",
|
| |
+ const="stream",
|
| |
+ default="fedora",
|
| |
+ dest="infra",
|
| |
+ help="Use CentOS stream ODCS infra env. If omitted, Fedora Infra will "
|
| |
+ "be used by default.",
|
| |
+ )
|
| |
+ parser.add_argument(
|
| |
"--staging",
|
| |
action="store_const",
|
| |
const="staging",
|
| |
@@ -391,6 +404,7 @@
|
| |
openidc_token=token,
|
| |
)
|
| |
else:
|
| |
+ # infra in "redhat", "stream"
|
| |
client = odcs.client.odcs.ODCS(
|
| |
odcs_url,
|
| |
auth_mech=odcs.client.odcs.AuthMech.Kerberos,
|
| |