Documentation ¶
Index ¶
- func GetAzureParams(tempo v1alpha1.TempoStack, storageSecret *corev1.Secret) *manifestutils.AzureStorage
- func GetGCSParams(tempo v1alpha1.TempoStack, storageSecret *corev1.Secret) *manifestutils.GCS
- func GetS3Params(tempo v1alpha1.TempoStack, storageSecret *corev1.Secret) *manifestutils.S3
- type CertRotationReconciler
- type OperatorReconciler
- type TempoStackReconciler
- func (r *TempoStackReconciler) GetPodsComponent(ctx context.Context, componentName string, stack v1alpha1.TempoStack) (*corev1.PodList, error)
- func (r *TempoStackReconciler) PatchStatus(ctx context.Context, changed, original *v1alpha1.TempoStack) error
- func (r *TempoStackReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *TempoStackReconciler) SetupWithManager(mgr ctrl.Manager) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAzureParams ¶ added in v0.5.0
func GetAzureParams(tempo v1alpha1.TempoStack, storageSecret *corev1.Secret) *manifestutils.AzureStorage
GetAzureParams extracts Azure Storage params from the storage secret.
func GetGCSParams ¶ added in v0.5.0
func GetGCSParams(tempo v1alpha1.TempoStack, storageSecret *corev1.Secret) *manifestutils.GCS
GetGCSParams extracts GCS params from the storage secret.
func GetS3Params ¶ added in v0.5.0
func GetS3Params(tempo v1alpha1.TempoStack, storageSecret *corev1.Secret) *manifestutils.S3
GetS3Params extracts S3 params from the storage secret.
Types ¶
type CertRotationReconciler ¶
type CertRotationReconciler struct { client.Client Scheme *runtime.Scheme FeatureGates configv1alpha1.FeatureGates }
CertRotationReconciler reconciles the `tempo.grafana.com/certRotationRequiredAt` annotation on any TempoStack object associated with any of the owned signer/client/serving certificates secrets and CA bundle configmap.
func (*CertRotationReconciler) Reconcile ¶
func (r *CertRotationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. Compare the state specified by the TempoStack object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.0/pkg/reconcile
func (*CertRotationReconciler) SetupWithManager ¶
func (r *CertRotationReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type OperatorReconciler ¶
OperatorReconciler reconciles the operator configuration.
func (*OperatorReconciler) Reconcile ¶
func (r *OperatorReconciler) Reconcile(ctx context.Context, ctrlConfig configv1alpha1.ProjectConfig) error
Reconcile reconciles the operator configuration.
type TempoStackReconciler ¶
type TempoStackReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder CtrlConfig configv1alpha1.ProjectConfig Version version.Version }
TempoStackReconciler reconciles a TempoStack object.
func (*TempoStackReconciler) GetPodsComponent ¶
func (r *TempoStackReconciler) GetPodsComponent(ctx context.Context, componentName string, stack v1alpha1.TempoStack) (*corev1.PodList, error)
GetPodsComponent is used for fetching component pod status and refreshing the status of the CR.
func (*TempoStackReconciler) PatchStatus ¶
func (r *TempoStackReconciler) PatchStatus(ctx context.Context, changed, original *v1alpha1.TempoStack) error
PatchStatus patches the status field of the CR.
func (*TempoStackReconciler) Reconcile ¶
func (r *TempoStackReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*TempoStackReconciler) SetupWithManager ¶
func (r *TempoStackReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.