Documentation ¶
Index ¶
- Constants
- type OSBuildConfigReconciler
- type OSBuildConfigTemplateReconciler
- type OSBuildEnvConfigReconciler
- func (r *OSBuildEnvConfigReconciler) Finalize(ctx context.Context, reqLogger logr.Logger, ...) (ctrl.Result, error)
- func (r *OSBuildEnvConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *OSBuildEnvConfigReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *OSBuildEnvConfigReconciler) Update(ctx context.Context, reqLogger logr.Logger, ...) (ctrl.Result, error)
- type OSBuildReconciler
Constants ¶
const ( EmptyComposeID = "" RequeueForLongDuration = time.Minute * 2 RequeueForShortDuration = time.Second * 10 )
const (
ComposerComposerAPIServiceName = "osbuild-composer"
)
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 ¶
func (r *OSBuildConfigTemplateReconciler) 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 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 (r *OSBuildEnvConfigReconciler) Finalize(ctx context.Context, reqLogger logr.Logger, instance *osbuildv1alpha1.OSBuildEnvConfig) (ctrl.Result, error)
func (*OSBuildEnvConfigReconciler) Reconcile ¶
func (r *OSBuildEnvConfigReconciler) 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 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 ¶
func (r *OSBuildEnvConfigReconciler) Update(ctx context.Context, reqLogger logr.Logger, instance *osbuildv1alpha1.OSBuildEnvConfig) (ctrl.Result, error)
type OSBuildReconciler ¶
type OSBuildReconciler struct { Scheme *runtime.Scheme OSBuildRepository repositoryosbuild.Repository ComposerClient composer.ClientWithResponsesInterface }
OSBuildReconciler reconciles a OSBuild object
func (*OSBuildReconciler) 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 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.