Add code-only push support for Object Storage archives#711
Open
Add code-only push support for Object Storage archives#711
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The change adds push support for code-only functions by uploading locally built archives to Object Storage.
This PR extends 'fn push' so that when a function is marked 'code_only: true', the CLI uploads the corresponding local archive to Object Storage instead of using the traditional container image push flow.
PR includes-
Validation
Successful push
fn push
Code-only archive uploaded successfully as ..zip
Missing archive
If the archive does not exist, error will clearly say the built archive was not found.
Missing context config
If
object_storage_bucket_nameornamespaceis not present in the active context, error will clearly say the code-only Object Storage target is not configured.Upload failure
If bucket/namespace are invalid, the Object Storage upload error should be surfaced clearly.