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

Optionally use Contour in hack/prepare-supervisor-on-kind.sh #1696

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

cfryanr
Copy link
Member

@cfryanr cfryanr commented Sep 27, 2023

Using Contour for ingress allows us to avoid using the hacky proxy server approach. This makes it easy to use any web browser to complete the login process, since there is no need to configure the proxy server for the browser.

Example usage:

PINNIPED_USE_CONTOUR=1 hack/prepare-for-integration-tests.sh -c
PINNIPED_USE_CONTOUR=1 hack/prepare-supervisor-on-kind.sh --oidc --ldap

This PR does not make using Contour the default behavior of these scripts. You need to use the PINNIPED_USE_CONTOUR environment variable as shown above to ask for Contour. The integration tests do not use or depend on Contour, so it seems appropriate for the default behavior of prepare-for-integration-tests.sh to also not configure anything for Contour.

This came about when I wanted to test logging in using Safari. It is very hard to configure Safari to use the local proxy server. This ended up being an easier solution.

Release note:

NONE

@codecov
Copy link

codecov bot commented Sep 27, 2023

Codecov Report

Merging #1696 (0ab6311) into main (24069b5) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1696   +/-   ##
=======================================
  Coverage   79.16%   79.16%           
=======================================
  Files         163      163           
  Lines       15767    15767           
=======================================
  Hits        12482    12482           
  Misses       2970     2970           
  Partials      315      315           

@cfryanr cfryanr force-pushed the contour_in_hack_prepare_supervisor branch from 1ce6724 to 78cd040 Compare September 27, 2023 18:12
@cfryanr cfryanr force-pushed the contour_in_hack_prepare_supervisor branch from 78cd040 to 0e10549 Compare September 27, 2023 18:57
Using Contour for ingress allows us to avoid using the hacky proxy
server approach. This makes it easy to use any web browser to complete
the login process, since there is no need to configure the proxy server
for the browser.
@cfryanr cfryanr force-pushed the contour_in_hack_prepare_supervisor branch from 0e10549 to 0ab6311 Compare September 27, 2023 19:33
@cfryanr cfryanr merged commit af7a1a1 into main Sep 27, 2023
36 checks passed
@cfryanr cfryanr deleted the contour_in_hack_prepare_supervisor branch September 27, 2023 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants