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

Cherry-pick: Reject dynakubes that use public image and not read only oneAgent #4346 #4386

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

waodim
Copy link
Contributor

@waodim waodim commented Jan 30, 2025

Description

same as #4346

How can this be tested?

same as in #4346

@waodim waodim added the cherrypick Cherrypicked changes that already exist in a different PR label Jan 30, 2025
@waodim waodim requested a review from a team as a code owner January 30, 2025 08:54
@codecov-commenter
Copy link

codecov-commenter commented Jan 30, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.37%. Comparing base (c7eda80) to head (3ee5120).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4386   +/-   ##
=======================================
  Coverage   64.36%   64.37%           
=======================================
  Files         402      402           
  Lines       26554    26559    +5     
=======================================
+ Hits        17092    17097    +5     
  Misses       8151     8151           
  Partials     1311     1311           
Flag Coverage Δ
unittests 64.37% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -23,6 +23,8 @@ Use a nodeSelector to avoid this conflict. Conflicting DynaKubes: %s`

errorVolumeStorageReadOnlyModeConflict = `The DynaKube specification specifies a read-only host file system while OneAgent has volume storage enabled.`

errorPublicImageWithWrongConfig = `The DynaKube specification specifies a custom (and therefor probably a public) image in combination with a mode that needs write permissions for volume mounts.`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
errorPublicImageWithWrongConfig = `The DynaKube specification specifies a custom (and therefor probably a public) image in combination with a mode that needs write permissions for volume mounts.`
errorPublicImageWithWrongConfig = `The DynaKube specification specifies a custom (most likely public) image in combination with a mode that needs write permissions for volume mounts.`

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the information in the warning is confusing and incorrect: #4346 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well I agree to be honest it may be a little too technical

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed it to @chrismuellner 's suggestion as I like it and it is correct: 9cd3a62

Now if my prev. wording is wrong we probably should also change it on the release branch right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherrypick Cherrypicked changes that already exist in a different PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants