Documentation ¶
Index ¶
- Constants
- func DbSyncJob(instance *ironicv1.Ironic, labels map[string]string) *batchv1.Job
- func GetIngressDomain(ctx context.Context, helper *helper.Helper) (string, error)
- func GetInitVolumeMounts() []corev1.VolumeMount
- func GetVolumeMounts() []corev1.VolumeMount
- func GetVolumes(name string) []corev1.Volume
- func InitContainer(init APIDetails) []corev1.Container
- func PrefixOrNetmaskFromCIDR(DHCPRanges []ironicv1.DHCPRange) ([]ironicv1.DHCPRange, error)
- func TransportURLCreateOrUpdate(Name string, Namespace string, RabbitMqClusterName string, ...) (*rabbitmqv1.TransportURL, controllerutil.OperationResult, error)
- type APIDetails
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 GetIngressDomain ¶
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 InitContainer ¶
func InitContainer(init APIDetails) []corev1.Container
InitContainer - init container for Ironic pods
func PrefixOrNetmaskFromCIDR ¶
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
Click to show internal directories.
Click to hide internal directories.