Documentation
¶
Index ¶
- func CustomizeAffinity(a *corev1.Affinity, cr *appsodyv1beta1.AppsodyApplication)
- func CustomizeDeployment(deploy *appsv1.Deployment, cr *appsodyv1beta1.AppsodyApplication)
- func CustomizeHPA(hpa *autoscalingv1.HorizontalPodAutoscaler, ...)
- func CustomizeKnativeService(ksvc *servingv1alpha1.Service, cr *appsodyv1beta1.AppsodyApplication)
- func CustomizePersistence(statefulSet *appsv1.StatefulSet, cr *appsodyv1beta1.AppsodyApplication)
- func CustomizePodSpec(pts *corev1.PodTemplateSpec, cr *appsodyv1beta1.AppsodyApplication)
- func CustomizeRoute(route *routev1.Route, cr *appsodyv1beta1.AppsodyApplication)
- func CustomizeService(svc *corev1.Service, cr *appsodyv1beta1.AppsodyApplication)
- func CustomizeServiceAccount(sa *corev1.ServiceAccount, cr *appsodyv1beta1.AppsodyApplication)
- func CustomizeServiceMonitor(sm *prometheusv1.ServiceMonitor, cr *appsodyv1beta1.AppsodyApplication)
- func CustomizeStatefulSet(statefulSet *appsv1.StatefulSet, cr *appsodyv1beta1.AppsodyApplication)
- func ErrorIsNoMatchesForKind(err error, kind string, version string) bool
- func GetCondition(conditionType appsodyv1beta1.StatusConditionType, ...) *appsodyv1beta1.StatusCondition
- func GetLabels(cr *appsodyv1beta1.AppsodyApplication) map[string]string
- func GetWatchNamespaces() ([]string, error)
- func Initialize(cr *appsodyv1beta1.AppsodyApplication, ...)
- func SetCondition(condition appsodyv1beta1.StatusCondition, ...)
- func UpdateAppDefinition(labels map[string]string, annotations map[string]string, ...)
- func Validate(cr *appsodyv1beta1.AppsodyApplication) (bool, error)
- type ReconcilerBase
- func (r *ReconcilerBase) CreateOrUpdate(obj metav1.Object, owner metav1.Object, reconcile func() error) error
- func (r *ReconcilerBase) DeleteResource(obj runtime.Object) error
- func (r *ReconcilerBase) DeleteResources(resources []runtime.Object) error
- func (r *ReconcilerBase) GetAppsodyOpConfigMap(name string, ns string) (*corev1.ConfigMap, error)
- func (r *ReconcilerBase) GetClient() client.Client
- func (r *ReconcilerBase) GetDiscoveryClient() (discovery.DiscoveryInterface, error)
- func (r *ReconcilerBase) GetRecorder() record.EventRecorder
- func (r *ReconcilerBase) IsGroupVersionSupported(groupVersion string) (bool, error)
- func (r *ReconcilerBase) ManageError(issue error, conditionType appsodyv1beta1.StatusConditionType, ...) (reconcile.Result, error)
- func (r *ReconcilerBase) ManageSuccess(conditionType appsodyv1beta1.StatusConditionType, ...) (reconcile.Result, error)
- func (r *ReconcilerBase) SetDiscoveryClient(discovery discovery.DiscoveryInterface)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomizeAffinity ¶
func CustomizeAffinity(a *corev1.Affinity, cr *appsodyv1beta1.AppsodyApplication)
CustomizeAffinity ...
func CustomizeDeployment ¶ added in v0.2.0
func CustomizeDeployment(deploy *appsv1.Deployment, cr *appsodyv1beta1.AppsodyApplication)
CustomizeDeployment ...
func CustomizeHPA ¶
func CustomizeHPA(hpa *autoscalingv1.HorizontalPodAutoscaler, cr *appsodyv1beta1.AppsodyApplication)
CustomizeHPA ...
func CustomizeKnativeService ¶
func CustomizeKnativeService(ksvc *servingv1alpha1.Service, cr *appsodyv1beta1.AppsodyApplication)
CustomizeKnativeService ...
func CustomizePersistence ¶
func CustomizePersistence(statefulSet *appsv1.StatefulSet, cr *appsodyv1beta1.AppsodyApplication)
CustomizePersistence ...
func CustomizePodSpec ¶
func CustomizePodSpec(pts *corev1.PodTemplateSpec, cr *appsodyv1beta1.AppsodyApplication)
CustomizePodSpec ...
func CustomizeRoute ¶
func CustomizeRoute(route *routev1.Route, cr *appsodyv1beta1.AppsodyApplication)
CustomizeRoute ...
func CustomizeService ¶
func CustomizeService(svc *corev1.Service, cr *appsodyv1beta1.AppsodyApplication)
CustomizeService ...
func CustomizeServiceAccount ¶
func CustomizeServiceAccount(sa *corev1.ServiceAccount, cr *appsodyv1beta1.AppsodyApplication)
CustomizeServiceAccount ...
func CustomizeServiceMonitor ¶ added in v0.2.0
func CustomizeServiceMonitor(sm *prometheusv1.ServiceMonitor, cr *appsodyv1beta1.AppsodyApplication)
CustomizeServiceMonitor ...
func CustomizeStatefulSet ¶ added in v0.2.0
func CustomizeStatefulSet(statefulSet *appsv1.StatefulSet, cr *appsodyv1beta1.AppsodyApplication)
CustomizeStatefulSet ...
func ErrorIsNoMatchesForKind ¶
ErrorIsNoMatchesForKind ...
func GetCondition ¶
func GetCondition(conditionType appsodyv1beta1.StatusConditionType, status *appsodyv1beta1.AppsodyApplicationStatus) *appsodyv1beta1.StatusCondition
GetCondition ...
func GetLabels ¶
func GetLabels(cr *appsodyv1beta1.AppsodyApplication) map[string]string
GetLabels ...
func GetWatchNamespaces ¶ added in v0.2.0
GetWatchNamespaces returns a slice of namespaces the operator should watch based on WATCH_NAMESPSCE value WATCH_NAMESPSCE value could be empty for watching the whole cluster or a comma-separated list of namespaces
func Initialize ¶ added in v0.2.0
func Initialize(cr *appsodyv1beta1.AppsodyApplication, defaults appsodyv1beta1.AppsodyApplicationSpec, constants *appsodyv1beta1.AppsodyApplicationSpec)
Initialize the AppsodyApplication instance with values from the default and constant ConfigMap
func SetCondition ¶
func SetCondition(condition appsodyv1beta1.StatusCondition, status *appsodyv1beta1.AppsodyApplicationStatus)
SetCondition ...
func UpdateAppDefinition ¶ added in v0.2.0
func UpdateAppDefinition(labels map[string]string, annotations map[string]string, cr *appsodyv1beta1.AppsodyApplication)
UpdateAppDefinition ...
func Validate ¶ added in v0.2.0
func Validate(cr *appsodyv1beta1.AppsodyApplication) (bool, error)
Validate if the AppsodyApplication is valid
Types ¶
type ReconcilerBase ¶
type ReconcilerBase struct {
// contains filtered or unexported fields
}
ReconcilerBase base reconciler with some common behaviour
func NewReconcilerBase ¶
func NewReconcilerBase(client client.Client, scheme *runtime.Scheme, restConfig *rest.Config, recorder record.EventRecorder) ReconcilerBase
NewReconcilerBase creates a new ReconcilerBase
func (*ReconcilerBase) CreateOrUpdate ¶
func (r *ReconcilerBase) CreateOrUpdate(obj metav1.Object, owner metav1.Object, reconcile func() error) error
CreateOrUpdate ...
func (*ReconcilerBase) DeleteResource ¶
func (r *ReconcilerBase) DeleteResource(obj runtime.Object) error
DeleteResource deletes kubernetes resource
func (*ReconcilerBase) DeleteResources ¶
func (r *ReconcilerBase) DeleteResources(resources []runtime.Object) error
DeleteResources ...
func (*ReconcilerBase) GetAppsodyOpConfigMap ¶
GetAppsodyOpConfigMap ...
func (*ReconcilerBase) GetClient ¶
func (r *ReconcilerBase) GetClient() client.Client
GetClient returns client
func (*ReconcilerBase) GetDiscoveryClient ¶
func (r *ReconcilerBase) GetDiscoveryClient() (discovery.DiscoveryInterface, error)
GetDiscoveryClient ...
func (*ReconcilerBase) GetRecorder ¶
func (r *ReconcilerBase) GetRecorder() record.EventRecorder
GetRecorder returns the underlying recorder
func (*ReconcilerBase) IsGroupVersionSupported ¶
func (r *ReconcilerBase) IsGroupVersionSupported(groupVersion string) (bool, error)
IsGroupVersionSupported ...
func (*ReconcilerBase) ManageError ¶
func (r *ReconcilerBase) ManageError(issue error, conditionType appsodyv1beta1.StatusConditionType, cr *appsodyv1beta1.AppsodyApplication) (reconcile.Result, error)
ManageError ...
func (*ReconcilerBase) ManageSuccess ¶
func (r *ReconcilerBase) ManageSuccess(conditionType appsodyv1beta1.StatusConditionType, cr *appsodyv1beta1.AppsodyApplication) (reconcile.Result, error)
ManageSuccess ...
func (*ReconcilerBase) SetDiscoveryClient ¶
func (r *ReconcilerBase) SetDiscoveryClient(discovery discovery.DiscoveryInterface)
SetDiscoveryClient ...