Documentation
¶
Index ¶
Constants ¶
View Source
const ( CRDAppImagesName = "appimages.kuscia.secretflow" CRDClusterDomainRoutesName = "clusterdomainroutes.kuscia.secretflow" CRDDomainDataGrantsName = "domaindatagrants.kuscia.secretflow" CRDDomainAppImagesName = "domainappimages.kuscia.secretflow" CRDDomainRoutesName = "domainroutes.kuscia.secretflow" CRDDomainsName = "domains.kuscia.secretflow" CRDGatewaysName = "gateways.kuscia.secretflow" CRDKusciaTasksName = "kusciatasks.kuscia.secretflow" CRDKusciaDeploymentsName = "kusciadeployments.kuscia.secretflow" CRDTaskResourcesGroupsName = "taskresourcegroups.kuscia.secretflow" CRDTaskResourcesName = "taskresources.kuscia.secretflow" CRDKusciaJobsName = "kusciajobs.kuscia.secretflow" )
Variables ¶
This section is empty.
Functions ¶
func CheckCRDExists ¶
func CheckCRDExists(ctx context.Context, extensionClient apiextensionsclientset.Interface, crdNames []string) error
CheckCRDExists is used to check if crd exist.
Types ¶
type ControllerConfig ¶
type ControllerConfig struct { RunMode common.RunModeType Namespace string RootDir string KubeClient kubernetes.Interface KusciaClient kusciaclientset.Interface EventRecorder record.EventRecorder EnableWorkloadApprove bool }
type ControllerConstruction ¶
type ControllerConstruction struct { NewControler NewControllerFunc CRDNames []string }
type IController ¶
type NewControllerFunc ¶
type NewControllerFunc func(ctx context.Context, config ControllerConfig) IController
type Options ¶
type Options struct { Kubeconfig string MasterURL string RunMode common.RunModeType Namespace string RootDir string Workers int // QPS indicates the maximum QPS to the master from this client. // If it's zero, the created RESTClient will use DefaultQPS: 5 QPS float64 // Maximum burst for throttle. // If it's zero, the created RESTClient will use DefaultBurst: 10. Burst int // HealthCheckPort is the port that the health check server listens on. HealthCheckPort int ControllerName string EnableWorkloadApprove bool }
Options is the main context object for the domain controller.
func NewOptions ¶
func NewOptions() *Options
NewOptions creates a new options with a default config.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server defines detailed info which used to run server.
func NewServer ¶
func NewServer(opts *Options, clients *kubeconfig.KubeClients, controllerConstructions []ControllerConstruction) *Server
NewServer returns a server instance.
Click to show internal directories.
Click to hide internal directories.