View Source
    const GroupName = ""

      GroupName is the group name use in this package


      View Source
      var (
      	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
      	AddToScheme   = SchemeBuilder.AddToScheme
      View Source
      var GlobalEnvParams = SetEnvParams()
      View Source
      var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

        SchemeGroupVersion is group version used to register these objects


        func Kind

        func Kind(kind string) schema.GroupKind

          Kind takes an unqualified kind and returns a Group qualified GroupKind

          func Resource

          func Resource(resource string) schema.GroupResource

            Resource takes an unqualified resource and returns a Group qualified GroupResource


            type API

            type API struct {
            	// AdvertiseAddress sets the address for the API server to advertise.
            	AdvertiseAddress string
            	// BindPort sets the secure port for the API Server to bind to
            	BindPort int32

            type EnvParams

            type EnvParams struct {
            	KubernetesDir    string
            	HostEtcdPath     string
            	HyperkubeImage   string
            	RepositoryPrefix string
            	EtcdImage        string

            func SetEnvParams

            func SetEnvParams() *EnvParams

              TODO(phase1+) Move these paramaters to the API group we need some params for testing etc, let's keep these hidden for now

              type Etcd

              type Etcd struct {
              	Endpoints []string
              	CAFile    string
              	CertFile  string
              	KeyFile   string

              type MasterConfiguration

              type MasterConfiguration struct {
              	API               API
              	Etcd              Etcd
              	Networking        Networking
              	KubernetesVersion string
              	CloudProvider     string
              	AuthorizationMode string
              	Token    string
              	TokenTTL time.Duration
              	// 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
              	APIServerExtraArgs         map[string]string
              	ControllerManagerExtraArgs map[string]string
              	SchedulerExtraArgs         map[string]string
              	// APIServerCertSANs sets extra Subject Alternative Names for the API Server signing cert
              	APIServerCertSANs []string
              	// CertificatesDir specifies where to store or look for all required certificates
              	CertificatesDir string

              type Networking

              type Networking struct {
              	ServiceSubnet string
              	PodSubnet     string
              	DNSDomain     string

              type NodeConfiguration

              type NodeConfiguration struct {
              	CACertPath     string
              	DiscoveryFile  string
              	DiscoveryToken string
              	// Currently we only pay attention to one api server but hope to support >1 in the future
              	DiscoveryTokenAPIServers []string
              	TLSBootstrapToken        string
              	Token                    string

              type TokenDiscovery

              type TokenDiscovery struct {
              	ID        string
              	Secret    string
              	Addresses []string


              Path Synopsis