Documentation
¶
Index ¶
- Constants
- Variables
- func GetAgentRole(hostname string) api.AgentPoolProfileRole
- func GetHostname(app *api.AgentPoolProfile, suffix string, instance int64) string
- func GetHostnamePrefix(app *api.AgentPoolProfile, suffix string) string
- func GetScaleSetNameAndInstanceID(hostname string) (string, string, error)
- func GetScalesetName(app *api.AgentPoolProfile, suffix string) string
- type Generator
Constants ¶
const MasterScalesetName = "ss-master"
MasterScalesetName contains the name of the master VMs scaleset
Variables ¶
var Derived derived
Functions ¶
func GetAgentRole ¶
func GetAgentRole(hostname string) api.AgentPoolProfileRole
GetAgentRole parses a hostname, e.g. master-000000 or infra-12345-000000 and returns the lowercase role name ("master", "infra" or "compute")
func GetHostname ¶
func GetHostname(app *api.AgentPoolProfile, suffix string, instance int64) string
GetHostname returns the hostname of a given instance in an AgentPoolProfile
func GetHostnamePrefix ¶
func GetHostnamePrefix(app *api.AgentPoolProfile, suffix string) string
GetHostnamePrefix returns the computer name prefix for a given AgentPoolProfile
func GetScaleSetNameAndInstanceID ¶
GetScaleSetNameAndInstanceID parses a hostname, e.g. master-000000 or infra-1234567890-00000a, and returns the corresponding scaleset name and instance ID, e.g. ss-master, 0 or ss-infra-1234567890, 10
func GetScalesetName ¶
func GetScalesetName(app *api.AgentPoolProfile, suffix string) string
GetScalesetName returns the VMSS name for a given AgentPoolProfile
Types ¶
type Generator ¶
type Generator interface {
Generate(cs *api.OpenShiftManagedCluster, template *pluginapi.Config) error
InvalidateSecrets(cs *api.OpenShiftManagedCluster) error
}
Generator is an interface for sharing the cluster and plugin configs
func NewSimpleGenerator ¶
NewSimpleGenerator creates a struct to hold both the cluster and plugin configs