image

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 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

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

func DefaultVolumes

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

func InitCointainer

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

func InitConfigMap

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

func Job

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

func NewVolumeFrom

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