Skip to content

Commit

Permalink
Add CNI file logging by default (tigera#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgleung authored and Suraiya-Hameed committed Aug 27, 2020
1 parent 186d4c3 commit 4286fcb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/render/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ func (c *nodeComponent) nodeCNIConfigMap() *v1.ConfigMap {
"datastore_type": "kubernetes",
"mtu": %d,
"nodename_file_optional": %v,
"log_file_path": "/var/log/calico/cni/cni.log",
"ipam": {
"type": "calico-ipam",
"assign_ipv4" : "%s",
Expand Down
4 changes: 4 additions & 0 deletions pkg/render/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ var _ = Describe("Node rendering tests", func() {
"datastore_type": "kubernetes",
"mtu": 1410,
"nodename_file_optional": false,
"log_file_path": "/var/log/calico/cni/cni.log",
"ipam": {
"type": "calico-ipam",
"assign_ipv4" : "true",
Expand Down Expand Up @@ -446,6 +447,7 @@ var _ = Describe("Node rendering tests", func() {
"datastore_type": "kubernetes",
"mtu": 1410,
"nodename_file_optional": false,
"log_file_path": "/var/log/calico/cni/cni.log",
"ipam": {
"type": "calico-ipam",
"assign_ipv4" : "true",
Expand Down Expand Up @@ -1422,6 +1424,7 @@ var _ = Describe("Node rendering tests", func() {
"datastore_type": "kubernetes",
"mtu": 1410,
"nodename_file_optional": false,
"log_file_path": "/var/log/calico/cni/cni.log",
"ipam": {
"type": "calico-ipam",
"assign_ipv4" : "true",
Expand Down Expand Up @@ -1497,6 +1500,7 @@ var _ = Describe("Node rendering tests", func() {
"datastore_type": "kubernetes",
"mtu": 1410,
"nodename_file_optional": false,
"log_file_path": "/var/log/calico/cni/cni.log",
"ipam": {
"type": "calico-ipam",
"assign_ipv4" : "true",
Expand Down

0 comments on commit 4286fcb

Please sign in to comment.