controllers

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: MPL-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContext added in v0.7.0

func GetContext(
	ctx context.Context,
	ns string,
	client runtimeClient.Client,
	target *model.Target,
	log logr.Logger,
) (*v1alpha1.OperatorContext, error)

GetContext returns a OperatorContext resource from k8s cluster with namespace/name derived from target. When Spec.FromSecret is provided this reads the secret and loads the environment from it. Values set in .Spec.Env takes precedence over the values from secret

Types

type APIDescriptionReconciler added in v0.7.0

type APIDescriptionReconciler struct {
	client.Client
	Log       logr.Logger
	Scheme    *runtime.Scheme
	Universal universal.Client
	Env       environmet.Env
}

APIDescriptionReconciler reconciles a APIDescription object

func (*APIDescriptionReconciler) Reconcile added in v0.7.0

func (r *APIDescriptionReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*APIDescriptionReconciler) SetupWithManager added in v0.7.0

func (r *APIDescriptionReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ApiDefinitionReconciler

type ApiDefinitionReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Env      environmet.Env
	Recorder record.EventRecorder
}

ApiDefinitionReconciler reconciles a ApiDefinition object

func (*ApiDefinitionReconciler) Reconcile

func (r *ApiDefinitionReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*ApiDefinitionReconciler) SetupWithManager

func (r *ApiDefinitionReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager initializes the api definition controller.

type IngressReconciler

type IngressReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Env      environmet.Env
	Recorder record.EventRecorder
}

IngressReconciler watches and reconciles Ingress objects

func (*IngressReconciler) Reconcile

func (r *IngressReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile perform reconciliation logic for Ingress resource that is managed by the operator.

func (*IngressReconciler) SetupWithManager

func (r *IngressReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager initializes ingress controller manager

type PortalAPICatalogueReconciler added in v0.7.0

type PortalAPICatalogueReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	Env    environmet.Env
}

PortalAPICatalogueReconciler reconciles a PortalAPICatalogue object

func (*PortalAPICatalogueReconciler) Reconcile added in v0.7.0

func (r *PortalAPICatalogueReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the PortalAPICatalogue object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile

func (*PortalAPICatalogueReconciler) SetupWithManager added in v0.7.0

func (r *PortalAPICatalogueReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type PortalConfigReconciler added in v0.7.0

type PortalConfigReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	Env    environmet.Env
}

PortalConfigReconciler reconciles a PortalConfig object

func (*PortalConfigReconciler) Reconcile added in v0.7.0

func (r *PortalConfigReconciler) Reconcile(
	ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the PortalConfig object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile

func (*PortalConfigReconciler) SetupWithManager added in v0.7.0

func (r *PortalConfigReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type SecretCertReconciler

type SecretCertReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	Env    environmet.Env
}

CertReconciler reconciles a Cert object

func (*SecretCertReconciler) Reconcile

func (r *SecretCertReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

type SecurityPolicyReconciler

type SecurityPolicyReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Env      environmet.Env
	Recorder record.EventRecorder
}

SecurityPolicyReconciler reconciles a SecurityPolicy object

func (*SecurityPolicyReconciler) Reconcile

Reconcile reconciles SecurityPolicy custom resources

func (*SecurityPolicyReconciler) SetupWithManager

func (r *SecurityPolicyReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager initializes the security policy controller.

Jump to

Keyboard shortcuts

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