Documentation
¶
Index ¶
- func ConfigMeta(cluster *capi.Cluster) metav1.ObjectMeta
- func GenerateAlloyLoggingConfig(cluster *capi.Cluster, observabilityBundleVersion semver.Version, ...) (string, error)
- type Resource
- func (r *Resource) GenerateLoggingConfig(cluster *capi.Cluster, observabilityBundleVersion semver.Version, ...) (v1.ConfigMap, error)
- func (r *Resource) ReconcileCreate(ctx context.Context, cluster *capi.Cluster) (ctrl.Result, error)
- func (r *Resource) ReconcileDelete(ctx context.Context, cluster *capi.Cluster) (ctrl.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigMeta ¶
func ConfigMeta(cluster *capi.Cluster) metav1.ObjectMeta
ConfigMeta returns metadata for the logging-config
func GenerateAlloyLoggingConfig ¶ added in v0.7.0
func GenerateAlloyLoggingConfig(cluster *capi.Cluster, observabilityBundleVersion semver.Version, defaultNamespaces, tenants []string, clusterLabels common.ClusterLabels, insecureCA bool, enableNodeFiltering bool, enableNetworkMonitoring bool) (string, error)
GenerateAlloyLoggingConfig returns a configmap for the logging extra-config
Types ¶
type Resource ¶ added in v0.30.0
type Resource struct {
Client client.Client
Config config.Config
DefaultWorkloadClusterNamespaces []string
}
Resource implements a resource.Interface to handle Logging config: extra logging config defining what we want to retrieve.
func (*Resource) GenerateLoggingConfig ¶ added in v0.37.0
func (*Resource) ReconcileCreate ¶ added in v0.30.0
ReconcileCreate ensures logging-config is created with the right credentials
Click to show internal directories.
Click to hide internal directories.