resources

package
v0.18.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMapTemplate

type ConfigMapTemplate struct {
	Template  func() *corev1.ConfigMap
	IsEnabled bool
}

ConfigMapsTemplate has methods to generate and reconcile a ConfigMap

func (ConfigMapTemplate) Build

Build returns a ConfigMap resource

func (ConfigMapTemplate) Enabled

func (cmt ConfigMapTemplate) Enabled() bool

Enabled indicates if the resource should be present or not

func (ConfigMapTemplate) ResourceReconciler added in v0.17.1

func (cmt ConfigMapTemplate) ResourceReconciler(ctx context.Context, cl client.Client, obj client.Object) error

ResourceReconciler implements a generic reconciler for ConfigMap resources

type DeploymentTemplate

type DeploymentTemplate struct {
	Template        func() *appsv1.Deployment
	RolloutTriggers []RolloutTrigger
	EnforceReplicas bool
	IsEnabled       bool
}

DeploymentTemplate specifies a Deployment resource and its rollout triggers

func (DeploymentTemplate) Build

func (DeploymentTemplate) Enabled

func (dt DeploymentTemplate) Enabled() bool

func (DeploymentTemplate) ResourceReconciler added in v0.17.1

func (dep DeploymentTemplate) ResourceReconciler(ctx context.Context, cl client.Client, obj client.Object) error

type EnvoyConfigTemplate added in v0.18.0

type EnvoyConfigTemplate struct {
	Template  func() (*marin3r.EnvoyConfig, error)
	IsEnabled bool
}

EnvoyConfigTemplate has methods to generate and reconcile a EnvoyConfig

func (EnvoyConfigTemplate) Build added in v0.18.0

Build returns a EnvoyConfig resource

func (EnvoyConfigTemplate) Enabled added in v0.18.0

func (ect EnvoyConfigTemplate) Enabled() bool

Enabled indicates if the resource should be present or not

func (EnvoyConfigTemplate) ResourceReconciler added in v0.18.0

func (ect EnvoyConfigTemplate) ResourceReconciler(ctx context.Context, cl client.Client, obj client.Object) error

ResourceReconciler implements a generic reconciler for EnvoyConfig resources

type ExternalSecretTemplate added in v0.13.0

type ExternalSecretTemplate struct {
	Template  func() *externalsecretsv1beta1.ExternalSecret
	IsEnabled bool
}

ExternalSecretTemplate has methods to generate and reconcile an ExternalSecret

func (ExternalSecretTemplate) Build added in v0.13.0

Build returns an ExternalSecret resource

func (ExternalSecretTemplate) Enabled added in v0.13.0

func (est ExternalSecretTemplate) Enabled() bool

Enabled indicates if the resource should be present or not

func (ExternalSecretTemplate) ResourceReconciler added in v0.17.1

func (est ExternalSecretTemplate) ResourceReconciler(ctx context.Context, cl client.Client, obj client.Object) error

ResourceReconciler implements a generic reconciler for ExternalSecret resources

type GrafanaDashboardTemplate

type GrafanaDashboardTemplate struct {
	Template  func() *grafanav1alpha1.GrafanaDashboard
	IsEnabled bool
}

GrafanaDashboardTemplate has methods to generate and reconcile a GrafanaDashboard

func (GrafanaDashboardTemplate) Build

Build returns a GrafanaDashboard resource

func (GrafanaDashboardTemplate) Enabled

func (gdt GrafanaDashboardTemplate) Enabled() bool

Enabled indicates if the resource should be present or not

func (GrafanaDashboardTemplate) ResourceReconciler added in v0.17.1

func (gdt GrafanaDashboardTemplate) ResourceReconciler(ctx context.Context, cl client.Client, obj client.Object) error

ResourceReconciler implements a generic reconciler for GrafanaDashboard resources

type HorizontalPodAutoscalerTemplate

type HorizontalPodAutoscalerTemplate struct {
	Template  func() *autoscalingv2.HorizontalPodAutoscaler
	IsEnabled bool
}

HorizontalPodAutoscalerTemplate has methods to generate and reconcile a HorizontalPodAutoscaler

