ironic

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: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ServiceName -
	ServiceName = "ironic"
	// ServiceType -
	ServiceType = "baremetal"
	// DatabaseName -
	DatabaseName = "ironic"
	// IronicPublicPort -
	IronicPublicPort int32 = 6385
	// IronicInternalPort -
	IronicInternalPort int32 = 6385
	// KollaConfigDbSync -
	KollaConfigDbSync = "/var/lib/config-data/merged/db-sync-config.json"
	// ConductorComponent -
	ConductorComponent = "conductor"
	// HttpbootComponent -
	HttpbootComponent = "httpboot"
	// JSONRPCComponent -
	JSONRPCComponent = "jsonrpc"
	// DhcpComponent -
	DhcpComponent = "dhcp"
	// APIComponent -
	APIComponent = "api"
	// InspectorComponent -
	InspectorComponent = "inspector"
	// ConductorGroupSelector -
	ConductorGroupSelector = "conductorGroup"
	// ImageDirectory -
	ImageDirectory = "/var/lib/ironic/httpboot"
	// LogPath - Log path for Ironc API
	LogPath = "/var/log/ironic/ironic-api.log"
)
View Source
const (
	// InitContainerCommand -
	InitContainerCommand = "/usr/local/bin/container-scripts/init.sh"

	// PxeInitContainerCommand -
	PxeInitContainerCommand = "/usr/local/bin/container-scripts/pxe-init.sh"

	// ConductorInitContainerCommand -
	ConductorInitContainerCommand = "/usr/local/bin/container-scripts/conductor-init.sh"
)
View Source
const (
	// DBSyncCommand -
	DBSyncCommand = "/usr/local/bin/kolla_set_configs && /bin/bash -c 'ironic-dbsync --config-file /etc/ironic/ironic.conf'"
)

Variables

This section is empty.

Functions

func DbSyncJob

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

DbSyncJob func

func GetIngressDomain

func GetIngressDomain(
	ctx context.Context,
	helper *helper.Helper,
) (string, error)

GetIngressDomain - Get the Ingress Domain of cluster

func GetInitVolumeMounts

func GetInitVolumeMounts() []corev1.VolumeMount

GetInitVolumeMounts - Ironic init task VolumeMounts

func GetVolumeMounts

func GetVolumeMounts() []corev1.VolumeMount

GetVolumeMounts - Ironic VolumeMounts

func GetVolumes

func GetVolumes(name string) []corev1.Volume

GetVolumes -

func InitContainer

func InitContainer(init APIDetails) []corev1.Container

InitContainer - init container for Ironic pods

func PrefixOrNetmaskFromCIDR

func PrefixOrNetmaskFromCIDR(
	DHCPRanges []ironicv1.DHCPRange,
) ([]ironicv1.DHCPRange, error)

PrefixOrNetmaskFromCIDR - Parses the CIDRs in DHCPRanges and extrapolate dotted decimal Netmask (IPv4) or Prefix bit's (IPv6). Returns new DHCPRanges list with Prefix or Netmask populated.

func TransportURLCreateOrUpdate

func TransportURLCreateOrUpdate(
	Name string,
	Namespace string,
	RabbitMqClusterName string,
	instance metav1.Object,
	helper *helper.Helper,
) (*rabbitmqv1.TransportURL, controllerutil.OperationResult, error)

TransportURLCreateOrUpdate - creates or updates rabbitmq transport URL

Types

type APIDetails

type APIDetails struct {
	ContainerImage         string
	PxeContainerImage      string
	IronicPythonAgentImage string
	DatabaseHost           string
	DatabaseName           string
	TransportURLSecret     string
	OSPSecret              string
	DBPasswordSelector     string
	UserPasswordSelector   string
	VolumeMounts           []corev1.VolumeMount
	Privileged             bool
	PxeInit                bool
	ConductorInit          bool
	DeployHTTPURL          string
	IngressDomain          string
	ProvisionNetwork       string
	ImageDirectory         string
}

APIDetails information

Jump to

Keyboard shortcuts

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