Documentation ¶
Overview ¶
+k8s:defaulter-gen=TypeMeta +groupName=kubeadm.k8s.io
Index ¶
- Constants
- Variables
- func Kind(kind string) unversioned.GroupKind
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) unversioned.GroupResource
- func SetDefaults_MasterConfiguration(obj *MasterConfiguration)
- func SetDefaults_NodeConfiguration(obj *NodeConfiguration)
- func SetObjectDefaults_MasterConfiguration(in *MasterConfiguration)
- func SetObjectDefaults_NodeConfiguration(in *NodeConfiguration)
- type API
- type ClusterInfo
- type Discovery
- type Etcd
- type MasterConfiguration
- type Networking
- type NodeConfiguration
- type Secrets
Constants ¶
View Source
const ( DefaultServiceDNSDomain = "cluster.local" DefaultServicesSubnet = "10.96.0.0/12" DefaultKubernetesVersion = "v1.4.4" DefaultAPIBindPort = 6443 DefaultDiscoveryBindPort = 9898 )
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 = unversioned.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Kind ¶
func Kind(kind string) unversioned.GroupKind
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) unversioned.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 ClusterInfo ¶
type ClusterInfo struct { unversioned.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() unversioned.ObjectKind
type MasterConfiguration ¶
type MasterConfiguration struct { unversioned.TypeMeta `json:",inline"` Secrets Secrets `json:"secrets"` API API `json:"api"` Etcd Etcd `json:"etcd"` Discovery Discovery `json:"discovery"` Networking Networking `json:"networking"` KubernetesVersion string `json:"kubernetesVersion"` CloudProvider string `json:"cloudProvider"` }
func (*MasterConfiguration) GetObjectKind ¶
func (obj *MasterConfiguration) GetObjectKind() unversioned.ObjectKind
type Networking ¶
type NodeConfiguration ¶
type NodeConfiguration struct { unversioned.TypeMeta `json:",inline"` MasterAddresses []string `json:"masterAddresses"` Secrets Secrets `json:"secrets"` APIPort int32 `json:"apiPort"` DiscoveryPort int32 `json:"discoveryPort"` }
func (*NodeConfiguration) GetObjectKind ¶
func (obj *NodeConfiguration) GetObjectKind() unversioned.ObjectKind
type Secrets ¶
type Secrets struct { GivenToken string `json:"givenToken"` // dot-separated `<TokenID>.<Token>` set by the user TokenID string `json:"tokenID"` // optional on master side, will be generated if not specified Token []byte `json:"token"` // optional on master side, will be generated if not specified BearerToken string `json:"bearerToken"` // set based on Token }
Click to show internal directories.
Click to hide internal directories.