Documentation ¶
Index ¶
- Constants
- type APILoadBalancerBuilder
- type AutoscalingGroupModelBuilder
- type ExternalAccessModelBuilder
- type FirewallModelBuilder
- type GCEModelContext
- func (c *GCEModelContext) GCETagForRole(role kops.InstanceGroupRole) string
- func (c *GCEModelContext) LinkToIPAliasSubnet() *gcetasks.Subnet
- func (c *GCEModelContext) LinkToNetwork() *gcetasks.Network
- func (c *GCEModelContext) LinkToTargetPool(id string) *gcetasks.TargetPool
- func (c *GCEModelContext) NameForFirewallRule(id string) string
- func (c *GCEModelContext) NameForForwardingRule(id string) string
- func (c *GCEModelContext) NameForIPAddress(id string) string
- func (c *GCEModelContext) NameForIPAliasRange(key string) string
- func (c *GCEModelContext) NameForIPAliasSubnet() string
- func (c *GCEModelContext) NameForNetwork() string
- func (c *GCEModelContext) NameForTargetPool(id string) string
- func (c *GCEModelContext) SafeObjectName(name string) string
- type NetworkModelBuilder
- type StorageAclBuilder
Constants ¶
const (
DefaultVolumeType = "pd-standard"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APILoadBalancerBuilder ¶
type APILoadBalancerBuilder struct { *GCEModelContext Lifecycle fi.Lifecycle }
APILoadBalancerBuilder builds a LoadBalancer for accessing the API
func (*APILoadBalancerBuilder) Build ¶
func (b *APILoadBalancerBuilder) Build(c *fi.ModelBuilderContext) error
type AutoscalingGroupModelBuilder ¶
type AutoscalingGroupModelBuilder struct { *GCEModelContext BootstrapScriptBuilder *model.BootstrapScriptBuilder Lifecycle fi.Lifecycle }
TODO: rework these parts to be more GCE native. ie: Managed Instance Groups > ASGs AutoscalingGroupModelBuilder configures AutoscalingGroup objects
func (*AutoscalingGroupModelBuilder) Build ¶
func (b *AutoscalingGroupModelBuilder) Build(c *fi.ModelBuilderContext) error
type ExternalAccessModelBuilder ¶
type ExternalAccessModelBuilder struct { *GCEModelContext Lifecycle fi.Lifecycle }
ExternalAccessModelBuilder configures security group rules for external access (SSHAccess, KubernetesAPIAccess)
func (*ExternalAccessModelBuilder) Build ¶
func (b *ExternalAccessModelBuilder) Build(c *fi.ModelBuilderContext) error
type FirewallModelBuilder ¶
type FirewallModelBuilder struct { *GCEModelContext Lifecycle fi.Lifecycle }
FirewallModelBuilder configures firewall network objects
func (*FirewallModelBuilder) Build ¶
func (b *FirewallModelBuilder) Build(c *fi.ModelBuilderContext) error
type GCEModelContext ¶
type GCEModelContext struct {
*model.KopsModelContext
}
func (*GCEModelContext) GCETagForRole ¶
func (c *GCEModelContext) GCETagForRole(role kops.InstanceGroupRole) string
func (*GCEModelContext) LinkToIPAliasSubnet ¶ added in v1.15.1
func (c *GCEModelContext) LinkToIPAliasSubnet() *gcetasks.Subnet
LinkToIPAliasSubnet returns the GCE subnet object used for ip aliases
func (*GCEModelContext) LinkToNetwork ¶
func (c *GCEModelContext) LinkToNetwork() *gcetasks.Network
LinkToNetwork returns the GCE Network object the cluster is located in
func (*GCEModelContext) LinkToTargetPool ¶
func (c *GCEModelContext) LinkToTargetPool(id string) *gcetasks.TargetPool
func (*GCEModelContext) NameForFirewallRule ¶
func (c *GCEModelContext) NameForFirewallRule(id string) string
func (*GCEModelContext) NameForForwardingRule ¶
func (c *GCEModelContext) NameForForwardingRule(id string) string
func (*GCEModelContext) NameForIPAddress ¶
func (c *GCEModelContext) NameForIPAddress(id string) string
func (*GCEModelContext) NameForIPAliasRange ¶ added in v1.15.1
func (c *GCEModelContext) NameForIPAliasRange(key string) string
NameForIPAliasRange returns the name for the secondary IP range attached to a subnet
func (*GCEModelContext) NameForIPAliasSubnet ¶ added in v1.15.1
func (c *GCEModelContext) NameForIPAliasSubnet() string
NameForIPAliasSubnet returns the name for the GCE subnet used for ip aliases
func (*GCEModelContext) NameForNetwork ¶
func (c *GCEModelContext) NameForNetwork() string
NameForNetwork returns the name for the GCE Network the cluster is located in
func (*GCEModelContext) NameForTargetPool ¶
func (c *GCEModelContext) NameForTargetPool(id string) string
func (*GCEModelContext) SafeObjectName ¶
func (c *GCEModelContext) SafeObjectName(name string) string
SafeObjectName returns the object name and cluster name escaped for GCE
type NetworkModelBuilder ¶
type NetworkModelBuilder struct { *GCEModelContext Lifecycle fi.Lifecycle }
NetworkModelBuilder configures network objects
func (*NetworkModelBuilder) Build ¶
func (b *NetworkModelBuilder) Build(c *fi.ModelBuilderContext) error
type StorageAclBuilder ¶
type StorageAclBuilder struct { *GCEModelContext Cloud gce.GCECloud Lifecycle fi.Lifecycle }
StorageAclBuilder configures storage acls
func (*StorageAclBuilder) Build ¶
func (b *StorageAclBuilder) Build(c *fi.ModelBuilderContext) error
Build creates the tasks that set up storage acls