controllers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PermissionsGrantedReason     = "PermissionsGranted"
	ClientCreationErrorReason    = "ClientCreationError"
	PermissionsNotGrantedReason  = "PermissionsNotGranted"
	ErrorDuringHealthCheckReason = "ErrorDuringHealthCheck"
	HealthCheckFailedReason      = "HealthCheckFailed"
)
View Source
const ServiceClaimFinalizer = "serviceclaims.primaza.io/finalizer"

Variables

This section is empty.

Functions

func ServiceInCatalog

func ServiceInCatalog(sc primazaiov1alpha1.ServiceCatalog, serviceName string) int

Types

type ClusterEnvironmentReconciler

type ClusterEnvironmentReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

ClusterEnvironmentReconciler reconciles a ClusterEnvironment object

func (*ClusterEnvironmentReconciler) CreateServiceCatalog

func (*ClusterEnvironmentReconciler) MonitorHealth

func (r *ClusterEnvironmentReconciler) MonitorHealth(ctx context.Context, ns string, hci int)

func (*ClusterEnvironmentReconciler) Reconcile

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 ClusterEnvironment 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.13.0/pkg/reconcile

func (*ClusterEnvironmentReconciler) RunAppInformer

func (r *ClusterEnvironmentReconciler) RunAppInformer(ctx context.Context, config *rest.Config, ce *v1alpha1.ClusterEnvironment, namespace string) error

func (*ClusterEnvironmentReconciler) RunAppInformers

func (r *ClusterEnvironmentReconciler) RunAppInformers(ctx context.Context, cfg *rest.Config, ce v1alpha1.ClusterEnvironment, failedApplicationNamespaces []string) error

func (*ClusterEnvironmentReconciler) RunSvcInformer

func (r *ClusterEnvironmentReconciler) RunSvcInformer(ctx context.Context, config *rest.Config, ceName string, ceNamespace, namespace string) error

func (*ClusterEnvironmentReconciler) RunSvcInformers

func (r *ClusterEnvironmentReconciler) RunSvcInformers(ctx context.Context, cfg *rest.Config, ce v1alpha1.ClusterEnvironment, failedServiceNamespaces []string) error

func (*ClusterEnvironmentReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ClusterEnvironmentReconcilerConfig

type ClusterEnvironmentReconcilerConfig struct {
	ControlPlaneNamespace  string
	AppAgentImage          string
	SvcAgentImage          string
	AppAgentManifest       string
	SvcAgentManifest       string
	AppAgentConfigManifest string
	SvcAgentConfigManifest string
}

type RegisteredServiceReconciler

type RegisteredServiceReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

RegisteredServiceReconciler reconciles a RegisteredService object

func (*RegisteredServiceReconciler) Reconcile

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 RegisteredService 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.13.0/pkg/reconcile

func (*RegisteredServiceReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ServiceCatalogReconciler

type ServiceCatalogReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

ServiceCatalogReconciler reconciles a ServiceCatalog object

func (*ServiceCatalogReconciler) PushServiceCatalog

func (r *ServiceCatalogReconciler) PushServiceCatalog(ctx context.Context, serviceCatalog v1alpha1.ServiceCatalog, ce v1alpha1.ClusterEnvironment) error

func (*ServiceCatalogReconciler) Reconcile

func (*ServiceCatalogReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ServiceClaimReconciler

type ServiceClaimReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Mapper meta.RESTMapper
}

ServiceClaimReconciler reconciles a ServiceClaim object

func NewServiceClaimReconciler

func NewServiceClaimReconciler(mgr ctrl.Manager) *ServiceClaimReconciler

func (*ServiceClaimReconciler) DeleteServiceBindingsAndSecret

func (r *ServiceClaimReconciler) DeleteServiceBindingsAndSecret(
	ctx context.Context,
	req ctrl.Request,
	sclaim primazaiov1alpha1.ServiceClaim,
) error

func (*ServiceClaimReconciler) Reconcile

func (r *ServiceClaimReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, 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 ServiceClaim 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.13.0/pkg/reconcile

func (*ServiceClaimReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ServiceClassReconciler

type ServiceClassReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

ServiceClassReconciler reconciles a ServiceClass object

func (*ServiceClassReconciler) Reconcile

func (r *ServiceClassReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, 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 ServiceClass 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.13.0/pkg/reconcile

func (*ServiceClassReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis
agents
app
svc

Jump to

Keyboard shortcuts

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