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

fix!: Avoid clashing volumes and mounts #871

Merged
merged 28 commits into from
Sep 26, 2024

Conversation

sbernauer
Copy link
Member

@sbernauer sbernauer commented Sep 20, 2024

Description

Discovered in stackabletech/trino-operator#646

2024-09-19T14:50:51.706423Z ERROR stackable_operator::logging::controller: Failed to reconcile object controller.name="trinocluster.trino.stackable.tech" error=reconciler for object TrinoCluster.v1alpha1.trino.stackable.tech/trino.kuttl-test-golden-toucan failed error.sources=[failed to apply StatefulSet for role group worker/default of TrinoCluster.v1alpha1.trino.stackable.te
ch/trino.kuttl-test-golden-toucan, failed to apply patch, unable to patch resource "trino-worker-default", ApiError: failed to create typed patch object (kuttl-test-golden-toucan/trino-worker-default; apps/v1, Kind=StatefulSet): errors:                                                                                                                                               
  .spec.template.spec.containers[name="trino"].volumeMounts: duplicate entries for key [mountPath="/stackable/secrets/s3-credentials-class"]                                                                                                                                                                                                                                               
  .spec.template.spec.containers[name="trino"].volumeMounts: duplicate entries for key [mountPath="/stackable/secrets/minio-tls-certificates"]                                                                                                                                                                                                                                             
  .spec.template.spec.initContainers[name="prepare"].volumeMounts: duplicate entries for key [mountPath="/stackable/secrets/s3-credentials-class"]                                                                                                                                                                                                                                         
  .spec.template.spec.initContainers[name="prepare"].volumeMounts: duplicate entries for key [mountPath="/stackable/secrets/minio-tls-certificates"]                                                                                                                                                                                                                                       
  .spec.template.spec.volumes: duplicate entries for key [name="s3-credentials-class-s3-credentials"]                                                                                                                                                                                                                                                                                      
  .spec.template.spec.volumes: duplicate entries for key [name="minio-tls-certificates-ca-cert"]:  (ErrorResponse { status: "Failure", message: "failed to create typed patch object (kuttl-test-golden-toucan/trino-worker-default; apps/v1, Kind=StatefulSet): errors:\n  .spec.template.spec.containers[name=\"trino\"].volumeMounts: duplicate entries for key [mountPath=\"/stackable/
secrets/s3-credentials-class\"]\n  .spec.template.spec.containers[name=\"trino\"].volumeMounts: duplicate entries for key [mountPath=\"/stackable/secrets/minio-tls-certificates\"]\n  .spec.template.spec.initContainers[name=\"prepare\"].volumeMounts: duplicate entries for key [mountPath=\"/stackable/secrets/s3-credentials-class\"]\n  .spec.template.spec.initContainers[name=\"pr
epare\"].volumeMounts: duplicate entries for key [mountPath=\"/stackable/secrets/minio-tls-certificates\"]\n  .spec.template.spec.volumes: duplicate entries for key [name=\"s3-credentials-class-s3-credentials\"]\n  .spec.template.spec.volumes: duplicate entries for key [name=\"minio-tls-certificates-ca-cert\"]", reason: "", code: 500 }), failed to create typed patch object (ku
ttl-test-golden-toucan/trino-worker-default; apps/v1, Kind=StatefulSet): errors:                                                                                                                                                                                                                                                                                                           
  .spec.template.spec.containers[name="trino"].volumeMounts: duplicate entries for key [mountPath="/stackable/secrets/s3-credentials-class"]                                                                                                                                                                                                                                               
  .spec.template.spec.containers[name="trino"].volumeMounts: duplicate entries for key [mountPath="/stackable/secrets/minio-tls-certificates"]                                                                                                                                                                                                                                             
  .spec.template.spec.initContainers[name="prepare"].volumeMounts: duplicate entries for key [mountPath="/stackable/secrets/s3-credentials-class"]                                                                                                                                                                                                                                         
  .spec.template.spec.initContainers[name="prepare"].volumeMounts: duplicate entries for key [mountPath="/stackable/secrets/minio-tls-certificates"]                                                                                                                                                                                                                                       
  .spec.template.spec.volumes: duplicate entries for key [name="s3-credentials-class-s3-credentials"]                                                                                                                                                                                                                                                                                      
  .spec.template.spec.volumes: duplicate entries for key [name="minio-tls-certificates-ca-cert"]: ]

