Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultProtokubeImage = "kope/protokube:1.4"
View Source
const MaxAttemptsWithNoProgress = 100
We should probably retry for a long time - there is not really any great fallback
View Source
const TagMaster = "_kubernetes_master"
Variables ¶
This section is empty.
Functions ¶
func FindOSTags ¶
FindOSTags infers tags from the current distro We will likely remove this when everything is containerized
Types ¶
type Image ¶
type Image struct {
// Source is the URL from which we should download the image
Source string `json:"source,omitempty"`
// Hash is the hash of the file, to verify image integrity (even over http)
Hash string `json:"hash,omitempty"`
}
Image is a docker image we should pre-load
type Loader ¶
func NewLoader ¶
func NewLoader(config *NodeUpConfig, cluster *api.Cluster, assets *fi.AssetStore, tags map[string]struct{}) *Loader
type NodeUpCommand ¶
type NodeUpConfig ¶
type NodeUpConfig struct {
// Tags enable/disable chunks of the model
Tags []string `json:",omitempty"`
// Assets are locations where we can find files to be installed
// TODO: Remove once everything is in containers?
Assets []string `json:",omitempty"`
// Images are a list of images we should preload
Images []*Image `json:"images,omitempty"`
// ConfigBase is the base VFS path for config objects
ConfigBase *string `json:",omitempty"`
// ClusterLocation is the VFS path to the cluster spec
// Deprecated: prefer ConfigBase
ClusterLocation *string `json:",omitempty"`
// InstanceGroupName is the name of the instance group
InstanceGroupName string `json:",omitempty"`
// ClusterName is the name of the cluster
// Technically this is redundant - it is in ClusterLocation, but this can serve as a cross-check,
// and it allows us to more easily identify the cluster, for example when we are deleting resources.
ClusterName string `json:",omitempty"`
// ProtokubeImage is the docker image to load for protokube (bootstrapping)
ProtokubeImage *Image `json:"protokubeImage,omitempty"`
// Channels is a list of channels that we should apply
Channels []string `json:"channels,omitempty"`
}
type ProtokubeFlags ¶
type ProtokubeFlags struct {
DNSZoneName *string `json:"dnsZoneName,omitempty" flag:"dns-zone-name"`
Master *bool `json:"master,omitempty" flag:"master"`
Containerized *bool `json:"containerized,omitempty" flag:"containerized"`
LogLevel *int `json:"logLevel,omitempty" flag:"v"`
Channels []string `json:"channels,omitempty" flag:"channels"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.