Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandGroup ¶
func CommandGroup(parent *cobra.Command, parentCmdCtx *cmd.CommandContext)
func WriteInventoryAsMachina ¶
func WriteInventoryAsMachina(w io.Writer, inventory *azuredev.Inventory, opts MachinaInventoryOptions) error
WriteInventoryAsMachina writes the inventory as a multi-document YAML stream of machina Machine custom resources that can be applied with kubectl.
func WriteInventoryAsSSH ¶
func WriteInventoryAsSSH(w io.Writer, inventory *azuredev.Inventory, siteName, sshUser, privateKeyPath string) error
WriteInventoryAsSSH writes an SSH config to w for all machines in the inventory. When the inventory has a Bastion, workers are accessed via ProxyJump through the bastion using their private IPs. Otherwise, workers are accessed directly via their public IP and NAT port.
Types ¶
type MachinaInventoryOptions ¶
type MachinaInventoryOptions struct {
// Site is the site name used as a prefix for Machine CR names to avoid
// collisions across sites.
Site string
// BastionHost, when non-empty (e.g. "1.2.3.4" or "1.2.3.4:2222"), causes
// each Machine CR to include a spec.ssh.bastion entry pointing at the
// bastion jump host.
BastionHost string
// SSHSecretRef, when non-nil, sets spec.ssh.privateKeyRef on each Machine.
SSHSecretRef *machinav1alpha3.SecretKeySelector
// BastionSSHSecretRef, when non-nil, sets spec.ssh.bastion.privateKeyRef
// on each Machine. Only effective when BastionHost is also set.
BastionSSHSecretRef *machinav1alpha3.SecretKeySelector
// SSHUsername sets spec.ssh.username on each Machine CR.
SSHUsername string
// BastionSSHUsername sets spec.ssh.bastion.username on each Machine CR.
// Only effective when BastionHost is also set.
BastionSSHUsername string
}
MachinaInventoryOptions holds optional parameters for WriteInventoryAsMachina.
Click to show internal directories.
Click to hide internal directories.