Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubernetes_e2e.py: remove working dir check if --build is specified #32519

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions scenarios/kubernetes_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ def add_service_account(path):
"""Returns path."""
return path

def add_k8s(self, *a, **kw):
"""Add specified k8s.io repos (noop)."""
pass

def start(self, args):
"""Starts kubetest."""
print('starts with local mode', file=sys.stderr)
Expand Down Expand Up @@ -254,10 +250,6 @@ def main(args):
runner_args.append('--build')
else:
runner_args.append('--build=%s' % args.build)
k8s = os.getcwd()
if not os.path.basename(k8s) == 'kubernetes':
raise ValueError(k8s)
mode.add_k8s(os.path.dirname(k8s), 'kubernetes', 'release')

if args.stage is not None:
runner_args.append('--stage=%s' % args.stage)
Expand Down