Documentation ¶
Index ¶
- Variables
- func CreateGlobalResources(globalCLient *managementClient.Client, config *compose.Config) error
- func GetSchemaMap(globalClient *managementClient.Client) map[string]types.Schema
- func Register(managementContext *config.ManagementContext, ...)
- func WaitCluster(baseClient *clientbase.APIBaseClient, id, schemaType string) error
- type ClientSet
- type Lifecycle
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // WaitCondition is a set of function that can be customized to wait for a resource WaitCondition = map[string]func(baseClient *clientbase.APIBaseClient, id, schemaType string) error{} )
Functions ¶
func CreateGlobalResources ¶
func CreateGlobalResources(globalCLient *managementClient.Client, config *compose.Config) error
func GetSchemaMap ¶
func GetSchemaMap(globalClient *managementClient.Client) map[string]types.Schema
func Register ¶
func Register(managementContext *config.ManagementContext, portGetter common.KubeConfigGetter)
func WaitCluster ¶
func WaitCluster(baseClient *clientbase.APIBaseClient, id, schemaType string) error
Types ¶
type Lifecycle ¶
type Lifecycle struct { TokenClient v3.TokenInterface UserClient v3.UserInterface HTTPSPortGetter common.KubeConfigGetter ComposeClient v3.GlobalComposeConfigInterface }
Lifecycle for GlobalComposeConfig is a controller which watches composeConfig and execute the yaml config and create a bunch of global resources. There is no sync logic between yaml file and resources, which means config is only executed once. And resource is not deleted even if the compose config is deleted.
func (Lifecycle) Create ¶
func (l Lifecycle) Create(obj *v3.GlobalComposeConfig) (*v3.GlobalComposeConfig, error)
Click to show internal directories.
Click to hide internal directories.