solr

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EnvSolrHeap is the name of the env var used to define the heap size.
	EnvSolrHeap string = "SOLR_HEAP"
	// EnvSolrCore is the name of the env var used to define the core name.
	EnvSolrCore string = "SOLR_CORE"
)
View Source
const (
	// ControllerName is an identifier for the controller.
	ControllerName string = "solr-controller"
)

Variables

View Source
var SizeProfileLarge = SizeProfile{
	Name:       searchv1beta1.SolrSizeLarge,
	PVCRequest: "10Gi",
	CPURequest: "500m",
	CPULimit:   "500m",
	MemRequest: "512Mi",
	MemLimit:   "512Mi",
	Heap:       "512m",
}

SizeProfileLarge defines the large size profile.

View Source
var SizeProfileMedium = SizeProfile{
	Name:       searchv1beta1.SolrSizeMedium,
	PVCRequest: "5Gi",
	CPURequest: "200m",
	CPULimit:   "200m",
	MemRequest: "256Mi",
	MemLimit:   "256Mi",
	Heap:       "256m",
}

SizeProfileMedium defines the medium size profile.

View Source
var SizeProfileSmall = SizeProfile{
	Name:       searchv1beta1.SolrSizeSmall,
	PVCRequest: "1Gi",
	CPURequest: "100m",
	CPULimit:   "100m",
	MemRequest: "128Mi",
	MemLimit:   "128Mi",
	Heap:       "128m",
}

SizeProfileSmall defines the small size profile.

Functions

func Add

func Add(mgr manager.Manager, coreName, dataVolumePath, image, imageInit, imageUser, storageClass string, port int) error

Add creates a new Solr Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type ReconcileParams

type ReconcileParams struct {
	CoreName       string
	DataVolumePath string
	Image          string
	ImageInit      string
	ImageUser      string
	StorageClass   string
	Port           int
}

ReconcileParams contains parameters to pass to reconcile loop.

type ReconcileSolr

type ReconcileSolr struct {
	client.Client
	// contains filtered or unexported fields
}

ReconcileSolr reconciles a Solr object

func (*ReconcileSolr) Reconcile

func (r *ReconcileSolr) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a Solr object and makes changes based on the state read and what is in the Solr.Spec Automatically generate RBAC rules to allow the Controller to read and write statefulesets +kubebuilder:rbac:groups=apps,resources=statefulsets,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=apps,resources=statefulsets/status,verbs=get;update;patch +kubebuilder:rbac:groups=apps,resources=services,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=apps,resources=services/status,verbs=get;update;patch +kubebuilder:rbac:groups=search.skpr.io,resources=solrs,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=search.skpr.io,resources=solrs/status,verbs=get;update;patch

type SizeProfile

type SizeProfile struct {
	Name       searchv1beta1.SolrSize
	PVCRequest string
	CPURequest string
	CPULimit   string
	MemRequest string
	MemLimit   string
	Heap       string
}

SizeProfile handles a collection of configurations for a specific size profile.

Jump to

Keyboard shortcuts

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