k8s

package
v0.0.0-...-c3e3b63 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DispatcherVirtualHostConfigKey bedrock.conf file
	DispatcherVirtualHostConfigKey = "bedrock.conf"
	// DispatcherPublishConfigKey publish_dispatcher.any file
	DispatcherPublishConfigKey = "publish_dispatcher.any"
)
View Source
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 */

)
View Source
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

func BuildKubeConfig(kubeconfig string) (*rest.Config, error)

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

func GetPodHost(podName, serviceName, ns string) string

GetPodHost returns the pod host example: adobe-example-aem-publish-001.example-aem.demo

func InClusterConfig

func InClusterConfig() (*rest.Config, error)

InClusterConfig returns a config based on the service account.

func MakeIngressName

func MakeIngressName(podName string) string

MakeIngressName returns a desired name of an ingress

func MakePVCName

func MakePVCName(podName string) string

MakePVCName returns a desired name of the persistent volume claim

func MakePodName

func MakePodName(deploymentName, runmode, id string) string

MakePodName returns a desired name of a pod example: adobe-example-aem-dispatcher-001

func MakeServiceName

func MakeServiceName(podName string) string

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.

Jump to

Keyboard shortcuts

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