Skip to content

Add possibility to annotate zookeeper to trigger rolling update #352

@nosvalds

Description

@nosvalds

You can manually trigger a restart of the solr pods by changing an annotation in podOptions

apiVersion: solr.apache.org/v1beta1
kind: SolrCloud
spec:
  customSolrKubeOptions:
    podOptions:
          annotations:
            manualrestart: "2021-10-20T08:37:00Z"

This is currently not possible to do for the zookeeper pods managed by the solr-operator. It would be nice if you could add an annotation for the zookeeper config to manually trigger a restart like the solr pods.

Errors if you try to annotate zookeeperRef:

ValidationError(SolrCloud.spec.zookeeperRef.provided.zookeeperPodPolicy): unknown field "annotations" in org.apache.solr.v1beta1.SolrCloud.spec.zookeeperRef.provided.zookeeperPodPolicy;

ValidationError(SolrCloud.spec.zookeeperRef): unknown field "annotations" in org.apache.solr.v1beta1.SolrCloud.spec.zookeeperRef;

Full background from slack: https://kubernetes.slack.com/archives/CQSNS615F/p1634636068067300

Metadata

Metadata

Assignees

No one assigned

    Labels

    custom kube optionsAdding options related to customizing parts of the default Kubernetes resources.zookeeperRelated to Zookeeper or the Zookeeper Operator

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions