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: add the ability to configure artifact download link expiry #670

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

HumairAK
Copy link
Contributor

@HumairAK HumairAK commented Jul 9, 2024

The issue resolved by this Pull Request:

Part of https://issues.redhat.com/browse/RHOAIENG-8225

Depends on: opendatahub-io/data-science-pipelines#62

Description of your changes:

This allows a user to configure the expiry time (in seconds) of an artifact download link via the DSPA. Default is 15 seconds.

Testing instructions

  1. Deploy DSPO: Use this one feat: add the ability to configure artifact download link expiry #670
  2. Deploy DSPA with .spec.apiServer.artifactSignedURLExpirySeconds set to some value integer.
  3. Confirm this value is set in the dsp server deployment as: SIGNED_URL_EXPIRY_TIME_SECONDS

Checklist

  • The commits are squashed in a cohesive manner and have meaningful messages.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

@dsp-developers
Copy link
Contributor

A new image has been built to help with testing out this PR: quay.io/opendatahub/data-science-pipelines-operator:pr-670
An OCP cluster where you are logged in as cluster admin is required.

To use this image run the following:

cd $(mktemp -d)
git clone git@github.com:opendatahub-io/data-science-pipelines-operator.git
cd data-science-pipelines-operator/
git fetch origin pull/670/head
git checkout -b pullrequest 8a74a7b680e73bd431f9f18dfe12ae540ab26524
oc new-project opendatahub
make deploy IMG="quay.io/opendatahub/data-science-pipelines-operator:pr-670"

More instructions here on how to deploy and test a Data Science Pipelines Application.

@HumairAK HumairAK changed the title add the ability to configure artifact expiry feat: add the ability to configure artifact expiry Jul 9, 2024
@dsp-developers
Copy link
Contributor

Change to PR detected. A new PR build was completed.
A new image has been built to help with testing out this PR: quay.io/opendatahub/data-science-pipelines-operator:pr-670

@HumairAK HumairAK requested review from gregsheremeta and hbelmiro and removed request for VaniHaripriya July 11, 2024 15:41
Copy link
Contributor

@hbelmiro hbelmiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@@ -7,6 +7,9 @@ spec:
apiServer:
enableSamplePipeline: true
objectStorage:
# Need to enable this for artifact download links to work
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this is the case, should we make the objStore route enabled by default? (outside scope of this ticket, but if so we should open a ticket to track/follow up on)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a strong opinion on this, this field itself is misplaced (it should be under minio), it only applies to minio which is a dev feature, so I don't think it matters that much.

@gmfrasca
Copy link
Member

/approve

but also

/hold

since I believe this needs to go in around the same time as opendatahub-io/data-science-pipelines#62

also giving @HumairAK a chance to see above non-blocking comment, so allowing for a self-unhold

@gregsheremeta
Copy link
Contributor

/hold

need to firm up the API in opendatahub-io/data-science-pipelines#62

(I'm not sure all the references to share_url should remain)

@gregsheremeta
Copy link
Contributor

can you change the commit message and the PR title?

feat: configure artifact download link expiry

(the artifacts aren't expired! just their links ;) )

@HumairAK HumairAK changed the title feat: add the ability to configure artifact expiry feat: add the ability to configure artifact download link expiry Jul 15, 2024
Signed-off-by: Humair Khan <HumairAK@users.noreply.github.com>
@dsp-developers
Copy link
Contributor

Change to PR detected. A new PR build was completed.
A new image has been built to help with testing out this PR: quay.io/opendatahub/data-science-pipelines-operator:pr-670

@gregsheremeta
Copy link
Contributor

/unhold

@gregsheremeta
Copy link
Contributor

/lgtm
/approve

Copy link
Contributor

openshift-ci bot commented Jul 17, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gmfrasca, gregsheremeta

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [gmfrasca,gregsheremeta]

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

@HumairAK HumairAK merged commit bd4b501 into opendatahub-io:main Jul 17, 2024
5 of 6 checks passed
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.

5 participants