Documentation ¶
Index ¶
- func GetPodCondition(status *v1.PodStatus, conditionType v1.PodConditionType) (int, *v1.PodCondition)
- func GetPodReadyCondition(status v1.PodStatus) *v1.PodCondition
- func GetPods(pods []*v1.Pod, filter func(pod *v1.Pod) bool) []*v1.Pod
- func IsPodReady(pod *v1.Pod) bool
- func IsPodReadyConditionTrue(status v1.PodStatus) bool
- func LabelsForDeployment(deploymentName string) map[string]string
- type AEMDeploymentController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPodCondition ¶
func GetPodCondition(status *v1.PodStatus, conditionType v1.PodConditionType) (int, *v1.PodCondition)
GetPodCondition extracts the provided condition from the given status and returns that. Returns nil and -1 if the condition is not present, and the index of the located condition.
func GetPodReadyCondition ¶
func GetPodReadyCondition(status v1.PodStatus) *v1.PodCondition
GetPodReadyCondition extracts the pod ready condition from the given status and returns that. Returns nil if the condition is not present.
func IsPodReady ¶
IsPodReady returns true if a pod is ready; false otherwise.
func IsPodReadyConditionTrue ¶
IsPodReadyConditionTrue retruns true if a pod is ready; false otherwise.
func LabelsForDeployment ¶
LabelsForDeployment returns the map of labels for an AEM deployment.
Types ¶
type AEMDeploymentController ¶
type AEMDeploymentController struct {
// contains filtered or unexported fields
}
AEMDeploymentController represents the main operator controller.
func NewAEMController ¶
func NewAEMController(kubeconfig string, logger *zap.Logger) (*AEMDeploymentController, error)
NewAEMController creates a new controller for the AEM Operator.
func (*AEMDeploymentController) Run ¶
func (ac *AEMDeploymentController) Run(stop <-chan struct{})
Run runs the controller.