render

package
v0.0.0-alpha.0....-eeef803 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

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

func NewRenderCommand(errOut io.Writer) *cobra.Command

NewRenderCommand creates a render command.

func NonDefaultRoute

func NonDefaultRoute(route netlink.Route) bool

NonDefaultRoute returns whether the passed Route is the default

func NonDeprecatedAddress

func NonDeprecatedAddress(addr netlink.Addr) bool

NonDeprecatedAddress returns true if the address is IPv6 and has a preferred lifetime of 0

Types

type AddressFilter

type AddressFilter func(netlink.Addr) bool

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 File

type File struct {
	Filesystem string       `yaml:"filesystem"`
	Path       string       `yaml:"path"`
	User       *FileUser    `yaml:"user"`
	Group      *FileGroup   `yaml:"group"`
	Mode       *int         `yaml:"mode"`
	Contents   FileContents `yaml:"contents"`
	Overwrite  *bool        `yaml:"overwrite"`
	Append     bool         `yaml:"append"`
}

type FileContents

type FileContents struct {
	Remote Remote `yaml:"remote"`
	Inline string `yaml:"inline"`
	Local  string `yaml:"local"`
}

type FileGroup

type FileGroup struct {
	Id   *int   `yaml:"id"`
	Name string `yaml:"name"`
}

type FileUser

type FileUser struct {
	Id   *int   `yaml:"id"`
	Name string `yaml:"name"`
}

type Hash

type Hash struct {
	Function string `yaml:"function"`
	Sum      string `yaml:"sum"`
}

type Remote

type Remote struct {
	Url          string       `yaml:"url"`
	Compression  string       `yaml:"compression"`
	Verification Verification `yaml:"verification"`
}

type RouteFilter

type RouteFilter func(netlink.Route) bool

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"`
}

Jump to

Keyboard shortcuts

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