v1alpha1

package
v1.6.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

+k8s:defaulter-gen=TypeMeta +groupName=kubeadm.k8s.io

Index

Constants

View Source
const (
	DefaultServiceDNSDomain  = "cluster.local"
	DefaultServicesSubnet    = "10.96.0.0/12"
	DefaultKubernetesVersion = "latest"
	// This is only for clusters without internet, were the latest stable version can't be determined
	DefaultKubernetesFallbackVersion = "v1.6.0-alpha.1"
	DefaultAPIBindPort               = 6443
	DefaultDiscoveryBindPort         = 9898
	DefaultAuthorizationMode         = "RBAC"
	DefaultCACertPath                = "/etc/kubernetes/pki/ca.crt"
)
View Source
const GroupName = "kubeadm.k8s.io"

GroupName is the group name use in this package

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func SetDefaults_MasterConfiguration

func SetDefaults_MasterConfiguration(obj *MasterConfiguration)

func SetDefaults_NodeConfiguration

func SetDefaults_NodeConfiguration(obj *NodeConfiguration)

func SetObjectDefaults_MasterConfiguration

func SetObjectDefaults_MasterConfiguration(in *MasterConfiguration)

func SetObjectDefaults_NodeConfiguration

func SetObjectDefaults_NodeConfiguration(in *NodeConfiguration)

Types

type API

type API struct {
	// The address for the API server to advertise.
	AdvertiseAddress string   `json:"advertiseAddress"`
	ExternalDNSNames []string `json:"externalDNSNames"`
	BindPort         int32    `json:"bindPort"`
}

type ClusterInfo

type ClusterInfo struct {
	metav1.TypeMeta `json:",inline"`
	// TODO(phase1+) this may become simply `api.Config`
	CertificateAuthorities []string `json:"certificateAuthorities"`
	Endpoints              []string `json:"endpoints"`
}

ClusterInfo TODO add description

type Discovery

type Discovery struct {
	HTTPS *HTTPSDiscovery `json:"https"`
	File  *FileDiscovery  `json:"file"`
	Token *TokenDiscovery `json:"token"`
}

type Etcd

type Etcd struct {
	Endpoints []string `json:"endpoints"`
	CAFile    string   `json:"caFile"`
	CertFile  string   `json:"certFile"`
	KeyFile   string   `json:"keyFile"`
}

type FileDiscovery

type FileDiscovery struct {
	Path string `json:"path"`
}

type HTTPSDiscovery

type HTTPSDiscovery struct {
	URL string `json:"url"`
}

type MasterConfiguration

type MasterConfiguration struct {
	metav1.TypeMeta `json:",inline"`

	API               API        `json:"api"`
	Discovery         Discovery  `json:"discovery"`
	Etcd              Etcd       `json:"etcd"`
	Networking        Networking `json:"networking"`
	KubernetesVersion string     `json:"kubernetesVersion"`
	CloudProvider     string     `json:"cloudProvider"`
	AuthorizationMode string     `json:"authorizationMode"`
	// SelfHosted enables an alpha deployment type where the apiserver, scheduler, and
	// controller manager are managed by Kubernetes itself. This option is likely to
	// become the default in the future.
	SelfHosted bool `json:"selfHosted"`

	APIServerExtraArgs         map[string]string `json:"apiServerExtraArgs"`
	ControllerManagerExtraArgs map[string]string `json:"controllerManagerExtraArgs"`
	SchedulerExtraArgs         map[string]string `json:"schedulerExtraArgs"`
}

type Networking

type Networking struct {
	ServiceSubnet string `json:"serviceSubnet"`
	PodSubnet     string `json:"podSubnet"`
	DNSDomain     string `json:"dnsDomain"`
}

type NodeConfiguration

type NodeConfiguration struct {
	metav1.TypeMeta `json:",inline"`

	CACertPath               string   `json:"caCertPath"`
	DiscoveryFile            string   `json:"discoveryFile"`
	DiscoveryToken           string   `json:"discoveryToken"`
	DiscoveryTokenAPIServers []string `json:"discoveryTokenAPIServers"`
	TLSBootstrapToken        string   `json:"tlsBootstrapToken"`
	Token                    string   `json:"token"`
}

type TokenDiscovery added in v1.6.0

type TokenDiscovery struct {
	ID        string   `json:"id"`
	Secret    string   `json:"secret"`
	Addresses []string `json:"addresses"`
}

Jump to

Keyboard shortcuts

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