kubernetes

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseURL added in v0.18.0

func BaseURL(ip string) string

func CleanupDeployment

func CleanupDeployment(pr *github.PullRequestEvent) error

CleanupDeployment cleans up all deployments related to the given pull request

func CreateDeployment added in v0.18.0

func CreateDeployment(pr *github.PullRequestEvent, svc *v1.Service, externalIP string) (*appsv1.Deployment, error)

CreateDeployment creates a deployment for this pull request The deployment has two containers:

  1. An init container to git clone the PR branch
  2. A container to run hugo server

and one emptyDir volume to hold the git repository

func CreateService added in v0.18.0

func CreateService(pr *github.PullRequestEvent) (*v1.Service, error)

CreateService creates a service for the deployment to bind to and returns the external IP of the service

func GetExternalIP added in v0.18.0

func GetExternalIP(s *v1.Service) (string, error)

GetExternalIP polls the service until an external IP is available and returns it

func WaitForDeploymentToStabilize added in v0.18.0

func WaitForDeploymentToStabilize(d *appsv1.Deployment) error

WaitForDeploymentToStabilize waits till the Deployment has stabilized

Types

This section is empty.

Jump to

Keyboard shortcuts

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