Documentation ¶
Index ¶
- Constants
- func BuildKubeConfig(kubeconfig string) (*rest.Config, error)
- func CreateAndWaitPVC(cli kubernetes.Interface, instanceName string, ...) error
- func CreateExternalEndpoint(client kubernetes.Interface, instanceName, runmode string, ...) error
- func CreateServices(client kubernetes.Interface, deployment *aemv1beta1.AEMDeployment) error
- func CreateStorageClass(kubecli kubernetes.Interface, pvProvisioner string) error
- func GetPodHost(podName, serviceName, ns string) string
- func InClusterConfig() (*rest.Config, error)
- func MakeIngressName(podName string) string
- func MakePVCName(podName string) string
- func MakePodName(deploymentName, runmode, id string) string
- func MakeServiceName(podName string) string
- func MustNewKubeClient() kubernetes.Interface
- func NewPod(name, runmode string, deployment *aemv1beta1.AEMDeployment) *v1.Pod
- func SetUpConfigMaps(client kubernetes.Interface, deployment *aemv1beta1.AEMDeployment) error
Constants ¶
const ( // DispatcherVirtualHostConfigKey bedrock.conf file DispatcherVirtualHostConfigKey = "bedrock.conf" // DispatcherPublishConfigKey publish_dispatcher.any file DispatcherPublishConfigKey = "publish_dispatcher.any" )
const ( // DispatcherVirtualHostConfig defines the basic VirtualHost for dispatchers DispatcherVirtualHostConfig = `` /* 626-byte string literal not displayed */ //DispatcherPublishConfig defines the basic config publish config for dispatchers DispatcherPublishConfig = `` /* 9564-byte string literal not displayed */ )
const ( VendorAdobe = "adobe" AppAEM = "aem" AEMCRXVolumeName = "crx" AEMRunmodePublish = "publish" AEMRunmodeAuthor = "author" AEMRunmodeDispatcher = "dispatcher" AEMHealtcheckReadinessURL = "/system/health?tags=shallow" AEMHealtcheckLivenessURL = "/system/health?tags=shallow" DispatcherSideCarLiveness = "/check/liveness" AEMDispatcherHealtcheckURL = "/" EnvCQPort = "CQ_PORT" EnvCQRunmode = "CQ_RUNMODE" ConfigVolumeKeySites = "config-volume-sites" ConfigVolumeKeyFarm = "config-volume-farm" )
Pod Constants
Variables ¶
This section is empty.
Functions ¶
func BuildKubeConfig ¶
BuildKubeConfig allows to build a k8s kubernetes from a path or in cluster config.
func CreateAndWaitPVC ¶
func CreateAndWaitPVC(cli kubernetes.Interface, instanceName string, deployment *aemv1beta1.AEMDeployment) error
CreateAndWaitPVC creates a volume claim for an instance.
func CreateExternalEndpoint ¶
func CreateExternalEndpoint(client kubernetes.Interface, instanceName, runmode string, deployment *aemv1beta1.AEMDeployment) error
CreateExternalEndpoint exposes a single instance by creating a service and a ingress.
func CreateServices ¶
func CreateServices(client kubernetes.Interface, deployment *aemv1beta1.AEMDeployment) error
CreateServices handles service creation for deployment
func CreateStorageClass ¶
func CreateStorageClass(kubecli kubernetes.Interface, pvProvisioner string) error
CreateStorageClass handles storage class creation, specially needed for Retention Policy
func GetPodHost ¶
GetPodHost returns the pod host example: adobe-example-aem-publish-001.example-aem.demo
func InClusterConfig ¶
InClusterConfig returns a config based on the service account.
func MakeIngressName ¶
MakeIngressName returns a desired name of an ingress
func MakePVCName ¶
MakePVCName returns a desired name of the persistent volume claim
func MakePodName ¶
MakePodName returns a desired name of a pod example: adobe-example-aem-dispatcher-001
func MakeServiceName ¶
MakeServiceName returns a desired name of a service
func MustNewKubeClient ¶
func MustNewKubeClient() kubernetes.Interface
MustNewKubeClient returns a kube interface.
func NewPod ¶
func NewPod(name, runmode string, deployment *aemv1beta1.AEMDeployment) *v1.Pod
NewPod creates a new AEMPod.
func SetUpConfigMaps ¶
func SetUpConfigMaps(client kubernetes.Interface, deployment *aemv1beta1.AEMDeployment) error
SetUpConfigMaps creates the configMaps for the deployment
Types ¶
This section is empty.