Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Allow to configure VolumeMount for backrest-sidecar container #382

Closed
wants to merge 1 commit into from
Closed

Allow to configure VolumeMount for backrest-sidecar container #382

wants to merge 1 commit into from

Conversation

AKamyshnikova
Copy link
Contributor

Q A
Bug fix? []
New feature? [x]
API breaks? []
Deprecations? []
Related tickets fixes #X, partially #Y, mentioned in #Z
License Apache 2.0

What's in this PR?

In CassandraCluster extend section for BackRestSidecar to pass VolumeMounts.

Fixes: #381

Checklist

  • [ x] Implementation tested
  • Logging code meets the guideline
  • User guide and development docs updated (if needed)
  • Append changelog

@cscetbon
Copy link
Contributor

cscetbon commented Dec 7, 2021

@AKamyshnikova is that PR ready for review ?

@AKamyshnikova
Copy link
Contributor Author

@cscetbon yes, I just based on top of #379

@fdehay fdehay requested a review from cscetbon December 9, 2021 13:34
}

if cc.Spec.BackRestSidecar.Resources != nil {
container.Resources = *cc.Spec.BackRestSidecar.Resources
}

container.VolumeMounts = generateContainerVolumeMount(cc, backrestContainer)
container.VolumeMounts = append(container.VolumeMounts, generateContainerVolumeMount(cc, backrestContainer)...)
Copy link
Contributor

Choose a reason for hiding this comment

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

@AKamyshnikova I don't see a test that verifies the volumes mounted on backrest container. Can you add one ?

Copy link
Contributor

@cscetbon cscetbon left a comment

Choose a reason for hiding this comment

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

See my previous comment

@cscetbon
Copy link
Contributor

@AKamyshnikova I'm closing this PR. Please reopen it, based on the current master branch, if you still want it to be merged in. Thanks !

@cscetbon cscetbon closed this Feb 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow to configure VolumeMount for backrest-sidecar container
2 participants