Skip to content

init#1

Merged
benjaminhuo merged 4 commits intoOpenFunction:mainfrom
wanjunlei:main
Jan 17, 2023
Merged

init#1
benjaminhuo merged 4 commits intoOpenFunction:mainfrom
wanjunlei:main

Conversation

@wanjunlei
Copy link
Member

Signed-off-by: wanjunlei [email protected]

The first commit.

Signed-off-by: wanjunlei <[email protected]>
@wanjunlei wanjunlei requested a review from benjaminhuo January 16, 2023 10:12
@@ -0,0 +1,256 @@
package image
Copy link
Member

@benjaminhuo benjaminhuo Jan 17, 2023

Choose a reason for hiding this comment

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

pkg/revision-controller/image/image.go ?

Copy link
Member Author

Choose a reason for hiding this comment

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

This package includes the revision and revision controller, the image and git are revision, so revision is more suitable.

Copy link
Member

@benjaminhuo benjaminhuo Jan 17, 2023

Choose a reason for hiding this comment

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

Like Knative revision and azure container apps revisions https://learn.microsoft.com/en-us/azure/container-apps/revisions, Revision is used to specify a version of Function Serving. It's not related to how the function is built(from git or from source in image) or where the source code is from.

This repo is actually used to update revision of function serving based on git source changes or image changes. So the git and image stuff is not part of revisions, they're triggers or controllers of revisions.

Whenever the image of the function serving is updated, a new Knative revision is created and by default, all traffic is routed to the latest knative revision by default.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@@ -0,0 +1,14 @@
package provider
Copy link
Member

@benjaminhuo benjaminhuo Jan 17, 2023

Choose a reason for hiding this comment

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

pkg/revision-controller/git/provider/interface.go ?

return err
}

revisionType := config[constants.RevisionType]
Copy link
Member

Choose a reason for hiding this comment

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

revisionType => revisionControllerType ?
constants.RevisionType => constants.RevisionControllerType ?

Copy link
Member Author

Choose a reason for hiding this comment

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

The type is the revision type, not the revision controller type, so revisionType is more acurrate.

@benjaminhuo benjaminhuo merged commit f8616a0 into OpenFunction:main Jan 17, 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.

2 participants