Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for persistentVolumeClaimRetentionPolicy field in statefulset mode #3305

Open
dferrochio opened this issue Sep 24, 2024 · 0 comments
Labels
area:collector Issues for deploying collector enhancement New feature or request

Comments

@dferrochio
Copy link

Component(s)

collector

Is your feature request related to a problem? Please describe.

I'm not able to change the persistentVolumeClaimRetentionPolicy field in statefulset mode. I need to change the default policy to delete the PVC's when the statefulset is scaled.

Describe the solution you'd like

Solution might be an optional configuration section for the statefulset specs like this:

apiVersion: opentelemetry.io/v1beta1
kind: OpenTelemetryCollector
spec:
  mode: statefulset
  statefulset:
    spec:
      persistentVolumeClaimRetentionPolicy:
        whenDeleted: Retain
        whenScaled: Delete

Describe alternatives you've considered

No response

Additional context

No response

@dferrochio dferrochio added enhancement New feature or request needs triage labels Sep 24, 2024
@jaronoff97 jaronoff97 added area:collector Issues for deploying collector and removed needs triage labels Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:collector Issues for deploying collector enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants