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

feat: Upload namespaced pipeline definitions. Part of #4197 #8360

Closed

Conversation

elikatsis
Copy link
Member

@elikatsis elikatsis commented Oct 13, 2022

[This is a re-opening of #8196.]

Description of your changes:

This PR is part of the overarching idea to support namespaced pipeline definitions.
The whole idea is thoroughly analyzed and exposed in this design doc: https://docs.google.com/document/d/1fM4y2L1IVqVj-iiNjYFRRktdCh7FQXgU2XpaYLaqt-A/edit?resourcekey=0-kd5loyP7w3PBD0ug6ECmLQ#

You will notice that in the first commit we autogenerate the Go and Python clients. We did this because commit f604406 reverted the change of cf1b873 for some reason. We didn't find any rationale for this somewhere, it looks like it was not pushed with a PR.

Objective of this PR is to:

  1. Fix backend authentication for upload requests in order to properly authenticate users to upload pipeline definitions in specific namespaces
  2. Update the swagger definitions accordingly for the upload APIs and generate the code for the relevant clients
  3. Extend the corresponding Python wrappers with a namespace field

Refs #4197

Checklist:

Autogenerate Go and Python clients for the updated gRPC-Gateway
which got reverted by f604406
Fix the way KFP API server authenticates pipeline upload requests.
We leverage 'isAuthenticated()` function which requires proper
initialization of the context object to include user identity.
Extend swagger defintion of the pipeline upload API with a namespace
parameter in order to support uploading namespaced pipelines.
Autogenerate the updated Go and Python clients after extending the
swagger definitions of upload pipeline APIs with a namespace field.
Add a namespace field in the relevant Python wrappers for uploading
pipeline definitions.
@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign chensun for approval by writing /assign @chensun in a comment. For more information see:The Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@elikatsis
Copy link
Member Author

Ah CLA got fixed in #8196. Sorry for this, closing this PR. Let's continue using the other one.

@elikatsis elikatsis closed this Oct 13, 2022
@elikatsis elikatsis deleted the feature-upload-namespaced-pipelines branch October 13, 2022 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant