config

package
v3.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const MasterScalesetName = "ss-master"

MasterScalesetName contains the name of the master VMs scaleset

Variables

View Source
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

func GetScaleSetNameAndInstanceID(hostname string) (string, string, error)

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

func NewSimpleGenerator(runningUnderTest bool) Generator

NewSimpleGenerator creates a struct to hold both the cluster and plugin configs

Jump to

Keyboard shortcuts

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