pullrequest

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL