controllers

package
v0.0.0-...-87359d1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmptyComposeID = ""

	RequeueForLongDuration  = time.Minute * 2
	RequeueForShortDuration = time.Second * 10
)
View Source
const (
	ComposerComposerAPIServiceName = "osbuild-composer"
)
View Source
const (
	// Common errors
	FailedPatchLastTargetType = "Failed to set the OSBuildConfig lastTargetType"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OSBuildConfigReconciler

type OSBuildConfigReconciler struct {
	OSBuildConfigRepository osbuildconfig.Repository
	OSBuildRepository       osbuild.Repository
	OSBuildCRCreator        manifests.OSBuildCRCreator
}

OSBuildConfigReconciler reconciles a OSBuildConfig object

func (*OSBuildConfigReconciler) Reconcile

func (r *OSBuildConfigReconciler) 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 OSBuildConfig 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.11.0/pkg/reconcile

func (*OSBuildConfigReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type OSBuildConfigTemplateReconciler

type OSBuildConfigTemplateReconciler struct {
	client.Client
	Scheme                          *runtime.Scheme
	OSBuildConfigRepository         osbuildconfig.Repository
	OSBuildConfigTemplateRepository osbuildconfigtemplate.Repository
}

OSBuildConfigTemplateReconciler reconciles a OSBuildConfigTemplate object

func (*OSBuildConfigTemplateReconciler) 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 OSBuildConfigTemplate 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.11.2/pkg/reconcile

func (*OSBuildConfigTemplateReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type OSBuildEnvConfigReconciler

type OSBuildEnvConfigReconciler struct {
	Scheme                     *runtime.Scheme
	OSBuildEnvConfigRepository osbuildenvconfig.Repository
	CertificateRepository      certificate.Repository
	ConfigMapRepository        configmap.Repository
	DeploymentRepository       deployment.Repository
	JobRepository              job.Repository
	ServiceRepository          service.Repository
	SecretRepository           secret.Repository
	RouteRepository            route.Repository
	VirtualMachineRepository   virtualmachine.Repository
	SSHKeyGenerator            sshkey.SSHKeyGenerator
}

OSBuildEnvConfigReconciler reconciles a OSBuildEnvConfig object

func (*OSBuildEnvConfigReconciler) Finalize

func (*OSBuildEnvConfigReconciler) 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 OSBuildEnvConfig 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.11.0/pkg/reconcile

func (*OSBuildEnvConfigReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

func (*OSBuildEnvConfigReconciler) Update

type OSBuildReconciler

type OSBuildReconciler struct {
	Scheme            *runtime.Scheme
	OSBuildRepository repositoryosbuild.Repository
	ComposerClient    composer.ClientWithResponsesInterface
}

OSBuildReconciler reconciles a OSBuild object

func (*OSBuildReconciler) Reconcile

func (r *OSBuildReconciler) 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 OSBuild 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.11.0/pkg/reconcile

func (*OSBuildReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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