Skip to content

Commit

Permalink
Add CNI file logging by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mgleung committed Aug 13, 2020
1 parent e4f28cf commit 4fbf3fc
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 @@ -385,6 +385,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 @@ -116,6 +116,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 @@ -452,6 +453,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 @@ -1433,6 +1435,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 @@ -1512,6 +1515,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 4fbf3fc

Please sign in to comment.