package v1alpha1
import "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1alpha1"
+k8s:defaulter-gen=TypeMeta +groupName=kubeadm.k8s.io
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- func SetDefaults_MasterConfiguration(obj *MasterConfiguration)
- func SetObjectDefaults_MasterConfiguration(in *MasterConfiguration)
- type API
- type ClusterInfo
- type Discovery
- type Etcd
- type FileDiscovery
- type HTTPSDiscovery
- type MasterConfiguration
- type Networking
- type NodeConfiguration
- type TokenDiscovery
Constants ¶
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" )
const GroupName = "kubeadm.k8s.io"
GroupName is the group name use in this package
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Kind ¶
Kind takes an unqualified kind and returns a Group qualified GroupKind
func RegisterDefaults ¶
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 SetObjectDefaults_MasterConfiguration ¶
func SetObjectDefaults_MasterConfiguration(in *MasterConfiguration)
Types ¶
type API ¶
type API struct { AdvertiseAddresses []string `json:"advertiseAddresses"` ExternalDNSNames []string `json:"externalDNSNames"` Port int32 `json:"port"` }
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
func (*ClusterInfo) GetObjectKind ¶
func (obj *ClusterInfo) GetObjectKind() schema.ObjectKind
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"` }
func (*MasterConfiguration) GetObjectKind ¶
func (obj *MasterConfiguration) GetObjectKind() schema.ObjectKind
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"` Discovery Discovery `json:"discovery"` }
func (*NodeConfiguration) GetObjectKind ¶
func (obj *NodeConfiguration) GetObjectKind() schema.ObjectKind
type TokenDiscovery ¶
type TokenDiscovery struct { ID string `json:"id"` Secret string `json:"secret"` Addresses []string `json:"addresses"` }
Source Files ¶
defaults.go doc.go register.go types.go zz_generated.defaults.go
- Version
- v1.6.0-alpha.2
- Published
- Feb 12, 2017
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 26 seconds ago –
Tools for package owners.