openstackconfiggenerator

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AppLabel -
	AppLabel = "osp-openstackconfiggenerator"

	// NicTemplateTrain - nic template file for train/16.2
	NicTemplateTrain = "net-config-multi-nic.role.j2.yaml"

	// RenderedNicFileTrain - suffix of the renered train/16.2 file
	RenderedNicFileTrain = "nic-template.role.j2.yaml"

	// NicTemplateWallaby - nic template file for wallaby/17.0 and later
	NicTemplateWallaby = "multiple_nics_dvr.j2"

	// RenderedNicFileWallaby - suffix of the renered wallaby/17.0 file
	RenderedNicFileWallaby = "nic-template.j2"

	// NetworkDataFile - tripleo network data file name
	NetworkDataFile = "network_data.yaml"

	// ConfigGeneratorInputLabel - label set on objects which are input for the configgenerator
	// but not owned by the configgenerator
	ConfigGeneratorInputLabel = "playbook-generator-input"
)

Variables

This section is empty.

Functions

func ConfigJob

func ConfigJob(cr *ospdirectorv1beta1.OpenStackConfigGenerator, configHash string, ospVersion shared.OSPVersion, caConfigMap string) *batchv1.Job

ConfigJob -

func CreateConfigMapParams

func CreateConfigMapParams(
	ctx context.Context,
	r common.ReconcilerCommon,
	instance *ospdirectorv1beta1.OpenStackConfigGenerator,
	cond *shared.Condition,
) (map[string]interface{}, map[string]*RoleType, error)

CreateConfigMapParams - creates a map of parameters to render the required overcloud parameter files

func CtlplaneExports

func CtlplaneExports(heatServiceName string, log logr.Logger) (string, error)

CtlplaneExports -

func GetVolumeMounts

func GetVolumeMounts(instance *ospdirectorv1beta1.OpenStackConfigGenerator, caConfigMap string) []corev1.VolumeMount

GetVolumeMounts -

func GetVolumes

func GetVolumes(instance *ospdirectorv1beta1.OpenStackConfigGenerator, caConfigMap string) []corev1.Volume

GetVolumes -

func IsRoleIncluded

func IsRoleIncluded(roleName string, instance *ospdirectorv1beta1.OpenStackConfigGenerator, ospVersion shared.OSPVersion) bool

IsRoleIncluded - checks if the role exists in the ConfigGenerator Roles set

Types

type RoleType

type RoleType struct {
	Name           string
	NameLower      string
	Networks       map[string]*roleNetworkType
	Nodes          map[string]*roleNodeType
	IsVMType       bool
	IsTripleoRole  bool
	IsControlPlane bool // is vip or serviceVIP
}

RoleType - details of the tripleo role

Jump to

Keyboard shortcuts

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