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 SetDefaults_NodeConfiguration(obj *NodeConfiguration)
- func SetObjectDefaults_MasterConfiguration(in *MasterConfiguration)
- func SetObjectDefaults_NodeConfiguration(in *NodeConfiguration)
- type API
- type Etcd
- type MasterConfiguration
- type Networking
- type NodeConfiguration
- type TokenDiscovery
Constants ¶
const ( DefaultServiceDNSDomain = "cluster.local" DefaultServicesSubnet = "10.96.0.0/12" DefaultKubernetesVersion = "stable-1.7" DefaultAPIBindPort = 6443 DefaultDiscoveryBindPort = 9898 DefaultAuthorizationMode = "RBAC" DefaultCACertPath = "/etc/kubernetes/pki/ca.crt" DefaultCertificatesDir = "/etc/kubernetes/pki" DefaultEtcdDataDir = "/var/lib/etcd" )
const GroupName = "kubeadm.k8s.io"
GroupName is the group name use in this package
Variables ¶
var ( // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.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 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 { // AdvertiseAddress sets the address for the API server to advertise. AdvertiseAddress string `json:"advertiseAddress"` // BindPort sets the secure port for the API Server to bind to BindPort int32 `json:"bindPort"` }
type Etcd ¶
type Etcd struct { Endpoints []string `json:"endpoints"` CAFile string `json:"caFile"` CertFile string `json:"certFile"` KeyFile string `json:"keyFile"` DataDir string `json:"dataDir"` ExtraArgs map[string]string `json:"extraArgs"` }
type MasterConfiguration ¶
type MasterConfiguration struct { metav1.TypeMeta `json:",inline"` API API `json:"api"` Etcd Etcd `json:"etcd"` Networking Networking `json:"networking"` KubernetesVersion string `json:"kubernetesVersion"` CloudProvider string `json:"cloudProvider"` NodeName string `json:"nodeName"` AuthorizationModes []string `json:"authorizationModes"` Token string `json:"token"` TokenTTL time.Duration `json:"tokenTTL"` // 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"` // APIServerCertSANs sets extra Subject Alternative Names for the API Server signing cert APIServerCertSANs []string `json:"apiServerCertSANs"` // CertificatesDir specifies where to store or look for all required certificates CertificatesDir string `json:"certificatesDir"` }
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"` NodeName string `json:"nodeName"` TLSBootstrapToken string `json:"tlsBootstrapToken"` Token string `json:"token"` }
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.7.15
- Published
- Mar 17, 2018
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 2 minutes ago –
Tools for package owners.