Documentation ¶
Index ¶
- func CreateIngress(codewind Codewind) extensionsv1.Ingress
- func CreateRoute(codewind Codewind) v1.Route
- func DeployCodewind(clientset *kubernetes.Clientset, codewind Codewind, namespace string) error
- func GetImages() (string, string)
- func PatchServiceAccount(clientset *kubernetes.Clientset, codewind Codewind) error
- type Codewind
- type ImagePullSecret
- type ServiceAccountPatch
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 ¶
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 ¶
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