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

Remove default claims - fixes #1281 #1282

Merged
merged 2 commits into from
Nov 30, 2022

Conversation

ekarlso
Copy link
Contributor

@ekarlso ekarlso commented Nov 27, 2022

Resolves #1281

@ekarlso ekarlso requested a review from a team November 27, 2022 19:04
Copy link
Member

@pavolloffay pavolloffay left a comment

Choose a reason for hiding this comment

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

LGTM, just one question

@@ -76,11 +76,6 @@ func Container(cfg config.Config, logger logr.Logger, otelcol v1alpha1.OpenTelem

if len(otelcol.Spec.VolumeMounts) > 0 {
volumeMounts = append(volumeMounts, otelcol.Spec.VolumeMounts...)
} else if otelcol.Spec.Mode == "statefulset" {
Copy link
Member

Choose a reason for hiding this comment

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

so the users will have to define the volumes explicitly in the CR?

I don't think we have even documented this default volume so not sure somebody used it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you need a volume you're need to declare one to have one yes. Basically if not you Will always end up having PVCs / vols required that in some circumstances is not needed by default

@pavolloffay pavolloffay merged commit e379693 into open-telemetry:main Nov 30, 2022
@pavolloffay
Copy link
Member

thanks, merging this

@ekarlso ekarlso deleted the remove-default-claims branch November 30, 2022 11:21
ihalaij1 pushed a commit to ihalaij1/opentelemetry-operator that referenced this pull request Dec 8, 2022
ItielOlenick pushed a commit to ItielOlenick/opentelemetry-operator that referenced this pull request May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OTEL Operator adds un-needed default volume for StatefulSet
2 participants