Documentation ¶
Index ¶
- func NetlinkBootstrapIPLocator() *bootstrapIPLocator
- func NewRenderCommand(errOut io.Writer) *cobra.Command
- func NonDefaultRoute(route netlink.Route) bool
- func NonDeprecatedAddress(addr netlink.Addr) bool
- type AddressFilter
- type BootstrapIPLocator
- type File
- type FileContents
- type FileGroup
- type FileUser
- type Hash
- type Remote
- type RouteFilter
- type StaticFile
- type TemplateData
- type Verification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NetlinkBootstrapIPLocator ¶
func NetlinkBootstrapIPLocator() *bootstrapIPLocator
NetlinkBootstrapIPLocator the routable bootstrap node IP using the native netlink library.
func NewRenderCommand ¶
NewRenderCommand creates a render command.
func NonDefaultRoute ¶
NonDefaultRoute returns whether the passed Route is the default
func NonDeprecatedAddress ¶
NonDeprecatedAddress returns true if the address is IPv6 and has a preferred lifetime of 0
Types ¶
type AddressFilter ¶
AddressFilter is a function type to filter addresses
func AddressFilters ¶
func AddressFilters(filters ...AddressFilter) AddressFilter
func AddressNotIn ¶
func AddressNotIn(ips ...string) AddressFilter
func ContainedByCIDR ¶
func ContainedByCIDR(cidr string) AddressFilter
type BootstrapIPLocator ¶
type BootstrapIPLocator interface {
// contains filtered or unexported methods
}
BootstrapIPLocator tries to find the bootstrap IP for the machine. It should go through the effort of identifying the IP based on its inclusion in the machine network CIDR, routability, etc. and fall back to using the first listed IP as a last resort (and for compatibility with old behavior).
type FileContents ¶
type Remote ¶
type Remote struct { Url string `yaml:"url"` Compression string `yaml:"compression"` Verification Verification `yaml:"verification"` }
type RouteFilter ¶
RouteFilter is a function type to filter routes
type StaticFile ¶
type StaticFile struct { Data []byte // contains filtered or unexported fields }
type TemplateData ¶
type TemplateData struct { // Pull spec for the bootstrap etcd pod Image string // Addresses for static pod spec EtcdAddress etcdAddress EtcdServerCertDNSNames string EtcdPeerCertDNSNames string // ClusterCIDR is the IP range for pod IPs. ClusterCIDR []string // ServiceCIDR is the IP range for service IPs. ServiceCIDR []string // MachineCIDR is the IP range for machine IPs. MachineCIDR string // PreferIPv6 is true if IPv6 is the primary IP version. PreferIPv6 bool // Hostname as reported by the kernel. Hostname string // BootstrapIP is address of the bootstrap node. BootstrapIP string // BootstrapScalingStrategy describes the invariants which will be enforced when // scaling the etcd cluster. ceohelpers.BootstrapScalingStrategy // Platform is the underlying provider the cluster is run on. Platform string // ComputedEnvVars name/value pairs to populate env: for static pod. ComputedEnvVars string // NamespaceAnnotations are addition annotations to apply to the etcd namespace. NamespaceAnnotations map[string]string // EtcdEndpointConfigmapData is an optional data field used by etcd-endpoints configmap. EtcdEndpointConfigmapData string // MaxLearners is the maximum number of learner members that can be part of the cluster membership. MaxLearners int // Optional Additional platform information (ex. ProviderType for IBMCloud). PlatformData string // contains filtered or unexported fields }
type Verification ¶
type Verification struct {
Hash Hash `yaml:"hash"`
}