package
0.8.1
Repository: https://github.com/apache/solr-operator.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AddACLsToEnv creates the neccessary environment variables for using ZK ACLs, and returns whether ACLs were provided.
Similar to security.AddAuthToContext but we need to lookup the secret containing the authn credentials first.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BalanceReplicasForCluster takes a SolrCloud and balances all replicas across the Pods that are currently alive.
No description provided by the author
No description provided by the author
ContainsString helper function to test string contains.
CopyConfigMapFields copies the owned fields from one ConfigMap to another.
No description provided by the author
CopyDeploymentFields copies the owned fields from one Deployment to another Returns true if the fields copied from don't match to.
CopyIngressFields copies the owned fields from one Ingress to another.
CopyLabelsAndAnnotations copies the labels and annotations from one object to another.
No description provided by the author
CopyPodDisruptionBudgetFields copies the owned fields from one PodDisruptionBudget to another.
No description provided by the author
No description provided by the author
No description provided by the author
CopyServiceFields copies the owned fields from one Service to another.
CopyStatefulSetFields copies the owned fields from one StatefulSet to another Returns true if the fields copied from don't match to.
CopyZookeeperClusterFields copies the owned fields from one ZookeeperCluster to another Returns true if the fields copied from don't match to.
CreateCommonIngressRule returns a new Ingress Rule generated for a SolrCloud under the given domainName solrCloud: SolrCloud instance domainName: string Domain for the ingress rule to use.
CreateMetricsIngressRule returns a new Ingress Rule generated for the solr metrics endpoint This is not currently used, as an ingress is not created for the metrics endpoint.
CreateNodeIngressRule returns a new Ingress Rule generated for a specific Solr Node under the given domainName solrCloud: SolrCloud instance nodeName: string Name of the node domainName: string Domain for the ingress rule to use.
CreateSolrIngressRules returns all applicable ingress rules for a cloud.
DeepEqualWithNils returns a deepEquals call that treats nil and zero-length maps, arrays and slices as the same.
No description provided by the author
DeterminePodsSafeToUpdate takes a list of solr Pods and returns a list of pods that are safe to upgrade now.
No description provided by the author
No description provided by the author
EvictReplicasForPodIfNecessary takes a solr Pod and migrates all replicas off of that Pod.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GenerateCommonService returns a new corev1.Service pointer generated for the entire SolrCloud instance solrCloud: SolrCloud instance.
GenerateConfigMap returns a new corev1.ConfigMap pointer generated for the SolrCloud instance solr.xml solrCloud: SolrCloud instance.
GenerateHeadlessService returns a new Headless corev1.Service pointer generated for the SolrCloud instance The PublishNotReadyAddresses option is set as true, because we want each pod to be reachable no matter the readiness of the pod.
GenerateIngress returns a new Ingress pointer generated for the entire SolrCloud, pointing to all instances solrCloud: SolrCloud instance nodeStatuses: []SolrNodeStatus the nodeStatuses.
GenerateMetricsConfigMap returns a new corev1.ConfigMap pointer generated for the Solr Prometheus Exporter instance solr-prometheus-exporter.xml solrPrometheusExporter: SolrPrometheusExporter instance.
GenerateNodeService returns a new External corev1.Service pointer generated for the given Solr Node.
No description provided by the author
No description provided by the author
GenerateSolrMetricsService returns a new corev1.Service pointer generated for the SolrCloud Prometheus Exporter deployment Metrics will be collected on this service endpoint, as we don't want to double-tick data if multiple exporters are runnning.
GenerateSolrPrometheusExporterDeployment returns a new appsv1.Deployment pointer generated for the SolrCloud Prometheus Exporter instance solrPrometheusExporter: SolrPrometheusExporter instance.
No description provided by the author
No description provided by the author
GenerateStatefulSet returns a new appsv1.StatefulSet pointer generated for the SolrCloud instance object: SolrCloud instance replicas: the number of replicas for the SolrCloud instance storage: the size of the storage for the SolrCloud instance (e.g.
GenerateZookeeperCluster returns a new ZookeeperCluster pointer generated for the SolrCloud instance object: SolrCloud instance zkSpec: the spec of the ZookeeperCluster to generate.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IsPVCOrphan determines whether the given name represents a PVC that is an orphan, or no longer has a pod associated with it.
No description provided by the author
No description provided by the author
MaintainPreservedStatefulSetFields makes sure that certain fields in the SolrCloud statefulSet are preserved across updates to the statefulSet.
No description provided by the author
OvertakeControllerRef makes sure that the controlled object has the owner as the controller ref.
Given a SolrCloud instance and an API service client, produce a SecurityConfig needed to enable Solr security.
RemoveString helper function to remove string.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ResolveMaxPodsUnavailable resolves the maximum number of pods that are allowed to be unavailable, when choosing pods to update.
ResolveMaxShardReplicasUnavailable resolves the maximum number of replicas that are allowed to be unavailable for a given shard, when choosing pods to update.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SolrNodeName takes a cloud and a pod and returns the Solr nodeName for that pod.
No description provided by the author
Get a TLSCerts struct for reconciling TLS on an Exporter.
Get a TLSCerts struct for reconciling TLS on a SolrCloud.
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
Protected StatefulSet annotations These are to be saved on a statefulSet update.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
Utility struct holding security related config and objects resolved at runtime needed during reconciliation, such as the secret holding credentials the operator should use to make calls to secure Solr.
SolrConnectionInfo defines how to connect to a cloud or standalone solr instance.
No description provided by the author
Helper struct for holding server and/or client cert config This struct is intended for internal use only and is only exposed outside the package so that the controllers can access.
Holds TLS options from the user config as well as other config properties determined during reconciliation This struct is intended for internal use only and is only exposed outside the package so that the controllers can access.