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

Using custom DNS with Python SDK (kfp) #2888

Closed
kelvins opened this issue Jan 21, 2020 · 5 comments
Closed

Using custom DNS with Python SDK (kfp) #2888

kelvins opened this issue Jan 21, 2020 · 5 comments
Assignees
Labels
area/sdk/dsl help wanted The community is welcome to contribute. status/triaged Whether the issue has been explicitly triaged

Comments

@kelvins
Copy link
Contributor

kelvins commented Jan 21, 2020

The _is_iap_host method is being called in the Client initialization, but it is using a regex based on the default DNS (e.g. kubeflow.endpoints.my-project.cloud.goog/pipeline):

def _is_iap_host(self, host, client_id):
if host and client_id:
if re.match(r'\S+.endpoints.\S+.cloud.goog/{0,1}$', host):
warnings.warn('Suffix /pipeline is not ignorable for IAP host.')
return re.match(r'\S+.endpoints.\S+.cloud.goog/pipeline', host)
return False

In this case, how can we use a custom DNS?

@rmgogogo rmgogogo added area/sdk/client help wanted The community is welcome to contribute. area/sdk/dsl status/triaged Whether the issue has been explicitly triaged and removed area/sdk/client labels Jan 22, 2020
@Ark-kun Ark-kun assigned numerology and hongye-sun and unassigned Ark-kun Jan 22, 2020
@Ark-kun
Copy link
Contributor

Ark-kun commented Jan 22, 2020

Maybe we should add the optional use_iap parameter, so that the user can specify this explicitly.

@kelvins
Copy link
Contributor Author

kelvins commented Jan 22, 2020

Sounds good, but as far as I know client_id is only used for IAP, so passing client_id and use_iap seems to be a little redundant.

Another option would be to change the regular expression to not be so restricted, for example:

def _is_iap_host(self, host, client_id):
    if host and client_id:
        if re.match(r'\S+/{0,1}$', host):
            warnings.warn('Suffix /pipeline is not ignorable for IAP host.')
        return re.match(r'\S+/pipeline', host)
    return False

@Ark-kun
Copy link
Contributor

Ark-kun commented Jan 22, 2020

@numerology @hongye-sun WDYT?

@Bobgy
Copy link
Contributor

Bobgy commented Mar 10, 2020

/close
Already fixed by #3003

@k8s-ci-robot
Copy link
Contributor

@Bobgy: Closing this issue.

In response to this:

/close
Already fixed by #3003

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/sdk/dsl help wanted The community is welcome to contribute. status/triaged Whether the issue has been explicitly triaged
Projects
None yet
Development

No branches or pull requests

7 participants