#503 Add --stream argument to odcs client, works like --redhat.
Closed 2 months ago by hlin. Opened 3 years ago by james.
Unknown source master  into  master

file modified
+14
@@ -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,

no initial comment

1 new commit added

  • Use internal names.
3 years ago

staging url looks incorrect

1 new commit added

  • Fix typo.
3 years ago

Since v0.8.0 odcs client uses https://pagure.io/odcs/blob/master/f/client/odcs/client/odcs.toml for server configuration. So that this patch needs to be updated accordingly or just copy the default config to ~/.config/odcs.toml and add your own config.

Pull-Request has been closed by hlin

2 months ago
Metadata