ironicinspector

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DatabaseName -
	DatabaseName = "ironic_inspector"
	// IronicInspectorPublicPort -
	IronicInspectorPublicPort int32 = 5050
	// IronicInspectorInternalPort -
	IronicInspectorInternalPort int32 = 5050
	// KollaConfigDbSync -
	KollaConfigDbSync = "/var/lib/config-data/merged/db-sync-config.json"
	// KollaConfig -
	KollaConfig = "/var/lib/config-data/merged/ironic-inspector-config.json"
	// DnsmasqKollaConfig -
	DnsmasqKollaConfig = "/var/lib/config-data/merged/dnsmasq-config.json"
	// HttpbootKollaConfig -
	HttpbootKollaConfig = "/var/lib/config-data/merged/httpboot-config.json"
)
View Source
const (
	// InitContainerCommand -
	InitContainerCommand = "/usr/local/bin/container-scripts/init.sh"

	// PxeInitContainerCommand -
	PxeInitContainerCommand = "/usr/local/bin/container-scripts/pxe-init.sh"
)
View Source
const (
	// DBSyncCommand -
	DBSyncCommand = "" /* 133-byte string literal not displayed */
)
View Source
const (
	// ServiceCommand -
	ServiceCommand = "/usr/local/bin/kolla_set_configs && /usr/local/bin/kolla_start"
)

Variables

This section is empty.

Functions

func DbSyncJob

func DbSyncJob(
	instance *ironicv1.IronicInspector,
	labels map[string]string,
) *batchv1.Job

DbSyncJob func

func GetInitVolumeMounts

func GetInitVolumeMounts() []corev1.VolumeMount

GetInitVolumeMounts - Ironic Inspector init task VolumeMounts

func GetVolumeMounts

func GetVolumeMounts() []corev1.VolumeMount

GetVolumeMounts - Ironic Inspector VolumeMounts

func GetVolumes

func GetVolumes(name string) []corev1.Volume

GetVolumes -

func InitContainer

func InitContainer(init APIDetails) []corev1.Container

InitContainer - init container for Ironic Inspector pods

func InspectorPods

func InspectorPods(
	ctx context.Context,
	instance *ironicv1.IronicInspector,
	helper *helper.Helper,
	serviceLabels map[string]string,
) (*corev1.PodList, error)

InspectorPods - Query current running ironic-inspector pods managed by the statefulset

func Route

func Route(
	serviceName string,
	instance *ironicv1.IronicInspector,
	routeLabels map[string]string,
) *routev1.Route

Route - Route for httpboot service when no inspection network

func Service

func Service(
	serviceName string,
	instance *ironicv1.IronicInspector,
	serviceLabels map[string]string,
) *corev1.Service

Service - Service for conductor pod services

func StatefulSet

func StatefulSet(
	instance *ironicv1.IronicInspector,
	configHash string,
	labels map[string]string,
	ingressDomain string,
	annotations map[string]string,
) *appsv1.StatefulSet

StatefulSet func

Types

type APIDetails

type APIDetails struct {
	ContainerImage       string
	PxeInit              bool
	PxeContainerImage    string
	DatabaseHost         string
	DatabaseName         string
	TransportURLSecret   string
	OSPSecret            string
	DBPasswordSelector   string
	UserPasswordSelector string
	VolumeMounts         []corev1.VolumeMount
	Privileged           bool
	InspectorHTTPURL     string
	IngressDomain        string
	InspectionNetwork    string
}

APIDetails information

Jump to

Keyboard shortcuts

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