Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComponentDependenciesMet ¶
func ComponentDependenciesMet(c spi.Component, context spi.ComponentContext) bool
ComponentDependenciesMet Checks if the declared dependencies for the component are ready and available; this is a shallow check of the direct dependencies, with the expectation that any indirect dependencies will be implicitly handled.
For now, a dependency is soft; that is, we only care if it's Ready if it's enabled; if not we pass the dependency check so as not to block the dependent. This would theoretically allow, for example, components that depend on Istio to continue to deploy if it's not enabled. In the long run, the dependency mechanism should likely go away and allow components to individually make those decisions.
func GetComponents ¶
GetComponents returns the list of components that are installable and upgradeable. The components will be processed in the order items in the array The components will be processed in the order items in the array
func OverrideGetComponentsFn ¶
func OverrideGetComponentsFn(fnType GetCompoentsFnType)
OverrideGetComponentsFn Allows overriding the set of registry components for testing purposes
func ResetGetComponentsFn ¶
func ResetGetComponentsFn()
ResetGetComponentsFn Restores the GetComponents implementation to the default if it's been overridden for testing