Skip to content

Commit 230f316

Browse files
committed
fixing linter and license ci issues
1 parent 4a692d9 commit 230f316

File tree

5 files changed

+23
-5
lines changed

5 files changed

+23
-5
lines changed

dogfood/client/chart/templates/volumeclaim.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Unless explicitly stated otherwise all files in this repository are licensed
22
# under the Apache License Version 2.0.
33
# This product includes software developed at Datadog (https://www.datadoghq.com/).
4-
# Copyright 2021 Datadog, Inc.
4+
# Copyright 2022 Datadog, Inc.
55

66
apiVersion: v1
77
kind: PersistentVolumeClaim

dogfood/client/dogfood_client.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,16 @@ func printAndLog(logLine string) {
6666
if err != nil {
6767
log.Fatal(err)
6868
}
69+
6970
logLineBytes := make([]byte, 500000)
71+
7072
_, err = f.Read(logLineBytes)
7173
if err != nil {
7274
log.Fatal(err)
7375
}
74-
f.Close()
76+
if err := f.Close(); err != nil {
77+
log.Fatal(err)
78+
}
7579
if _, err := os.Stat("/mnt/data/logging"); errors.Is(err, os.ErrNotExist) {
7680
f, err = os.Create("/mnt/data/logging")
7781
if err != nil {
@@ -83,11 +87,14 @@ func printAndLog(logLine string) {
8387
log.Fatal(err)
8488
}
8589
}
90+
8691
_, err = f.Write(logLineBytes)
8792
if err != nil {
8893
log.Fatal(err)
8994
}
90-
f.Close()
95+
if err = f.Close(); err != nil {
96+
log.Fatal(err)
97+
}
9198
}()
9299
}
93100

@@ -159,6 +166,7 @@ func main() {
159166

160167
// generate and use client
161168
client := pb.NewChaosDogfoodClient(conn)
169+
162170
printAndLog("We successfully generated the client, getting ready to send requests")
163171

164172
sendsLotsOfRequests(client)

dogfood/datadog-agent-all-features.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed
2+
# under the Apache License Version 2.0.
3+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
# Copyright 2022 Datadog, Inc.
15
---
26
# Source: datadog/templates/cluster-agent-rbac.yaml
37
apiVersion: v1

dogfood/tester/disruptions.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// Unless explicitly stated otherwise all files in this repository are licensed
2+
// under the Apache License Version 2.0.
3+
// This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
// Copyright 2022 Datadog, Inc.
5+
16
package main
27

38
import (

dogfood/tester/dogfood_tester.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ package main
77

88
import (
99
"encoding/json"
10-
"github.com/DataDog/chaos-controller/api/v1beta1"
11-
"go.uber.org/zap"
1210
"net/http"
1311
"time"
12+
13+
"github.com/DataDog/chaos-controller/api/v1beta1"
14+
"go.uber.org/zap"
1415
)
1516

1617
var VERSION string

0 commit comments

Comments
 (0)