Documentation ¶
Index ¶
- Constants
- func AppendOverrides(ctx spi.ComponentContext, _ string, _ string, _ string, kvs []bom.KeyValue) ([]bom.KeyValue, error)
- func GetOverrides(object runtime.Object) interface{}
- func NewComponent() spi.Component
- type ThanosComponent
- func (c ThanosComponent) GetCertificateNames(ctx spi.ComponentContext) []types.NamespacedName
- func (c ThanosComponent) GetIngressNames(ctx spi.ComponentContext) []types.NamespacedName
- func (c ThanosComponent) GetWatchDescriptors() []controllerspi.WatchDescriptor
- func (c ThanosComponent) IsAvailable(ctx spi.ComponentContext) (string, v1alpha1.ComponentAvailability)
- func (c ThanosComponent) IsEnabled(effectiveCR runtime.Object) bool
- func (c ThanosComponent) IsReady(ctx spi.ComponentContext) bool
- func (c ThanosComponent) PreInstall(ctx spi.ComponentContext) error
- func (c ThanosComponent) PreUpgrade(ctx spi.ComponentContext) error
Constants ¶
const ComponentJSONName = "thanos"
ComponentJSONName is the JSON name of the Thanos component in CRD
const ComponentName = "thanos"
ComponentName is the name of the component
const ComponentNamespace = constants.VerrazzanoMonitoringNamespace
ComponentNamespace is the namespace of the component
Variables ¶
This section is empty.
Functions ¶
func AppendOverrides ¶
func AppendOverrides(ctx spi.ComponentContext, _ string, _ string, _ string, kvs []bom.KeyValue) ([]bom.KeyValue, error)
AppendOverrides appends the default overrides for the Thanos component
func GetOverrides ¶
GetOverrides gets the install overrides for the Thanos component
func NewComponent ¶
Types ¶
type ThanosComponent ¶
type ThanosComponent struct {
helm.HelmComponent
}
func (ThanosComponent) GetCertificateNames ¶
func (c ThanosComponent) GetCertificateNames(ctx spi.ComponentContext) []types.NamespacedName
GetCertificateNames returns the TLS secret for the Thanos component
func (ThanosComponent) GetIngressNames ¶
func (c ThanosComponent) GetIngressNames(ctx spi.ComponentContext) []types.NamespacedName
GetIngressNames returns the Thanos ingress names
func (ThanosComponent) GetWatchDescriptors ¶ added in v1.7.0
func (c ThanosComponent) GetWatchDescriptors() []controllerspi.WatchDescriptor
GetWatchDescriptors returns the list of WatchDescriptors for objects being watched by the component
func (ThanosComponent) IsAvailable ¶
func (c ThanosComponent) IsAvailable(ctx spi.ComponentContext) (string, v1alpha1.ComponentAvailability)
IsAvailable returns the component availability for ThanosComponent, also accounting for optional subcomponents like store gateway
func (ThanosComponent) IsEnabled ¶
func (c ThanosComponent) IsEnabled(effectiveCR runtime.Object) bool
IsEnabled Thanos enabled check for installation
func (ThanosComponent) IsReady ¶
func (c ThanosComponent) IsReady(ctx spi.ComponentContext) bool
IsReady component check for Thanos
func (ThanosComponent) PreInstall ¶
func (c ThanosComponent) PreInstall(ctx spi.ComponentContext) error
PreInstall handles the pre-install operations for the Thanos component
func (ThanosComponent) PreUpgrade ¶
func (c ThanosComponent) PreUpgrade(ctx spi.ComponentContext) error
PreUpgrade handles the pre-upgrade operations for the Thanos component