Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
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" )
const ( // ControllerName is an identifier for the controller. ControllerName string = "solr-controller" )
Variables ¶
var SizeProfileLarge = SizeProfile{ Name: searchv1beta1.SolrSizeLarge, PVCRequest: "10Gi", CPURequest: "500m", CPULimit: "500m", MemRequest: "512Mi", MemLimit: "512Mi", Heap: "512m", }
SizeProfileLarge defines the large size profile.
var SizeProfileMedium = SizeProfile{ Name: searchv1beta1.SolrSizeMedium, PVCRequest: "5Gi", CPURequest: "200m", CPULimit: "200m", MemRequest: "256Mi", MemLimit: "256Mi", Heap: "256m", }
SizeProfileMedium defines the medium size profile.
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 ¶
ReconcileSolr reconciles a Solr object
func (*ReconcileSolr) Reconcile ¶
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.