Skip to content

Commit

Permalink
node-drain: fix code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
calebxu-hcl committed Jan 19, 2022
1 parent 05726d3 commit 916934b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chaoslib/litmus/node-drain/lib/node-drain.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func uncordonNode(experimentsDetails *experimentTypes.ExperimentDetails, clients
if len(targetNodes) == 0 {
return errors.Errorf("No target nodes provided, expected the comma-separated names of one or more nodes")
}

for _, targetNode := range targetNodes {
nodeSpec, err := clients.KubeClient.CoreV1().Nodes().Get(targetNode, v1.GetOptions{})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion experiments/generic/node-drain/experiment/node-drain.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func NodeDrain(clients clients.ClientSets) {
//DISPLAY THE APP INFORMATION
log.InfoWithValues("[Info]: The application information is as follows", logrus.Fields{
"Node Label": experimentsDetails.NodeLabel,
"Target Nodes": experimentsDetails.TargetNodes,
"Target Nodes": experimentsDetails.TargetNodes,
"Chaos Duration": experimentsDetails.ChaosDuration,
})

Expand Down
2 changes: 1 addition & 1 deletion pkg/generic/node-drain/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type ExperimentDetails struct {
InstanceID string
ChaosNamespace string
ChaosPodName string
TargetNodes string
TargetNodes string
AuxiliaryAppInfo string
Timeout int
Delay int
Expand Down

0 comments on commit 916934b

Please sign in to comment.