mgmtconfig

package
v0.0.0-...-3439013 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Info struct {
		ClusterName string `yaml:"cluster_name"`
		BaseDomain  string `yaml:"base_domain"`
		MachineCIDR struct {
			IPv4 string `yaml:"ipv4"`
			IPv6 string `yaml:"ipv6"`
		} `yaml:"machine_cidr"`
		Hosts map[string]struct {
			Network struct {
				Interfaces map[string]struct {
					MACAddress string `yaml:"mac_address"`
				} `yaml:"interfaces"`
				BondConfig struct {
					Interfaces string `yaml:"interfaces"`
					Options    struct {
						Mode   string `yaml:"mode"`
						MIIMON string `yaml:"miimon"`
					} `yaml:"options"`
				} `yaml:"bond_config"`
				Address struct {
					IPv4 string `yaml:"ipv4"`
					IPv6 string `yaml:"ipv6"`
				} `yaml:"address"`
				Gateway struct {
					IPv4 string `yaml:"ipv4"`
					IPv6 string `yaml:"ipv6"`
				} `yaml:"default_gateway"`
				DNS struct {
					IPv4 string `yaml:"ipv4"`
					IPv6 string `yaml:"ipv6"`
				} `yaml:"dns"`
			} `yaml:"network"`
			BMC struct {
				User       string `yaml:"user"`
				Password   string `yaml:"pass"`
				URLv4      string `yaml:"urlv4"`
				URLv6      string `yaml:"urlv6"`
				MACAddress string `yaml:"mac_address"`
			} `yaml:"bmc"`
		} `yaml:"hosts"`
	} `yaml:"spoke_cluster_info"`
}

Cluster contains resources information that make up the cluster to be installed.

type MGMTConfig

type MGMTConfig struct {
	*ibiconfig.IBIConfig
	Cluster          *Cluster
	ClusterInfoPath  string `envconfig:"ECO_LCA_IBI_MGMT_CLUSTER_INFO"`
	SeedImage        string `envconfig:"ECO_LCA_IBI_MGMT_SEED_IMAGE" default:"quay.io/ocp-edge-qe/ib-seedimage-public:ci"`
	SeedClusterInfo  *seedimage.SeedImageContent
	SSHKeyPath       string `envconfig:"ECO_LCA_IBI_MGMT_SSHKEY_PATH"`
	PublicSSHKey     string
	StaticNetworking bool `envconfig:"ECO_LCA_IBI_MGMT_STATIC_NETWORK" default:"false"`
	ExtraManifests   bool `envconfig:"ECO_LCA_IBI_EXTRA_MANIFESTS" default:"true"`
	SiteConfig       bool `envconfig:"ECO_LCA_IBI_SITECONFIG" default:"true"`
}

MGMTConfig type contains mgmt configuration.

func NewMGMTConfig

func NewMGMTConfig() *MGMTConfig

NewMGMTConfig returns instance of MGMTConfig type.

Jump to

Keyboard shortcuts

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