Documentation
¶
Index ¶
Constants ¶
const ClusterImageSetProperty = "clusterimageset"
ClusterImageSetProperty is the name of the Hive cluster image set that will be used for the installation of the cluster. The default is to calculate it from the OCM version. For example, if the OCP version is `4.10.38` then the value will be `openshift-v4.10.38`.
const OCPMirrorProperty = "OC_OCP_MIRROR"
OCPMirrorProperty is the base URL for the OCP mirror that will be used to download the `release.txt` file. The default is to use `https://mirror.openshift.com/pub/openshift-v4/clients/ocp/` and there is usually no need to change it. This is only intended for use in unit tests.
const OCPRCHOSReleaseProperty = "OC_RHCOS_RELEASE"
OCPRCHOSReleaseProperty is the full release number of the Red Hat Enterprise Linux CoreOS to be used for the installation of clusters. If not specified this will be extracted from the `release.txt` file corresponding to the version specified in `OC_OCP_VERSION`.
const OCPTagProperty = "OC_OCP_TAG"
OCPTagProperty is the image tag of the OpenShift version. If not specified then the tag will be calculated adding the `-x86_64` suffix. For example, of the value of `OC_OCP_VERSION` is `4.10.38` then the value of this will be `4.10.38-x86_64`.
const OCPVersionProperty = "OC_OCP_VERSION"
OCPVersionProperty is the name of the property used to define the OpenShift version to be used for the installation of clusters.
const ODFVersionProperty = "OC_ODF_VERSION"
ODFVersionProperty is the name of the property used to define the OpenShift Data Foundation version that should be installed in clusters.
const RegistryProperty = "REGISTRY"
RegistryProperty is the URL of a custom image registry to use for the clusters.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { API API DNS DNS ImageSet string Ingress Ingress Name string Nodes []*Node PullSecret []byte SNO bool SSH SSH TPM bool ClusterNetworks []*ClusterNetwork MachineNetworks []*MachineNetwork ServiceNetworks []*ServiceNetwork Kubeconfig []byte Registry Registry }
func (*Cluster) ControlPlaneNodes ¶
ContorlPlaneNodes returns an slice containing only the control plane nodes of the cluster.
func (*Cluster) LookupNode ¶
LookupNode returns an node with the given name, or nil if there is no such node.
func (*Cluster) WorkerNodes ¶
WorkerNodes returns an slice containing only the workr nodes of the cluster.
type ClusterNetwork ¶
type Config ¶
func (*Config) ClusterNames ¶
ClusterNames returns a slice containing the names of the cluster.
func (*Config) LookupCluster ¶
LookupCluster returns the cluser with the given name, or nil if no such cluster exists.
type IP ¶
IP represents an IP addess together with the prefix length that indicates the network part.
type MachineNetwork ¶
type Node ¶
type Node struct { Kind NodeKind Name string Hostname string BMC BMC RootDisk string StorageDisks []string InternalNIC *NIC InternalIP *IP ExternalNIC *NIC ExternalIP *IP IgnoredNICs []string }
func (*Node) Index ¶
Index extracts the index from the name of the node. For example, if the name is `worker123` then the index will be `123`. This is needed because currently some of our pipelines rely on node names having that index. This will be removed when those pipelines have been updatedd, so refrain from using it.