Skip to content

Commit

Permalink
fix: rename filepath to keep it consistent to variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaanvi5 committed Dec 3, 2024
1 parent 80a40c7 commit 8eca085
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ spec:
{{- else if eq $os "ubuntu" }}
- mountPath: /node-files/kubelet-extra-args
name: kubelet-extra-args
- mountPath: /node-files/kubelet-extra-args-legacy
name: kubelet-extra-args-legacy
- mountPath: /node-files/ubuntu-legacy-kubelet-extra-args
name: ubuntu-legacy-kubelet-extra-args
- name: package-mounts
mountPath: /eksa-packages
{{- else}}
Expand Down Expand Up @@ -84,7 +84,7 @@ spec:
hostPath:
path: /etc/default/kubelet
type: FileOrCreate
- name: kubelet-extra-args-legacy
- name: ubuntu-legacy-kubelet-extra-args
hostPath:
path: /etc/sysconfig/kubelet
type: FileOrCreate
Expand Down
5 changes: 2 additions & 3 deletions credentialproviderpackage/pkg/configurator/linux/linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
_ "embed"
"fmt"
"io"
"io/ioutil"
"os"
"strings"
"syscall"
Expand All @@ -26,7 +25,7 @@ const (
basePath = "/eksa-packages/"
credOutFile = "aws-creds"
mountedExtraArgs = "/node-files/kubelet-extra-args"
ubuntuLegacyExtraArgs = "/node-files/kubelet-extra-args-legacy"
ubuntuLegacyExtraArgs = "/node-files/ubuntu-legacy-kubelet-extra-args"
credProviderFile = "credential-provider-config.yaml"

// Binaries
Expand Down Expand Up @@ -226,7 +225,7 @@ func (c *linuxOS) createConfig() (string, error) {
if err != nil {
return "", nil
}
err = ioutil.WriteFile(dstPath, bytes, 0o600)
err = os.WriteFile(dstPath, bytes, 0o600)
if err != nil {
return "", err
}
Expand Down

0 comments on commit 8eca085

Please sign in to comment.