-
Notifications
You must be signed in to change notification settings - Fork 190
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: the decimal value of the default mount mode for TLS secrets #8627
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8627 +/- ##
==========================================
+ Coverage 60.49% 60.79% +0.30%
==========================================
Files 378 378
Lines 45623 45757 +134
==========================================
+ Hits 27598 27817 +219
+ Misses 15441 15338 -103
- Partials 2584 2602 +18
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -223,7 +223,7 @@ func (t *componentTLSTransformer) composeTLSVolume( | |||
if compDef.Spec.TLS.DefaultMode != nil { | |||
volume.VolumeSource.Secret.DefaultMode = ptr.To(*compDef.Spec.TLS.DefaultMode) | |||
} else { | |||
volume.VolumeSource.Secret.DefaultMode = ptr.To(int32(0600)) | |||
volume.VolumeSource.Secret.DefaultMode = ptr.To(int32(384)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. The issue is that the default value set by Kubebuilder is treated as decimal 600 by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep this line unchanged for readability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
759f1e9
to
2242ae1
Compare
2242ae1
to
1606d6e
Compare
/cherry-pick release-1.0-beta |
🤖 says: cherry pick action finished successfully 🎉! |
(cherry picked from commit 4e6c466)
close #8626