codewind

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: EPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateIngress

func CreateIngress(codewind Codewind) extensionsv1.Ingress

CreateIngress returns a Kubernetes ingress for the Codewind PFE service

func CreateRoute

func CreateRoute(codewind Codewind) v1.Route

CreateRoute returns an OpenShift route for the Codewind PFE service

func DeployCodewind

func DeployCodewind(clientset *kubernetes.Clientset, codewind Codewind, namespace string) error

DeployCodewind takes in a `codewind` object and deploys Codewind and the performance dashboard into the specified namespace

func GetImages

func GetImages() (string, string)

GetImages returns the images that are to be used for PFE and the Performance dashboard in Codewind If environment vars are set (such as $PFE_IMAGE, $PFE_TAG, $PERFORMANCE_IMAGE, or $PERFORMANCE_TAG), it will use those, otherwise it defaults to the constants defined in constants/default.go

func PatchServiceAccount

func PatchServiceAccount(clientset *kubernetes.Clientset, codewind Codewind) error

PatchServiceAccount takes in a list of secret names, and patches it to the specified service account

Types

type Codewind

type Codewind struct {
	PFEName            string
	PerformanceName    string
	PFEImage           string
	PerformanceImage   string
	Namespace          string
	WorkspaceID        string
	ServiceAccountName string
	PullSecret         string
	PVCName            string
	OwnerReferenceName string
	OwnerReferenceUID  types.UID
	Privileged         bool
	Ingress            string
	OnOpenShift        bool
	CheIngress         string
}

Codewind represents a Codewind instance: name, namespace, volume, serviceaccount, and pull secrets

type ImagePullSecret

type ImagePullSecret struct {
	Name string `json:"name"`
}

ImagePullSecret represents a Kubernetes imagePullSecret

type ServiceAccountPatch

type ServiceAccountPatch struct {
	ImagePullSecrets *[]ImagePullSecret `json:"imagePullSecrets"`
}

ServiceAccountPatch contains an array of imagePullSecrets that will be patched into a Kubernetes service account

Jump to

Keyboard shortcuts

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