gerlowskija edited a comment on issue #301:
URL: https://github.com/apache/solr-operator/issues/301#issuecomment-893584633


   I've attached a rough PR that shows how this could be done.  Below are an 
example 'solrcloud' and 'solrbackup' that use the proposed functionality:
   
   **SolrCloud**
   ```
   apiVersion: solr.apache.org/v1beta1
   kind: SolrCloud
   metadata:
     name: jasons_cluster
   spec:
     dataStorage:
       persistent:
         reclaimPolicy: Delete
         pvcTemplate:
           spec:
             resources:
               requests:
                 storage: "5Gi"
       backupRestoreOptions:
         gcsStorage:
           bucket: "solr-log-test"
           gcsCredentialSecret: "my-gcs-secret"
           baseLocation: "logs"
       ...
   ```
   The most noteworthy addition in this snippet is 
`.Spec.dataStorage.backupRestoreOptions.gcsStorage.gcsCredentialSecret`.  This 
required property holds the name of a secret created by the user.  This secret 
must have a key "service-account-key.json" whose value is the user's [Google 
Service 
Key](https://cloud.google.com/iam/docs/creating-managing-service-account-keys).
   
   **SolrBackup**
   ```
   apiVersion: solr.apache.org/v1beta1
   kind: SolrBackup
   metadata:
     name: gcs_techproducts_backup
     namespace: default
   spec:
     solrCloud: jasons_cluster
     collections:
       - techproducts
   ```
   (Note that there's no new configuration in 'solrbackup', just the removal of 
the 'persistence' section for gcs-backups.)
   
   I'm not wedded to these syntaxes by any means - just wanted to get some 
examples up here as a concrete starting point for discussion.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to