Documentation
¶
Index ¶
- type AdminAuthentication
- func (s *AdminAuthentication) AddFlags(fs *pflag.FlagSet)
- func (s *AdminAuthentication) ApplyTo(config *genericapiserver.Config) (newTokenOrEmpty string, tokenHash []byte, err error)
- func (s *AdminAuthentication) GetPushModeSyncerKubeconfig(config *genericapiserver.Config, newToken string, tokenHash []byte) (*clientcmdapi.Config, error)
- func (s *AdminAuthentication) Validate() []error
- func (s *AdminAuthentication) WriteKubeConfig(config *genericapiserver.Config, newToken string, tokenHash []byte) error
- type ApiImporterController
- type ApiResourceController
- type Authorization
- func (s *Authorization) AddFlags(fs *pflag.FlagSet)
- func (s *Authorization) ApplyTo(config *genericapiserver.Config, ...) error
- func (s *Authorization) Validate() []error
- func (s *Authorization) WithAlwaysAllowGroups(groups ...string) *Authorization
- func (s *Authorization) WithAlwaysAllowPaths(paths ...string) *Authorization
- type CompletedOptions
- type Controllers
- type EmbeddedEtcd
- type ExtraOptions
- type Options
- type ServerRunOptions
- type SyncerController
- type Virtual
- type WorkloadClusterHeartbeatController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminAuthentication ¶
type AdminAuthentication struct {
KubeConfigPath string
// TODO: move into Secret in-cluster, maybe by using an "in-cluster" string as value
TokenHashFilePath string
}
func NewAdminAuthentication ¶
func NewAdminAuthentication() *AdminAuthentication
func (*AdminAuthentication) AddFlags ¶
func (s *AdminAuthentication) AddFlags(fs *pflag.FlagSet)
func (*AdminAuthentication) ApplyTo ¶
func (s *AdminAuthentication) ApplyTo(config *genericapiserver.Config) (newTokenOrEmpty string, tokenHash []byte, err error)
func (*AdminAuthentication) GetPushModeSyncerKubeconfig ¶
func (s *AdminAuthentication) GetPushModeSyncerKubeconfig(config *genericapiserver.Config, newToken string, tokenHash []byte) (*clientcmdapi.Config, error)
TODO(jmprusi): delete once push mode is removed.
func (*AdminAuthentication) Validate ¶
func (s *AdminAuthentication) Validate() []error
func (*AdminAuthentication) WriteKubeConfig ¶
func (s *AdminAuthentication) WriteKubeConfig(config *genericapiserver.Config, newToken string, tokenHash []byte) error
type ApiImporterController ¶
type ApiImporterController = apiimporter.Options
type ApiResourceController ¶
type ApiResourceController = apiresource.Options
type Authorization ¶
type Authorization struct {
// AlwaysAllowPaths are HTTP paths which are excluded from authorization. They can be plain
// paths or end in * in which case prefix-match is applied. A leading / is optional.
AlwaysAllowPaths []string
// AlwaysAllowGroups are groups which are allowed to take any actions. In kube, this is system:masters.
AlwaysAllowGroups []string
}
func NewAuthorization ¶
func NewAuthorization() *Authorization
func (*Authorization) AddFlags ¶
func (s *Authorization) AddFlags(fs *pflag.FlagSet)
func (*Authorization) ApplyTo ¶
func (s *Authorization) ApplyTo(config *genericapiserver.Config, informer coreexternalversions.SharedInformerFactory, workspaceLister v1alpha1.ClusterWorkspaceLister) error
func (*Authorization) Validate ¶
func (s *Authorization) Validate() []error
func (*Authorization) WithAlwaysAllowGroups ¶
func (s *Authorization) WithAlwaysAllowGroups(groups ...string) *Authorization
WithAlwaysAllowGroups appends the list of paths to AlwaysAllowGroups
func (*Authorization) WithAlwaysAllowPaths ¶
func (s *Authorization) WithAlwaysAllowPaths(paths ...string) *Authorization
WithAlwaysAllowPaths appends the list of paths to AlwaysAllowPaths
type CompletedOptions ¶
type CompletedOptions struct {
// contains filtered or unexported fields
}
func (*CompletedOptions) Validate ¶
func (o *CompletedOptions) Validate() []error
type Controllers ¶
type Controllers struct {
EnableAll bool
IndividuallyEnabled []string
ApiImporter ApiImporterController
ApiResource ApiResourceController
Syncer SyncerController
WorkloadClusterHeartbeat WorkloadClusterHeartbeatController
SAController kcmoptions.SAControllerOptions
}
func NewControllers ¶
func NewControllers() *Controllers
func (*Controllers) AddFlags ¶
func (c *Controllers) AddFlags(fs *pflag.FlagSet)
func (*Controllers) Complete ¶ added in v0.6.0
func (c *Controllers) Complete(rootDir string) error
func (*Controllers) Validate ¶
func (c *Controllers) Validate() []error
type EmbeddedEtcd ¶
type EmbeddedEtcd struct {
Enabled bool
Directory string
PeerPort string
ClientPort string
WalSizeBytes int64
}
func NewEmbeddedEtcd ¶
func NewEmbeddedEtcd() *EmbeddedEtcd
func (*EmbeddedEtcd) AddFlags ¶
func (e *EmbeddedEtcd) AddFlags(fs *pflag.FlagSet)
func (*EmbeddedEtcd) Validate ¶
func (e *EmbeddedEtcd) Validate() []error
type ExtraOptions ¶
type Options ¶
type Options struct {
GenericControlPlane ServerRunOptions
EmbeddedEtcd EmbeddedEtcd
Controllers Controllers
Authorization Authorization
AdminAuthentication AdminAuthentication
Virtual Virtual
Extra ExtraOptions
}
func NewOptions ¶
func NewOptions() *Options
NewOptions creates a new Options with default parameters.
func (*Options) Complete ¶
func (o *Options) Complete() (*CompletedOptions, error)
func (*Options) Flags ¶
func (o *Options) Flags() (fss cliflag.NamedFlagSets)
type ServerRunOptions ¶
type ServerRunOptions struct {
options.ServerRunOptions
}
type SyncerController ¶
type Virtual ¶ added in v0.6.0
type Virtual struct {
Workspaces workspacesoptions.Workspaces
Enabled bool
// ExternalVirtualWorkspaceAddress holds a URL to redirect to for stand-alone virtual workspaces.
ExternalVirtualWorkspaceAddress string
}
func NewVirtual ¶ added in v0.6.0
func NewVirtual() *Virtual
Click to show internal directories.
Click to hide internal directories.