Documentation ¶
Overview ¶
Package machines is responsible for creating Machine objects for machinepools.
Index ¶
- func IsMachineManifest(file *asset.File) bool
- type ClusterAPI
- func (c *ClusterAPI) Dependencies() []asset.Asset
- func (c *ClusterAPI) Files() []*asset.File
- func (c *ClusterAPI) Generate(ctx context.Context, dependencies asset.Parents) error
- func (c *ClusterAPI) Load(f asset.FileFetcher) (bool, error)
- func (c *ClusterAPI) Name() string
- func (c *ClusterAPI) RuntimeFiles() []*asset.RuntimeFile
- type Master
- func (m *Master) Dependencies() []asset.Asset
- func (m *Master) Files() []*asset.File
- func (m *Master) Generate(ctx context.Context, dependencies asset.Parents) error
- func (m *Master) IPAddresses() ([]ipamv1.IPAddress, error)
- func (m *Master) Load(f asset.FileFetcher) (found bool, err error)
- func (m *Master) Machines() ([]machinev1beta1.Machine, error)
- func (m *Master) Name() string
- type Worker
- func (w *Worker) Dependencies() []asset.Asset
- func (w *Worker) Files() []*asset.File
- func (w *Worker) Generate(ctx context.Context, dependencies asset.Parents) error
- func (w *Worker) Load(f asset.FileFetcher) (found bool, err error)
- func (w *Worker) MachineSets() ([]machinev1beta1.MachineSet, error)
- func (w *Worker) Name() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsMachineManifest ¶ added in v0.9.2
IsMachineManifest tests whether a file is a manifest that belongs to the Master Machines or Worker Machines asset.
Types ¶
type ClusterAPI ¶ added in v0.90.0
type ClusterAPI struct {
FileList []*asset.RuntimeFile
}
ClusterAPI is the asset for CAPI control-plane manifests.
func (*ClusterAPI) Dependencies ¶ added in v0.90.0
func (c *ClusterAPI) Dependencies() []asset.Asset
Dependencies returns all of the dependencies directly needed by the ClusterAPI machines asset.
func (*ClusterAPI) Files ¶ added in v0.90.0
func (c *ClusterAPI) Files() []*asset.File
Files returns the files generated by the asset.
func (*ClusterAPI) Load ¶ added in v0.90.0
func (c *ClusterAPI) Load(f asset.FileFetcher) (bool, error)
Load returns the openshift asset from disk.
func (*ClusterAPI) Name ¶ added in v0.90.0
func (c *ClusterAPI) Name() string
Name returns a human friendly name for the operator.
func (*ClusterAPI) RuntimeFiles ¶ added in v0.90.0
func (c *ClusterAPI) RuntimeFiles() []*asset.RuntimeFile
RuntimeFiles returns the files generated by the asset.
type Master ¶
type Master struct { UserDataFile *asset.File MachineConfigFiles []*asset.File MachineFiles []*asset.File ControlPlaneMachineSet *asset.File IPClaimFiles []*asset.File IPAddrFiles []*asset.File // SecretFiles is used by the baremetal platform to register the // credential information for communicating with management // controllers on hosts. SecretFiles []*asset.File // NetworkConfigSecretFiles is used by the baremetal platform to // store the networking configuration per host NetworkConfigSecretFiles []*asset.File // HostFiles is the list of baremetal hosts provided in the // installer configuration. HostFiles []*asset.File }
Master generates the machines for the `master` machine pool.
func (*Master) Dependencies ¶
Dependencies returns all of the dependencies directly needed by the Master asset
func (*Master) IPAddresses ¶ added in v0.90.0
IPAddresses returns IPAddress manifest structures.
func (*Master) Load ¶ added in v0.9.2
func (m *Master) Load(f asset.FileFetcher) (found bool, err error)
Load reads the asset files from disk.
type Worker ¶
type Worker struct { UserDataFile *asset.File MachineConfigFiles []*asset.File MachineSetFiles []*asset.File MachineFiles []*asset.File IPClaimFiles []*asset.File IPAddrFiles []*asset.File }
Worker generates the machinesets for `worker` machine pool.
func (*Worker) Dependencies ¶
Dependencies returns all of the dependencies directly needed by the Worker asset
func (*Worker) Load ¶ added in v0.9.2
func (w *Worker) Load(f asset.FileFetcher) (found bool, err error)
Load reads the asset files from disk.
func (*Worker) MachineSets ¶ added in v0.9.2
func (w *Worker) MachineSets() ([]machinev1beta1.MachineSet, error)
MachineSets returns MachineSet manifest structures.
Directories ¶
Path | Synopsis |
---|---|
Package aws generates Machine objects for aws.
|
Package aws generates Machine objects for aws. |
Package azure generates Machine objects for azure.
|
Package azure generates Machine objects for azure. |
Package baremetal generates Machine objects for bare metal.
|
Package baremetal generates Machine objects for bare metal. |
Package gcp generates Machine objects for gcp.
|
Package gcp generates Machine objects for gcp. |
Package generates capi Machine objects for nutanix.
|
Package generates capi Machine objects for nutanix. |
Package openstack generates Machine objects for openstack.
|
Package openstack generates Machine objects for openstack. |
Package ovirt generates Machine objects for ovirt.
|
Package ovirt generates Machine objects for ovirt. |
Package powervs generates Machine objects for powerVS.
|
Package powervs generates Machine objects for powerVS. |
Package vsphere generates Machine objects for vsphere.
|
Package vsphere generates Machine objects for vsphere. |