# Packages
No description provided by the author
# Functions
CreateCodewindRoleBindings : create Codewind role bindings in the deployment namespace.
CreateCodewindRoles : create Codewind roles.
CreateCodewindServiceAcct : Create service account.
CreateCodewindTektonClusterRoleBindings : create Codewind tekton cluster role bindings.
CreateCodewindTektonClusterRoles : create Codewind tekton cluster roles.
CreateKeycloakServiceAcct : Create service account.
DeployGatekeeper : Deploy gatekeepers.
DeployKeycloak : Deploy Keycloak instance.
DeployPerformance takes in a `codewind` object and deploys Codewind and the performance dashboard into the specified namespace.
DeployPFE : Deploy PFE instance.
DeployRemote : InstallRemote.
GetExistingDeployments returns information about the remote installations of codewind, across all namespaces by default.
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.
Get kubeconfig.
RemoveRemote : Remove remote install from Kube.
RemoveRemoteKeycloak : Remove remote keycloak install from Kube.
SetupKeycloak : sets up keycloak with a realm, client and user.
WaitForPodReady : Wait for pod to enter the running phase.
# Constants
CodewindRoleBindingNamePrefix will include the workspaceID when deployed.
CodewindRolesName will include the workspaceID when deployed.
CodewindTektonClusterRoleBindingName : Tekton, cluster role binding.
CodewindTektonClusterRolesName : Tekton, cluster role.
GatekeeperContainerPort is the port at which the Gatekeeper is exposed.
GatekeeperImage is the docker image that will be used in the Codewind-Gatekeeper pod.
GatekeeperImageTag is the image tag associated with the docker image that's used for Codewind-Gatekeeper.
GatekeeperPrefix is the prefix for all gatekeeper related resources: deployment and service.
ImagePullPolicy is the pull policy used for all containers in Codewind, defaults to Always.
KeycloakContainerPort is the port at which Keycloak is exposed.
KeycloakImage is the docker image that will be used in the Codewind-Keycloak pod.
KeycloakImageTag is the image tag associated with the docker image that's used for Codewind-Keycloak.
KeycloakPrefix is the prefix for all keycloak related resources: deployment and service.
PerformanceContainerPort is the port at which the Performance dashboard is exposed.
PerformanceImage is the docker image that will be used in the Performance dashboard pod.
PerformancePrefix is the prefix for all performance-dashboard related resources: deployment and service.
PerformanceTag is the image tag associated with the docker image that's used for the Performance dashboard.
PFEContainerPort is the port at which Codewind-PFE is exposed.
PFEImage is the docker image that will be used in the Codewind-PFE pod.
PFEImageTag is the image tag associated with the docker image that's used for Codewind-PFE.
PFEPrefix is the prefix all PFE-related resources: deployment, service, and ingress/route.
ResourceFound : Resource located.
ResourceNotFound : Resource could not be located.
ResourceNotProcessed : Resource not processed.
ResourceRemoved : Resource was successfully removed.
ResourceRemoveFailed : Resource removal failed.
ResourceSkipped : Resource was not removed and was skipped.
ROKSStorageClass references the storage class to use on ROKS (OpenShift on IKS).
# Variables
MockCodewind is a standard configuration for a remote Codewind.
# Structs
Codewind represents a Codewind instance: name, namespace, volume, serviceaccount, and pull secrets.
DeploymentResult : Ingress root URLs.
DeployOptions : Keycloak initial config.
ExistingDeployment describes a remote installation of Codewind.
ImagePullSecret represents a Kubernetes imagePullSecret.
K8sAPI is the k8s client called by the function.
RemInstError : Deployment package errors.
RemovalResult : Status for each component.
RemoveDeploymentOptions : Deployment removal options.
Result : status message.
ServiceAccountPatch contains an array of imagePullSecrets that will be patched into a Kubernetes service account.