deployment

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CtlPlaneNetwork - default CtlPlane Network Name in NetConfig
	CtlPlaneNetwork = "CtlPlane"

	// ValidateNetworkLabel for ValidateNetwork OpenStackAnsibleEE
	ValidateNetworkLabel = "dataplane-deployment-validate-network"

	// InstallOSLabel for InstallOS OpenStackAnsibleEE
	InstallOSLabel = "dataplane-deployment-install-os"

	// ConfigureOSLabel for ConfigureOS OpenStackAnsibleEE
	ConfigureOSLabel = "dataplane-deployment-configure-os"

	// RunOSLabel for RunOS OpenStackAnsibleEE
	RunOSLabel = "dataplane-deployment-run-os"

	// ConfigureCephClientLabel for ConfigureCephClient OpenStackAnsibleEE
	ConfigureCephClientLabel = "dataplane-deployment-configure-ceph-client"

	// InstallOpenStackLabel for InstallOpenStack OpenStackAnsibleEE
	InstallOpenStackLabel = "dataplane-deployment-install-openstack"

	// ConfigureOpenStackLabel for ConfigureOpenStack OpenStackAnsibleEE
	ConfigureOpenStackLabel = "dataplane-deployment-configure-openstack"

	// RunOpenStackLabel for RunOpenStack OpenStackAnsibleEE
	RunOpenStackLabel = "dataplane-deployment-run-openstack"

	// NicConfigTemplateFile is the custom nic config file we use when user provided network config templates are provided.
	NicConfigTemplateFile = "/runner/network/nic-config-template"
)

Variables

This section is empty.

Functions

func BuildBMHHostMap

func BuildBMHHostMap(ctx context.Context, helper *helper.Helper,
	instance *dataplanev1.OpenStackDataPlane,
	nodes *dataplanev1.OpenStackDataPlaneNodeList,
	roleManagedHostMap map[string]map[string]baremetalv1.InstanceSpec) error

BuildBMHHostMap Build managed host map for all roles

func ConditionalDeploy

func ConditionalDeploy(
	ctx context.Context,
	helper *helper.Helper,
	obj client.Object,
	sshKeySecret string,
	inventoryConfigMap string,
	status *dataplanev1.OpenStackDataPlaneStatus,
	readyCondition condition.Type,
	readyMessage string,
	readyWaitingMessage string,
	readyErrorMessage string,
	deployFunc deployFuncDef,
	deployName string,
	deployLabel string,
	aeeSpec dataplanev1.AnsibleEESpec,
	foundService dataplanev1.OpenStackDataPlaneService,
) error

ConditionalDeploy function encapsulating primary deloyment handling with conditions.

func ConfigureCephClient

func ConfigureCephClient(ctx context.Context, helper *helper.Helper, obj client.Object, sshKeySecret string, inventoryConfigMap string, aeeSpec dataplanev1.AnsibleEESpec, foundService dataplanev1.OpenStackDataPlaneService) error

ConfigureCephClient ensures the Ceph client configuration files are on data plane nodes

func Deploy

func Deploy(
	ctx context.Context,
	helper *helper.Helper,
	obj client.Object,
	nodes *dataplanev1.OpenStackDataPlaneNodeList,
	sshKeySecret string,
	inventoryConfigMap string,
	status *dataplanev1.OpenStackDataPlaneStatus,
	aeeSpec dataplanev1.AnsibleEESpec,
	services []string,
	role *dataplanev1.OpenStackDataPlaneRole,
) (*ctrl.Result, error)

Deploy function encapsulating primary deloyment handling

func DeployBaremetalSet

func DeployBaremetalSet(
	ctx context.Context, helper *helper.Helper, instance *dataplanev1.OpenStackDataPlaneRole,
	nodes *dataplanev1.OpenStackDataPlaneNodeList, ipSets map[string]infranetworkv1.IPSet,
	dnsAddresses []string,
) (bool, error)

DeployBaremetalSet Deploy OpenStackBaremetalSet

func DeployNovaExternalCompute

func DeployNovaExternalCompute(
	ctx context.Context,
	helper *helper.Helper,
	node *dataplanev1.OpenStackDataPlaneNode,
	owner client.Object,
	sshKeySecret string,
	inventoryConfigMap string,
	status *dataplanev1.OpenStackDataPlaneStatus,
	aeeSpec dataplanev1.AnsibleEESpec,
	template dataplanev1.NovaTemplate,
) (*novav1beta1.NovaExternalCompute, error)

DeployNovaExternalCompute deploys the nova compute configuration and services

func DeployService

func DeployService(ctx context.Context, helper *helper.Helper, obj client.Object, sshKeySecret string, inventoryConfigMap string, aeeSpec dataplanev1.AnsibleEESpec, foundService dataplanev1.OpenStackDataPlaneService) error

DeployService service deployment

func EnsureDNSData

EnsureDNSData Ensures DNSData is created

func EnsureIPSets

EnsureIPSets Creates the IPSets

func EnsureServices

func EnsureServices(ctx context.Context, helper *helper.Helper, instance *dataplanev1.OpenStackDataPlaneRole) error

EnsureServices - ensure the OpenStackDataPlaneServices exist

func GenerateNodeInventory

func GenerateNodeInventory(ctx context.Context, helper *helper.Helper,
	instance *dataplanev1.OpenStackDataPlaneNode,
	instanceRole *dataplanev1.OpenStackDataPlaneRole) (string, error)

GenerateNodeInventory yields a parsed Inventory for node

func GenerateRoleInventory

func GenerateRoleInventory(ctx context.Context, helper *helper.Helper,
	instance *dataplanev1.OpenStackDataPlaneRole,
	nodes []dataplanev1.OpenStackDataPlaneNode,
	allIPSets map[string]infranetworkv1.IPSet, dnsAddresses []string) (string, error)

GenerateRoleInventory yields a parsed Inventory for role

func GetService

func GetService(ctx context.Context, helper *helper.Helper, service string) (dataplanev1.OpenStackDataPlaneService, error)

GetService return service

func GetServices

func GetServices(instance *dataplanev1.OpenStackDataPlaneNode,
	instanceRole *dataplanev1.OpenStackDataPlaneRole) []string

GetServices returns the list of services for the node's role Note that these are not inherited from NodeTemplate.

Types

type ServiceYAML

type ServiceYAML struct {
	Kind     string
	Metadata yaml.Node
	Spec     yaml.Node
}

ServiceYAML struct for service YAML unmarshalling

Jump to

Keyboard shortcuts

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