Skip to content

Commit

Permalink
Use kubelet path configuration constant. (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 authored Oct 2, 2024
1 parent 3234a58 commit 8b118a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webhook/controlplane/ensurer.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func (e *ensurer) EnsureAdditionalFiles(ctx context.Context, gctx gcontext.Garde

var files []extensionsv1alpha1.File
for _, f := range *new {
if f.Path == "/var/lib/kubelet/config/kubelet" {
if f.Path == v1beta1constants.OperatingSystemConfigFilePathKubeletConfig {
// for cis benchmark this needs to be 600
f.Permissions = pointer.Pointer(int32(0600))
}
Expand Down

0 comments on commit 8b118a3

Please sign in to comment.