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

(fix/oci-client): allow adding a token for OCI client #1600

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

radu-matei
Copy link
Member

This commit updates the underlying OCI client from the OCI crate used by Spin to be public. This is so that consumers of the client can configure the client (in particular, the token cache).

crates/oci/src/client.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@itowlson itowlson left a comment

Choose a reason for hiding this comment

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

This looks like a separate (and not yet complete change) has gotten included in here maybe?

crates/trigger-http/src/lib.rs Outdated Show resolved Hide resolved
crates/trigger/src/locked.rs Outdated Show resolved Hide resolved
@radu-matei radu-matei force-pushed the fix/pub-oci-client branch from 7d722c5 to c0a3218 Compare June 22, 2023 11:54
@radu-matei radu-matei requested review from itowlson and rylev June 22, 2023 11:55
@radu-matei radu-matei changed the title (fix/oci-client): make underlying OCI client pub (fix/oci-client): allow adding a token for OCI client Jun 23, 2023
@itowlson
Copy link
Contributor

@radu-matei the outstanding issue for me on this is https://github.com/fermyon/spin/pull/1600/files#r1237937342 (I mentioned it in chat a little while ago but should have noted it here as well)

@vdice
Copy link
Member

vdice commented Aug 15, 2023

Eager to get this in for more convenient OCI testing. @radu-matei when you have a chance could you rebase and take a look at #1600 (comment)?

@vdice vdice force-pushed the fix/pub-oci-client branch from c0a3218 to 3f6d570 Compare August 24, 2023 18:44
@vdice
Copy link
Member

vdice commented Aug 24, 2023

(rebased with main)

@vdice vdice force-pushed the fix/pub-oci-client branch 2 times, most recently from 76ef26b to 4830443 Compare September 7, 2023 21:47
This commit adds a public function on the OCI client to insert a token
in the token cache (used by the Cloud plugin to insert Cloud's token)
and stores the OCI manifest digst in `AppInfo` so it can be queried by
`./well-known/spin/info` at deployment time.

Signed-off-by: Radu Matei <radu.matei@fermyon.com>
@vdice vdice force-pushed the fix/pub-oci-client branch from 4830443 to a679d3a Compare September 8, 2023 15:38
crates/oci/Cargo.toml Outdated Show resolved Hide resolved
crates/trigger-http/src/lib.rs Outdated Show resolved Hide resolved
crates/trigger/src/locked.rs Outdated Show resolved Hide resolved
Signed-off-by: Vaughn Dice <vaughn.dice@fermyon.com>
@vdice vdice force-pushed the fix/pub-oci-client branch from 0b0d02f to 93df4ef Compare September 11, 2023 18:02
@lann lann dismissed itowlson’s stale review September 11, 2023 18:04

Looks like the concerns here have been refactored out of existence

@vdice vdice merged commit f554a45 into fermyon:main Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants