imageconfig

package
v0.0.0-...-fde486f Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerName = "ImageConfig"
)

Variables

This section is empty.

Functions

func GetCloudAwareRegistries

func GetCloudAwareRegistries(instance *arov1alpha1.Cluster) ([]string, error)

Switch case to ensure the correct registries are added depending on the cloud environment (Gov or Public cloud)

Types

type Reconciler

type Reconciler struct {
	base.AROController
}

func NewReconciler

func NewReconciler(log *logrus.Entry, client client.Client) *Reconciler

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)

watches the ARO object for changes and reconciles image.config.openshift.io/cluster object. - If blockedRegistries is not nil, makes sure required registries are not added - If AllowedRegistries is not nil, makes sure required registries are added - Fails fast if both are not nil, unsupported

func (*Reconciler) SetupWithManager

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

SetupWithManager setup the manager

Jump to

Keyboard shortcuts

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