controller

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigMap

func ConfigMap(image *imagebuilderv1alpha2.Image) *corev1.ConfigMap

func Container added in v0.3.0

func Container(image *imagebuilderv1alpha2.Image, extraVolumeMounts ...corev1.VolumeMount) corev1.Container

func DefaultVolumes added in v0.3.0

func DefaultVolumes(image *imagebuilderv1alpha2.Image) []corev1.Volume

func InitCointainer added in v0.3.0

func InitCointainer(
	ctr imagebuilderv1alpha2.Container,
	name string,
	extraVolumeMounts ...corev1.VolumeMount,
) corev1.Container

func InitConfigMap added in v0.3.0

func InitConfigMap(image *imagebuilderv1alpha2.Image) (*corev1.ConfigMap, error)

func Job

func Job(image *imagebuilderv1alpha2.Image) (*batchv1.Job, error)

func NewConfigMapEntryFrom added in v0.3.0

func NewConfigMapEntryFrom(data imagebuilderv1alpha2.AdditionalData) *fetcherconfig.Fetcher

func NewVolumeFrom added in v0.3.0

func NewVolumeFrom(data imagebuilderv1alpha2.AdditionalData) volumeOpts

func Role

func Role(image *imagebuilderv1alpha2.Image) *rbacv1.Role

func RoleBinding

func RoleBinding(image *imagebuilderv1alpha2.Image) *rbacv1.RoleBinding

func ServiceAccount

func ServiceAccount(image *imagebuilderv1alpha2.Image) *corev1.ServiceAccount

Types

type ImageReconciler

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

ImageReconciler reconciles a Image object.

func (*ImageReconciler) Reconcile

func (r *ImageReconciler) 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.

func (*ImageReconciler) SetupWithManager

func (r *ImageReconciler) 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
OSZAR »