Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GithubSyncer ¶
type GithubSyncer struct {
// contains filtered or unexported fields
}
GithubSyncer implements following functionalities:
- Watches newly created PRs in K8s and updates their commitID by calling Github
- Periodically updates the PRs in K8s with their commitID in Github.
func NewGithubSyncer ¶
func NewGithubSyncer( mgr manager.Manager, enablePRSync bool, stop <-chan struct{}) (*GithubSyncer, error)
func (*GithubSyncer) Start ¶
func (gs *GithubSyncer) Start(stop <-chan struct{})
Start periodically syncs PRs in k8s with their commitID in Github.
type GodocDeployer ¶
type GodocDeployer struct {
controller.Controller
}
GodocDeployer watches PullRequest object which have a commitID specified in their Spec and deploys a Godoc deployment which runs godoc server for the PR. It watches the PullRequest object for changes in commitID and reconciles the generated godoc deployment. CommitID for PRs is updated by GithubSyncer module.
func NewGodocDeployer ¶
func NewGodocDeployer(mgr manager.Manager) (*GodocDeployer, error)
Click to show internal directories.
Click to hide internal directories.