Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Enhancement for adding SidecarContainers and AdditionalVolume under Spec #247

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

DesmondH0
Copy link

Dear community,

This PR is for user able to adding any sidecar containers & additional volume to the cluster.
With this enhancement, users can easily perform tasks like exporting slow query log to ES.

Examples for both Spec Keys provided as well.
Thanks all.

@DesmondH0
Copy link
Author

And I just signed the OCA and sent it to the email provided.

@owainlewis owainlewis added the oracle-cla: yes Contributor has signed the Oracle Contributor Licence Agreement label Jan 7, 2019
@owainlewis
Copy link
Member

OCA approved. PR can be reviewed.

@owainlewis owainlewis requested a review from prydie January 7, 2019 14:24
Copy link

@prydie prydie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @DesmondHoLLM, thanks for your contribution!

Whilst I think this is a useful feature I think we need to think a little on the implementation. We're adding more and more fields to allow customisation of the StatefulSet with a variable amount of consistency with existing Kubernetes API patterns.

I wonder if we would be better exposing a full PodTemplate on the Cluster CRD spec that we merge with the spec in the operator perhaps?

@DesmondH0
Copy link
Author

Hi @prydie, thanks for the review.

About the statefulset. I think its better to be controlled by the operator with the options provided but not exposing the PodTemplate.
Which exposing the PodTemplate may lead user easily breaking the cluster and make the operator meaningless :(

@alantang888
Copy link

@prydie I worry about conflict if user can setup whole statefulset in CRD. When user make a statefulset with name mysql with some spec will conflict with operator created spec. It will have some unexpected behaviour.

So on my opinion that should only allow user modify things not direct impact to MySQL. Instead of let user can over control whole statefulset.

@DesmondH0
Copy link
Author

Hi @prydie, may i know any update on this?

@prydie
Copy link

prydie commented Jan 22, 2019

@DesmondHoLLM I think we need a solution that doesn't involve mounting all additional volumes under /mnt/ prior to merging (say an aditionalVolumeMounts field).

At some point I'd like to flesh out my idea of exposing a PodTemplate and merging the contents with our internal requirements, however, that needn't block this feature.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
oracle-cla: yes Contributor has signed the Oracle Contributor Licence Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants