Documentation ¶
Index ¶
- func GetKubeClientFromOutsideCluster(kubeconfigpath string, insecureSkipTLSVerify bool) (*rest.Config, error)
- func GetKubeClientSet(kubeConfig *rest.Config) (*kubernetes.Clientset, error)
- func GetKubeConfig(kubeconfigpath string, insecureSkipTLSVerify bool) (*rest.Config, error)
- func GinRequestLogger() gin.HandlerFunc
- type Config
- type Deployer
- type HubConfig
- type HubFederatorConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKubeClientFromOutsideCluster ¶
func GetKubeClientFromOutsideCluster(kubeconfigpath string, insecureSkipTLSVerify bool) (*rest.Config, error)
GetKubeClientFromOutsideCluster returns the rest config of outside cluster
func GetKubeClientSet ¶
func GetKubeClientSet(kubeConfig *rest.Config) (*kubernetes.Clientset, error)
GetKubeClientSet will return the kube clientset
func GetKubeConfig ¶
GetKubeConfig will return the kube config
func GinRequestLogger ¶
func GinRequestLogger() gin.HandlerFunc
GinRequestLogger is used to log the GIN requests
Types ¶
type Config ¶
type Config struct { DryRun bool LogLevel string Namespace string CrdNamespace string Threadiness int PostgresRestartInMins int64 HubFederatorConfig *HubFederatorConfig PodWaitTimeoutSeconds int64 ResyncIntervalInSeconds int64 TerminationGracePeriodSeconds int64 AdmissionWebhookListener bool CrdNames string IsClusterScoped bool IsOpenshift bool Version string }
Config type will be used for protoform config that bootstraps everything
func (*Config) GetLogLevel ¶
GetLogLevel will set the log level
type Deployer ¶
type Deployer struct { Config *Config KubeConfig *rest.Config KubeClientSet *kubernetes.Clientset APIExtensionClient *apiextensionsclient.Clientset // contains filtered or unexported fields }
Deployer handles deploying configured components to a cluster
func NewController ¶
NewController will initialize the input config file, create the hub informers, initiantiate all rest api
func NewDeployer ¶
func NewDeployer(config *Config, kubeConfig *rest.Config, kubeClientSet *kubernetes.Clientset) (*Deployer, error)
NewDeployer will create the specification that is used for deploying controllers
func (*Deployer) AddController ¶
func (d *Deployer) AddController(controller crd.ProtoformControllerInterface)
AddController will add the controllers to the list
Click to show internal directories.
Click to hide internal directories.