func (HorizontalPodAutoscalerTemplate) Build

Build returns a HorizontalPodAutoscaler resource

func (HorizontalPodAutoscalerTemplate) Enabled

func (hpat HorizontalPodAutoscalerTemplate) Enabled() bool

Enabled indicates if the resource should be present or not

func (HorizontalPodAutoscalerTemplate) ResourceReconciler added in v0.16.1

func (hpat HorizontalPodAutoscalerTemplate) ResourceReconciler(ctx context.Context, cl client.Client, obj client.Object) error

ResourceReconciler implements a generic reconciler for HorizontalPodAutoscaler resources

type PodDisruptionBudgetTemplate

type PodDisruptionBudgetTemplate struct {
	Template  func() *policyv1.PodDisruptionBudget
	IsEnabled bool
}

PodDisruptionBudgetTemplate has methods to generate and reconcile a PodDisruptionBudget

func (PodDisruptionBudgetTemplate) Build

Build returns a PodDisruptionBudget resource

func (PodDisruptionBudgetTemplate) Enabled

func (pdbt PodDisruptionBudgetTemplate) Enabled() bool

Enabled indicates if the resource should be present or not

func (PodDisruptionBudgetTemplate) ResourceReconciler added in v0.16.1

func (pdbt PodDisruptionBudgetTemplate) ResourceReconciler(ctx context.Context, cl client.Client, obj client.Object) error

ResourceReconciler implements a generic reconciler for PodDisruptionBudget resources

type PodMonitorTemplate

type PodMonitorTemplate struct {
	Template  func() *monitoringv1.PodMonitor
	IsEnabled bool
}

PodMonitorTemplate has methods to generate and reconcile a PodMonitor

func (PodMonitorTemplate) Build

Build returns a PodMonitor resource

func (PodMonitorTemplate) Enabled

func (pmt PodMonitorTemplate) Enabled() bool

Enabled indicates if the resource should be present or not

func (PodMonitorTemplate) ResourceReconciler added in v0.17.1

func (pmt PodMonitorTemplate) ResourceReconciler(ctx context.Context, cl client.Client, obj client.Object) error

ResourceReconciler implements a generic reconciler for PodMonitor resources

type RolloutTrigger

type RolloutTrigger struct {
	Name          string
	ConfigMapName *string
	SecretName    *string
}

RolloutTrigger defines a configuration source that should trigger a rollout whenever the data within that configuration source changes

func (*RolloutTrigger) GetAnnotationKey

func (rt *RolloutTrigger) GetAnnotationKey() string

GetAnnotationKey returns the annotation key to be used in the Pods that read from the config source defined in the RolloutTrigger

func (*RolloutTrigger) GetHash

func (rt *RolloutTrigger) GetHash(ctx context.Context, cl client.Client, namespace string) (string, error)

GetHash returns the hash of the data container in the RolloutTrigger config source

type ServiceTemplate

type ServiceTemplate struct {
	Template  func() *corev1.Service
	IsEnabled bool
}

ServiceTemplate has methods to generate and reconcile a Service

func (ServiceTemplate) Build

Build returns a Service resource

func (ServiceTemplate) Enabled

func (dt ServiceTemplate) Enabled() bool

Enabled indicates if the resource should be present or not

func (ServiceTemplate) ResourceReconciler added in v0.15.0

func (st ServiceTemplate) ResourceReconciler(ctx context.Context, cl client.Client, obj client.Object) error

ResourceReconciler implements a generic reconciler for Service resources

type StatefulSetTemplate

type StatefulSetTemplate struct {
	Template        func() *appsv1.StatefulSet
	RolloutTriggers []RolloutTrigger
	IsEnabled       bool
}

StatefulSet specifies a StatefulSet resource and its rollout triggers

func (StatefulSetTemplate) Build

func (StatefulSetTemplate) Enabled

func (sst StatefulSetTemplate) Enabled() bool

func (StatefulSetTemplate) ResourceReconciler added in v0.17.1

func (sts StatefulSetTemplate) ResourceReconciler(ctx context.Context, cl client.Client, obj client.Object) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL