Documentation
¶
Index ¶
- Constants
- func BuildBMHHostMap(ctx context.Context, helper *helper.Helper, ...) error
- func ConditionalDeploy(ctx context.Context, helper *helper.Helper, obj client.Object, ...) error
- func ConfigureCephClient(ctx context.Context, helper *helper.Helper, obj client.Object, ...) error
- func Deploy(ctx context.Context, helper *helper.Helper, obj client.Object, ...) (*ctrl.Result, error)
- func DeployBaremetalSet(ctx context.Context, helper *helper.Helper, ...) (bool, error)
- func DeployNovaExternalCompute(ctx context.Context, helper *helper.Helper, ...) (*novav1beta1.NovaExternalCompute, error)
- func DeployService(ctx context.Context, helper *helper.Helper, obj client.Object, ...) error
- func EnsureDNSData(ctx context.Context, helper *helper.Helper, ...) ([]string, string, bool, error)
- func EnsureIPSets(ctx context.Context, helper *helper.Helper, ...) (map[string]infranetworkv1.IPSet, bool, error)
- func EnsureServices(ctx context.Context, helper *helper.Helper, ...) error
- func GenerateNodeInventory(ctx context.Context, helper *helper.Helper, ...) (string, error)
- func GenerateRoleInventory(ctx context.Context, helper *helper.Helper, ...) (string, error)
- func GetService(ctx context.Context, helper *helper.Helper, service string) (dataplanev1.OpenStackDataPlaneService, error)
- func GetServices(instance *dataplanev1.OpenStackDataPlaneNode, ...) []string
- type ServiceYAML
Constants ¶
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 ¶
func EnsureDNSData(ctx context.Context, helper *helper.Helper, instance *dataplanev1.OpenStackDataPlaneRole, nodes *dataplanev1.OpenStackDataPlaneNodeList, allIPSets map[string]infranetworkv1.IPSet) ([]string, string, bool, error)
EnsureDNSData Ensures DNSData is created
func EnsureIPSets ¶
func EnsureIPSets(ctx context.Context, helper *helper.Helper, instance *dataplanev1.OpenStackDataPlaneRole, nodes *dataplanev1.OpenStackDataPlaneNodeList) (map[string]infranetworkv1.IPSet, bool, error)
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.