Definition of Done Checklist

  • Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant
  • Please make sure all these things are done and tick the boxes

Author

Reviewer

Acceptance

NickLarsenNZ
NickLarsenNZ previously approved these changes Sep 20, 2024
Copy link
Member

@NickLarsenNZ NickLarsenNZ left a comment

Choose a reason for hiding this comment

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

LGTM. I like the doc-comments

crates/stackable-operator/src/builder/pod/container.rs Outdated Show resolved Hide resolved
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

clippy

🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
   --> crates/stackable-operator/src/builder/pod/container.rs:252:10
    |
30  | /     ClashingVolumeMountMountPath {
31  | |         existing_volume_mount: VolumeMount,
32  | |         new_volume_mount: VolumeMount,
33  | |     },
    | |_____- the largest variant contains at least 304 bytes
...
252 |       ) -> Result<&mut Self> {
    |            ^^^^^^^^^^^^^^^^^
    |
    = help: try reducing the size of `builder::pod::container::Error`, for example by boxing large elements or replacing it with `Box`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err


🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
   --> crates/stackable-operator/src/builder/pod/container.rs:328:57
    |
30  | /     ClashingVolumeMountMountPath {
31  | |         existing_volume_mount: VolumeMount,
32  | |         new_volume_mount: VolumeMount,
33  | |     },
    | |_____- the largest variant contains at least 304 bytes
...
328 |       fn validate_container_name(container_name: &str) -> Result<()> {
    |                                                           ^^^^^^^^^^
    |
    = help: try reducing the size of `builder::pod::container::Error`, for example by boxing large elements or replacing it with `Box`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err


🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
    --> crates/stackable-operator/src/product_logging/framework.rs:1428:6
     |
39   | /     CreateContainer {
40   | |         source: builder::pod::container::Error,
41   | |     },
     | |_____- the largest variant contains at least 304 bytes
...
44   | /     AddVolumeMounts {
45   | |         source: builder::pod::container::Error,
46   | |     },
     | |_____- the variant `AddVolumeMounts` contains at least 304 bytes
...
1428 |   ) -> Result {
     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |
     = help: try reducing the size of `product_logging::framework::LoggingError`, for example by boxing large elements or replacing it with `Box`
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err


🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
  --> crates/stackable-operator/src/commons/authentication/ldap.rs:77:35
   |
39 | /     AddVolumeMounts {
40 | |         source: builder::pod::container::Error,
41 | |     },
   | |_____- the largest variant contains at least 304 bytes
...
77 |       pub fn endpoint_url(&self) -> Result {
   |                                     ^^^^^^^^^^^
   |
   = help: try reducing the size of `commons::authentication::ldap::Error`, for example by boxing large elements or replacing it with `Box`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err


🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
   --> crates/stackable-operator/src/commons/authentication/ldap.rs:111:10
    |
39  | /     AddVolumeMounts {
40  | |         source: builder::pod::container::Error,
41  | |     },
    | |_____- the largest variant contains at least 304 bytes
...
111 |       ) -> Result<()> {
    |            ^^^^^^^^^^
    |
    = help: try reducing the size of `commons::authentication::ldap::Error`, for example by boxing large elements or replacing it with `Box`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err


🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
   --> crates/stackable-operator/src/commons/authentication/ldap.rs:125:41
    |
39  | /     AddVolumeMounts {
40  | |         source: builder::pod::container::Error,
41  | |     },
    | |_____- the largest variant contains at least 304 bytes
...
125 |       pub fn volumes_and_mounts(&self) -> Result<(Vec, Vec)> {
    |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: try reducing the size of `commons::authentication::ldap::Error`, for example by boxing large elements or replacing it with `Box`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err


🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
  --> crates/stackable-operator/src/commons/s3/helpers.rs:51:31
   |
51 |       pub fn endpoint(&self) -> Result {
   |                                 ^^^^^^^^^^^^^^^^^^^^
   |
  ::: crates/stackable-operator/src/commons/s3/mod.rs:41:5
   |
41 | /     AddVolumeMounts {
42 | |         source: builder::pod::container::Error,
43 | |     },
   | |_____- the largest variant contains at least 304 bytes
   |
   = help: try reducing the size of `commons::s3::S3Error`, for example by boxing large elements or replacing it with `Box`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err


🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
  --> crates/stackable-operator/src/commons/s3/helpers.rs:86:10
   |
86 |       ) -> Result<(), S3Error> {
   |            ^^^^^^^^^^^^^^^^^^^
   |
  ::: crates/stackable-operator/src/commons/s3/mod.rs:41:5
   |
41 | /     AddVolumeMounts {
42 | |         source: builder::pod::container::Error,
43 | |     },
   | |_____- the largest variant contains at least 304 bytes
   |
   = help: try reducing the size of `commons::s3::S3Error`, for example by boxing large elements or replacing it with `Box`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err


🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
  --> crates/stackable-operator/src/commons/s3/helpers.rs:99:41
   |
99 |       pub fn volumes_and_mounts(&self) -> Result<(Vec, Vec), S3Error> {
   |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
  ::: crates/stackable-operator/src/commons/s3/mod.rs:41:5
   |
41 | /     AddVolumeMounts {
42 | |         source: builder::pod::container::Error,
43 | |     },
   | |_____- the largest variant contains at least 304 bytes
   |
   = help: try reducing the size of `commons::s3::S3Error`, for example by boxing large elements or replacing it with `Box`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err


🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
  --> crates/stackable-operator/src/commons/tls_verification.rs:53:10
   |
26 | /     AddVolumeMounts {
27 | |         source: builder::pod::container::Error,
28 | |     },
   | |_____- the largest variant contains at least 304 bytes
...
53 |       ) -> Result<(), TlsClientDetailsError> {
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: try reducing the size of `commons::tls_verification::TlsClientDetailsError`, for example by boxing large elements or replacing it with `Box`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err


🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
  --> crates/stackable-operator/src/commons/tls_verification.rs:69:10
   |
26 | /     AddVolumeMounts {
27 | |         source: builder::pod::container::Error,
28 | |     },
   | |_____- the largest variant contains at least 304 bytes
...
69 |       ) -> Result<(Vec, Vec), TlsClientDetailsError> {
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: try reducing the size of `commons::tls_verification::TlsClientDetailsError`, for example by boxing large elements or replacing it with `Box`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err


🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
    --> crates/stackable-operator/src/product_logging/framework.rs:1428:6
     |
39   | /     CreateContainer {
40   | |         source: builder::pod::container::Error,
41   | |     },
     | |_____- the largest variant contains at least 304 bytes
...
44   | /     AddVolumeMounts {
45   | |         source: builder::pod::container::Error,
46   | |     },
     | |_____- the variant `AddVolumeMounts` contains at least 304 bytes
...
1428 |   ) -> Result {
     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |
     = help: try reducing the size of `product_logging::framework::LoggingError`, for example by boxing large elements or replacing it with `Box`
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

@razvan razvan requested review from razvan and removed request for razvan September 23, 2024 08:44
Copy link
Member

@NickLarsenNZ NickLarsenNZ left a comment

Choose a reason for hiding this comment

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

Just a few changes needed.

crates/stackable-operator/src/builder/pod/container.rs Outdated Show resolved Hide resolved
crates/stackable-operator/src/builder/pod/container.rs Outdated Show resolved Hide resolved
crates/stackable-operator/src/builder/pod/container.rs Outdated Show resolved Hide resolved
crates/stackable-operator/src/builder/pod/mod.rs Outdated Show resolved Hide resolved
crates/stackable-operator/src/builder/pod/mod.rs Outdated Show resolved Hide resolved
crates/stackable-operator/src/builder/pod/container.rs Outdated Show resolved Hide resolved
crates/stackable-operator/src/builder/pod/mod.rs Outdated Show resolved Hide resolved
Copy link
Member

@Techassi Techassi left a comment

Choose a reason for hiding this comment

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

A bunch of small comments.

crates/stackable-operator/src/builder/pod/container.rs Outdated Show resolved Hide resolved
crates/stackable-operator/src/builder/pod/container.rs Outdated Show resolved Hide resolved
crates/stackable-operator/src/builder/pod/container.rs Outdated Show resolved Hide resolved
crates/stackable-operator/src/builder/pod/container.rs Outdated Show resolved Hide resolved
crates/stackable-operator/src/builder/pod/container.rs Outdated Show resolved Hide resolved
crates/stackable-operator/src/commons/s3/mod.rs Outdated Show resolved Hide resolved
crates/stackable-operator/src/commons/tls_verification.rs Outdated Show resolved Hide resolved
crates/stackable-operator/src/product_logging/framework.rs Outdated Show resolved Hide resolved
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

clippy

🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
  --> crates/stackable-operator/src/commons/tls_verification.rs:53:10
   |
26 | /     AddVolumeMounts {
27 | |         source: builder::pod::container::Error,
28 | |     },
   | |_____- the largest variant contains at least 168 bytes
...
53 |       ) -> Result<(), TlsClientDetailsError> {
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: try reducing the size of `commons::tls_verification::TlsClientDetailsError`, for example by boxing large elements or replacing it with `Box`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err


🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
  --> crates/stackable-operator/src/commons/tls_verification.rs:69:10
   |
26 | /     AddVolumeMounts {
27 | |         source: builder::pod::container::Error,
28 | |     },
   | |_____- the largest variant contains at least 168 bytes
...
69 |       ) -> Result<(Vec, Vec), TlsClientDetailsError> {
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: try reducing the size of `commons::tls_verification::TlsClientDetailsError`, for example by boxing large elements or replacing it with `Box`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err


🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
  --> crates/stackable-operator/src/commons/authentication/ldap.rs:77:35
   |
39 | /     AddVolumeMounts {
40 | |         source: builder::pod::container::Error,
41 | |     },
   | |_____- the largest variant contains at least 168 bytes
...
77 |       pub fn endpoint_url(&self) -> Result {
   |                                     ^^^^^^^^^^^
   |
   = help: try reducing the size of `commons::authentication::ldap::Error`, for example by boxing large elements or replacing it with `Box`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err


🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
   --> crates/stackable-operator/src/commons/authentication/ldap.rs:111:10
    |
39  | /     AddVolumeMounts {
40  | |         source: builder::pod::container::Error,
41  | |     },
    | |_____- the largest variant contains at least 168 bytes
...
111 |       ) -> Result<()> {
    |            ^^^^^^^^^^
    |
    = help: try reducing the size of `commons::authentication::ldap::Error`, for example by boxing large elements or replacing it with `Box`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err


🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
   --> crates/stackable-operator/src/commons/authentication/ldap.rs:125:41
    |
39  | /     AddVolumeMounts {
40  | |         source: builder::pod::container::Error,
41  | |     },
    | |_____- the largest variant contains at least 168 bytes
...
125 |       pub fn volumes_and_mounts(&self) -> Result<(Vec, Vec)> {
    |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: try reducing the size of `commons::authentication::ldap::Error`, for example by boxing large elements or replacing it with `Box`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err


🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
    --> crates/stackable-operator/src/product_logging/framework.rs:1440:6
     |
39   | /     CreateContainer {
40   | |         source: builder::pod::container::Error,
41   | |     },
     | |_____- the largest variant contains at least 168 bytes
...
44   | /     AddVolumeMounts {
45   | |         source: builder::pod::container::Error,
46   | |     },
     | |_____- the variant `AddVolumeMounts` contains at least 168 bytes
...
1440 |   ) -> Result {
     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |
     = help: try reducing the size of `product_logging::framework::LoggingError`, for example by boxing large elements or replacing it with `Box`
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err


🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
  --> crates/stackable-operator/src/commons/s3/helpers.rs:51:31
   |
51 |       pub fn endpoint(&self) -> Result {
   |                                 ^^^^^^^^^^^^^^^^^^^^
   |
  ::: crates/stackable-operator/src/commons/s3/mod.rs:41:5
   |
41 | /     AddVolumeMounts {
42 | |         source: builder::pod::container::Error,
43 | |     },
   | |_____- the largest variant contains at least 168 bytes
   |
   = help: try reducing the size of `commons::s3::S3Error`, for example by boxing large elements or replacing it with `Box`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err


🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
  --> crates/stackable-operator/src/commons/s3/helpers.rs:86:10
   |
86 |       ) -> Result<(), S3Error> {
   |            ^^^^^^^^^^^^^^^^^^^
   |
  ::: crates/stackable-operator/src/commons/s3/mod.rs:41:5
   |
41 | /     AddVolumeMounts {
42 | |         source: builder::pod::container::Error,
43 | |     },
   | |_____- the largest variant contains at least 168 bytes
   |
   = help: try reducing the size of `commons::s3::S3Error`, for example by boxing large elements or replacing it with `Box`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err


🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
  --> crates/stackable-operator/src/commons/s3/helpers.rs:99:41
   |
99 |       pub fn volumes_and_mounts(&self) -> Result<(Vec, Vec), S3Error> {
   |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
  ::: crates/stackable-operator/src/commons/s3/mod.rs:41:5
   |
41 | /     AddVolumeMounts {
42 | |         source: builder::pod::container::Error,
43 | |     },
   | |_____- the largest variant contains at least 168 bytes
   |
   = help: try reducing the size of `commons::s3::S3Error`, for example by boxing large elements or replacing it with `Box`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err


🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
  --> crates/stackable-operator/src/commons/tls_verification.rs:53:10
   |
26 | /     AddVolumeMounts {
27 | |         source: builder::pod::container::Error,
28 | |     },
   | |_____- the largest variant contains at least 168 bytes
...
53 |       ) -> Result<(), TlsClientDetailsError> {
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: try reducing the size of `commons::tls_verification::TlsClientDetailsError`, for example by boxing large elements or replacing it with `Box`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err


🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
  --> crates/stackable-operator/src/commons/tls_verification.rs:69:10
   |
26 | /     AddVolumeMounts {
27 | |         source: builder::pod::container::Error,
28 | |     },
   | |_____- the largest variant contains at least 168 bytes
...
69 |       ) -> Result<(Vec, Vec), TlsClientDetailsError> {
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: try reducing the size of `commons::tls_verification::TlsClientDetailsError`, for example by boxing large elements or replacing it with `Box`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err


🚫 [clippy] reported by reviewdog 🐶

error: the `Err`-variant returned from this function is very large
    --> crates/stackable-operator/src/product_logging/framework.rs:1440:6
     |
39   | /     CreateContainer {
40   | |         source: builder::pod::container::Error,
41   | |     },
     | |_____- the largest variant contains at least 168 bytes
...
44   | /     AddVolumeMounts {
45   | |         source: builder::pod::container::Error,
46   | |     },
     | |_____- the variant `AddVolumeMounts` contains at least 168 bytes
...
1440 |   ) -> Result {
     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |
     = help: try reducing the size of `product_logging::framework::LoggingError`, for example by boxing large elements or replacing it with `Box`
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

@sbernauer sbernauer requested review from Techassi and removed request for Techassi September 25, 2024 09:28
@sbernauer sbernauer dismissed NickLarsenNZ’s stale review September 26, 2024 11:42

We had a meeting together with Techassi

@sbernauer sbernauer added this pull request to the merge queue Sep 26, 2024
Merged via the queue into main with commit 95dcfd4 Sep 26, 2024
10 checks passed
@sbernauer sbernauer deleted the fix/clashing-volumes-and-mounts-2 branch September 26, 2024 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

4 participants