controllers

package
v0.0.0-...-bdfaa18 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterConfigDir = "cluster-configuration"

	FilesDir = "files"
	IsoName  = "imagebasedconfig.iso"
)

Variables

This section is empty.

Functions

func GetClusterConfigDir

func GetClusterConfigDir(namespacesDir, namespace, uid string) string

Types

type ImageClusterInstallMonitor

type ImageClusterInstallMonitor struct {
	client.Client
	Log                          logrus.FieldLogger
	Scheme                       *runtime.Scheme
	DefaultInstallTimeout        time.Duration
	GetSpokeClusterInstallStatus monitor.GetInstallStatusFunc
	Options                      *ImageClusterInstallReconcilerOptions
}

ImageClusterInstallMonitor reconciles a ImageClusterInstall object

func (*ImageClusterInstallMonitor) Reconcile

func (*ImageClusterInstallMonitor) SetupWithManager

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

type ImageClusterInstallReconciler

type ImageClusterInstallReconciler struct {
	client.Client
	credentials.Credentials
	Log             logrus.FieldLogger
	Scheme          *runtime.Scheme
	Options         *ImageClusterInstallReconcilerOptions
	BaseURL         string
	NoncachedClient client.Reader
	Installer       installer.Installer
}

ImageClusterInstallReconciler reconciles a ImageClusterInstall object

func (*ImageClusterInstallReconciler) Reconcile

func (*ImageClusterInstallReconciler) SetupWithManager

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

type ImageClusterInstallReconcilerOptions

type ImageClusterInstallReconcilerOptions struct {
	ServiceName             string        `envconfig:"SERVICE_NAME"`
	ServiceNamespace        string        `envconfig:"SERVICE_NAMESPACE"`
	ServicePort             string        `envconfig:"SERVICE_PORT"`
	ServiceScheme           string        `envconfig:"SERVICE_SCHEME"`
	DataDir                 string        `envconfig:"DATA_DIR" default:"/data"`
	MaxConcurrentReconciles int           `envconfig:"MAX_CONCURRENT_RECONCILES" default:"1"`
	DataImageCoolDownPeriod time.Duration `envconfig:"DATA_IMAGE_COOLDOWN_PERIOD" default:"1s"`
}

Jump to

Keyboard shortcuts

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