Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
option to disable gssapi_login
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwindasr authored and sosiouxme committed Jul 25, 2022
1 parent 1d4b78f commit 07dea4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions doozerlib/cli/__init__.py
Expand Up @@ -73,6 +73,7 @@ def print_version(ctx, param, value):
help='If a base image is not included, lookup latest FROM tag for parent. Implies --ignore-missing-base')
@click.option("--quiet", "-q", default=False, is_flag=True, help="Suppress non-critical output")
@click.option('--debug', default=False, is_flag=True, help='Show debug output on console.')
@click.option('--disable-gssapi', default=False, is_flag=True, help='Disable gssapi for requests that do not require keytab')
@click.option("--stream", metavar="STREAM_NAME PULLSPEC", nargs=2, multiple=True,
help="Override a stream.yml entry with a specific pullspec. [multiple]")
@click.option("--lock-upstream", "upstreams", metavar="DISTGIT_KEY COMMIT-ISH", multiple=True, nargs=2,
Expand Down
4 changes: 3 additions & 1 deletion doozerlib/runtime.py
Expand Up @@ -153,6 +153,7 @@ def __init__(self, **kwargs):
self.releases_config = None
self.assembly = 'test'
self._build_status_detector = None
self.disable_gssapi = False

self.stream: List[str] = [] # Click option. A list of image stream overrides from the command line.
self.stream_overrides: Dict[str, str] = {} # Dict of stream name -> pullspec from command line.
Expand Down Expand Up @@ -739,7 +740,8 @@ def shared_koji_client_session(self):
with self.koji_lock:
if self._koji_client_session is None:
self._koji_client_session = self.build_retrying_koji_client()
self._koji_client_session.gssapi_login()
if not self.disable_gssapi:
self._koji_client_session.gssapi_login()
yield self._koji_client_session

@contextmanager
Expand Down

0 comments on commit 07dea4f

Please sign in to comment.