Skip to content

Commit 684f108

Browse files
committed
fix gosec issues
Signed-off-by: Markus Blaschke <[email protected]>
1 parent 2dbf4ce commit 684f108

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ func parseAppConfig(path string) (conf config.Config) {
100100
conf = config.Config{}
101101

102102
log.WithField("path", path).Infof("reading configuration from file %v", path)
103+
/* #nosec */
103104
if data, err := ioutil.ReadFile(path); err == nil {
104105
configRaw = data
105106
} else {

manager/manager.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ func (m *KubePoolManager) startupApply() {
136136
}
137137

138138
m.nodePatchStatus = map[string]bool{}
139-
for _, node := range nodeList.Items {
139+
for _, row := range nodeList.Items {
140+
node := row
140141
m.nodePatchStatus[node.Name] = true
141142
m.applyNode(&node)
142143
}

0 commit comments

Comments
 (0)