Documentation ¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- func CheckIngressRulesExist(config *EIConfigNew, currentIngress *networking.Ingress) ([]networking.IngressRule, bool)
- func GenerateIngressPaths(m *wso2v1alpha2.Integration) []networking.HTTPIngressPath
- type EIConfigNew
- type ReconcileIntegration
- func (r *ReconcileIntegration) GetConfigMap(integration *wso2v1alpha2.Integration, configMapName string) (*corev1.ConfigMap, error)
- func (r *ReconcileIntegration) PopulateConfigurations(integration *wso2v1alpha2.Integration) (EIConfigNew, error)
- func (r *ReconcileIntegration) Reconcile(request reconcile.Request) (reconcile.Result, error)
Constants ¶
const ( //define type Int and String Int intstr.Type = iota String )
define type const
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add creates a new Integration Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.
func CheckIngressRulesExist ¶
func CheckIngressRulesExist(config *EIConfigNew, currentIngress *networking.Ingress) ([]networking.IngressRule, bool)
CheckIngressRulesExist checks the ingress rules are exist in current ingress
func GenerateIngressPaths ¶
func GenerateIngressPaths(m *wso2v1alpha2.Integration) []networking.HTTPIngressPath
GenerateIngressPaths generates the ingress paths
Types ¶
type EIConfigNew ¶
type EIConfigNew struct {
// contains filtered or unexported fields
}
EIConfigNew bares all configurations related to EI deployment
type ReconcileIntegration ¶
type ReconcileIntegration struct {
// contains filtered or unexported fields
}
ReconcileIntegration reconciles a Integration object
func (*ReconcileIntegration) GetConfigMap ¶
func (r *ReconcileIntegration) GetConfigMap(integration *wso2v1alpha2.Integration, configMapName string) (*corev1.ConfigMap, error)
Get configmap by the given name
func (*ReconcileIntegration) PopulateConfigurations ¶
func (r *ReconcileIntegration) PopulateConfigurations(integration *wso2v1alpha2.Integration) (EIConfigNew, error)
PopulateConfigurations updates the default configs of Host, TLS, and ingress creation. Read from Integration first, If not defined, read defaults from integrationConfigMap and update integration
func (*ReconcileIntegration) Reconcile ¶
Reconcile reads that state of the cluster for a Integration object and makes changes based on the state read and what is in the Integration.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.