capi2mapi

package
v0.0.0-...-c0e1cef Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Copyright 2025 Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2025 Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2024 Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2024 Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2024 Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2025 Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertAWSCPUOptionsToMAPI

func ConvertAWSCPUOptionsToMAPI(cpuOptions awsv1.CPUOptions) *mapiv1beta1.CPUOptions

ConvertAWSCPUOptionsToMAPI converts CAPI CPUOptions to MAPI CPUOptions.

func ConvertAWSLoadBalancerToMAPI

func ConvertAWSLoadBalancerToMAPI(loadBalancer *awsv1.AWSLoadBalancerSpec) (mapiv1beta1.LoadBalancerReference, error)

ConvertAWSLoadBalancerToMAPI converts CAPI AWSLoadBalancerSpec to MAPI LoadBalancerReference.

func RawExtensionFromInterface

func RawExtensionFromInterface(spec interface{}) (*runtime.RawExtension, error)

RawExtensionFromInterface marshals the machine provider spec.

Types

type MachineAndInfrastructureMachine

type MachineAndInfrastructureMachine interface {
	ToMachine() (*mapiv1beta1.Machine, []string, error)
}

MachineAndInfrastructureMachine represents the conversion between a CAPI Machine and InfrastructureMachine to a MAPI Machine.

func FromMachineAndAWSMachineAndAWSCluster

func FromMachineAndAWSMachineAndAWSCluster(m *clusterv1.Machine, am *awsv1.AWSMachine, ac *awsv1.AWSCluster) MachineAndInfrastructureMachine

FromMachineAndAWSMachineAndAWSCluster wraps a CAPI Machine and CAPA AWSMachine and CAPA AWSCluster into a capi2mapi MachineAndInfrastructureMachine.

func FromMachineAndOpenStackMachineAndOpenStackCluster

func FromMachineAndOpenStackMachineAndOpenStackCluster(m *clusterv1.Machine, am *openstackv1.OpenStackMachine, ac *openstackv1.OpenStackCluster) MachineAndInfrastructureMachine

FromMachineAndOpenStackMachineAndOpenStackCluster wraps a CAPI Machine and CAPO OpenStackMachine and CAPO OpenStackCluster into a capi2mapi MachineAndInfrastructureMachine.

func FromMachineAndPowerVSMachineAndPowerVSCluster

func FromMachineAndPowerVSMachineAndPowerVSCluster(m *clusterv1.Machine, pm *ibmpowervsv1.IBMPowerVSMachine, pc *ibmpowervsv1.IBMPowerVSCluster) MachineAndInfrastructureMachine

FromMachineAndPowerVSMachineAndPowerVSCluster wraps a CAPI Machine and CAPIBM PowerVSMachine and CAPIBM PowerVSCluster into a capi2mapi MachineAndInfrastructureMachine.

type MachineSetAndMachineTemplate

type MachineSetAndMachineTemplate interface {
	ToMachineSet() (*mapiv1beta1.MachineSet, []string, error)
}

MachineSetAndMachineTemplate represents the conversion between a CAPI MachineSet and MachineTemplate to a MAPI MachineSet.

func FromMachineSetAndAWSMachineTemplateAndAWSCluster

func FromMachineSetAndAWSMachineTemplateAndAWSCluster(ms *clusterv1.MachineSet, mts *awsv1.AWSMachineTemplate, ac *awsv1.AWSCluster) MachineSetAndMachineTemplate

FromMachineSetAndAWSMachineTemplateAndAWSCluster wraps a CAPI MachineSet and CAPA AWSMachineTemplate and CAPA AWSCluster into a capi2mapi MachineSetAndAWSMachineTemplateAndAWSCluster.

func FromMachineSetAndOpenStackMachineTemplateAndOpenStackCluster

func FromMachineSetAndOpenStackMachineTemplateAndOpenStackCluster(ms *clusterv1.MachineSet, mts *openstackv1.OpenStackMachineTemplate, ac *openstackv1.OpenStackCluster) MachineSetAndMachineTemplate

FromMachineSetAndOpenStackMachineTemplateAndOpenStackCluster wraps a CAPI MachineSet and CAPO OpenStackMachineTemplate and CAPO OpenStackCluster into a capi2mapi MachineSetAndOpenStackMachineTemplateAndOpenStackCluster.

func FromMachineSetAndPowerVSMachineTemplateAndPowerVSCluster

func FromMachineSetAndPowerVSMachineTemplateAndPowerVSCluster(ms *clusterv1.MachineSet, mts *ibmpowervsv1.IBMPowerVSMachineTemplate, pc *ibmpowervsv1.IBMPowerVSCluster) MachineSetAndMachineTemplate

FromMachineSetAndPowerVSMachineTemplateAndPowerVSCluster wraps a CAPI MachineSet and CAPIBM PowerVSMachineTemplate and CAPIBM PowerVSCluster into a capi2mapi MachineSetAndAWSMachineTemplateAndAWSCluster.

Jump to

Keyboard shortcuts

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