File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,12 @@ const MAX_LAYER_COUNT: usize = 500;
48
48
/// rather than pushing as a separate layer
49
49
const DEFAULT_CONTENT_REF_INLINE_MAX_SIZE : usize = 128 ;
50
50
51
+ /// Default token expiration when pushing/pulling an image to/from a registry.
52
+ /// This value is used by the underyling OCI client when the token expiration
53
+ /// is unspecified on a claim.
54
+ /// This essentially equates to a timeout for push/pull.
55
+ const DEFAULT_TOKEN_EXPIRATION_SECS : usize = 300 ;
56
+
51
57
/// Mode of assembly of a Spin application into an OCI image
52
58
enum AssemblyMode {
53
59
/// Assemble the application as one layer per component and one layer for
@@ -643,6 +649,7 @@ impl Client {
643
649
644
650
oci_distribution:: client:: ClientConfig {
645
651
protocol,
652
+ default_token_expiration_secs : DEFAULT_TOKEN_EXPIRATION_SECS ,
646
653
..Default :: default ( )
647
654
}
648
655
}
You can’t perform that action at this time.
0 commit comments