Documentation ¶
Index ¶
- func BoolPointer(b bool) *bool
- func CreationSpecsEqual(m1 metav1.ObjectMeta, m2 metav1.ObjectMeta) bool
- func DeviceFarmLabels(cr *androidv1alpha1.AndroidFarm, group *androidv1alpha1.DeviceGroup) map[string]string
- func DeviceIntToString(i int) string
- func DeviceLabels(cr *androidv1alpha1.AndroidDevice) map[string]string
- func GetClusterSuffix() string
- func GetPodADBPort(pod corev1.Pod) (int32, error)
- func Int64Ptr(i int64) *int64
- func IntFromDeviceString(s string) (int, error)
- func IsFarmedDevice(cr *androidv1alpha1.AndroidDevice) bool
- func IsMarkedForDeletion(cr *androidv1alpha1.AndroidFarm) bool
- func ReconcileCertificate(reqLogger logr.Logger, c client.Client, cert *cm.Certificate, wait bool) error
- func ReconcileConfigMap(reqLogger logr.Logger, c client.Client, cm *corev1.ConfigMap) error
- func ReconcileDeployment(reqLogger logr.Logger, c client.Client, deployment *appsv1.Deployment, ...) error
- func ReconcileDevice(reqLogger logr.Logger, c client.Client, device *androidv1alpha1.AndroidDevice, ...) error
- func ReconcileJob(reqLogger logr.Logger, c client.Client, job *batchv1.Job, wait bool) error
- func ReconcilePod(reqLogger logr.Logger, c client.Client, pod *corev1.Pod) (bool, error)
- func ReconcileService(reqLogger logr.Logger, c client.Client, svc *corev1.Service) error
- func ReconcileStatefulSet(reqLogger logr.Logger, c client.Client, ss *appsv1.StatefulSet) error
- func SetCreationSpecAnnotation(meta *metav1.ObjectMeta, obj runtime.Object) error
- type FarmReconcileFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolPointer ¶
func CreationSpecsEqual ¶
func CreationSpecsEqual(m1 metav1.ObjectMeta, m2 metav1.ObjectMeta) bool
func DeviceFarmLabels ¶
func DeviceFarmLabels(cr *androidv1alpha1.AndroidFarm, group *androidv1alpha1.DeviceGroup) map[string]string
func DeviceIntToString ¶
func DeviceLabels ¶
func DeviceLabels(cr *androidv1alpha1.AndroidDevice) map[string]string
func GetClusterSuffix ¶
func GetClusterSuffix() string
func IntFromDeviceString ¶
func IsFarmedDevice ¶
func IsFarmedDevice(cr *androidv1alpha1.AndroidDevice) bool
func IsMarkedForDeletion ¶
func IsMarkedForDeletion(cr *androidv1alpha1.AndroidFarm) bool
func ReconcileCertificate ¶
func ReconcileConfigMap ¶
ReconcileConfigMap will reconcile a given configmap definition with the cluster.
func ReconcileDeployment ¶
func ReconcileDeployment(reqLogger logr.Logger, c client.Client, deployment *appsv1.Deployment, wait bool) error
ReconcileDeployment reconciles a given deployment configuration with the cluster. If wait is true, then the deployment is checked for readiness and requeued if not all replicas are available.
func ReconcileDevice ¶
func ReconcileDevice(reqLogger logr.Logger, c client.Client, device *androidv1alpha1.AndroidDevice, checkUpdate func(string) bool) error
ReconcileDevice reconciles an AndroidDevice CR with the cluster. The checkUpdate function provided will be called if an update is required. If the function returns false, the request is requeued.
func ReconcileJob ¶
ReconcileJob will ensure a job runs on the cluster. If wait is true, the request will be requeued if the job exists and has not yet completed.
func ReconcilePod ¶
ReconcilePod will reconcile a given pod definition with the cluster. If a pod with the same name exists but has a different configuration, the pod will be deleted and requeued. If the found pod has a deletion timestamp (e.g. it is still terminating) then the request will also be requued.
func ReconcileService ¶
ReconcileService will reconcile a provided service spec with the cluster.
func ReconcileStatefulSet ¶
ReconcileStatefulSet reconciles a statefulset configuration with the cluster.
func SetCreationSpecAnnotation ¶
func SetCreationSpecAnnotation(meta *metav1.ObjectMeta, obj runtime.Object) error
Types ¶
type FarmReconcileFunc ¶
type FarmReconcileFunc func(logr.Logger, *androidv1alpha1.AndroidFarm) error