Skip to content

Commit 7deb9f6

Browse files
Andriiondrej-fabry
Andrii
authored andcommitted
refactor: Update conf duration to string values (#1505)
1 parent 0dc9eba commit 7deb9f6

File tree

37 files changed

+72
-43
lines changed

37 files changed

+72
-43
lines changed

Gopkg.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker/dev/etcd.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
insecure-transport: true
2-
dial-timeout: 1000000000
2+
dial-timeout: 1s
33
endpoints:
44
- "172.17.0.1:2379"

docker/prod/etcd.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
insecure-transport: true
2-
dial-timeout: 1000000000
2+
dial-timeout: 1s
33
endpoints:
44
- "172.17.0.1:2379"
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
insecure-transport: true
2-
dial-timeout: 1000000000
2+
dial-timeout: 1s
33
endpoints:
44
- "127.0.0.1:2379"
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
insecure-transport: true
2-
dial-timeout: 1000000000
2+
dial-timeout: 1s
33
endpoints:
44
- "172.17.0.1:2379"

k8s/dev-setup/etcd.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
insecure-transport: true
2-
dial-timeout: 1000000000
2+
dial-timeout: 1s
33
endpoints:
44
- "127.0.0.1:22379"

k8s/dev-setup/vnf-vpp.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ metadata:
2222
data:
2323
etcd.conf: |
2424
insecure-transport: true
25-
dial-timeout: 1000000000
25+
dial-timeout: 1s
2626
endpoints:
2727
- "172.17.0.1:22379"
2828
kafka.conf: |

k8s/dev-setup/vswitch-vpp.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ metadata:
2121
data:
2222
etcd.conf: |
2323
insecure-transport: true
24-
dial-timeout: 1000000000
24+
dial-timeout: 1s
2525
endpoints:
2626
- "172.17.0.1:22379"
2727
kafka.conf: |

k8s/perf-demo/scenario1/vnf/vnf-agent-cfg.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
data:
77
etcd.conf: |
88
insecure-transport: true
9-
dial-timeout: 1000000000
9+
dial-timeout: 1s
1010
endpoints:
1111
- "172.17.0.1:22379"
1212
kafka.conf: |

k8s/perf-demo/scenario1/vswitch/vswitch-agent-cfg.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
data:
77
etcd.conf: |
88
insecure-transport: true
9-
dial-timeout: 1000000000
9+
dial-timeout: 1s
1010
endpoints:
1111
- "172.17.0.1:22379"
1212
kafka.conf: |

k8s/perf-demo/scenario2/vnf/vnf-agent-cfg.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
data:
77
etcd.conf: |
88
insecure-transport: true
9-
dial-timeout: 1000000000
9+
dial-timeout: 1s
1010
endpoints:
1111
- "172.17.0.1:22379"
1212
kafka.conf: |

k8s/perf-demo/scenario2/vswitch/vswitch-agent-cfg.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
data:
77
etcd.conf: |
88
insecure-transport: true
9-
dial-timeout: 1000000000
9+
dial-timeout: 1s
1010
endpoints:
1111
- "172.17.0.1:22379"
1212
kafka.conf: |

k8s/perf-demo/scenario4/vnf/vnf-agent-cfg.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
data:
77
etcd.conf: |
88
insecure-transport: true
9-
dial-timeout: 1000000000
9+
dial-timeout: 1s
1010
endpoints:
1111
- "172.17.0.1:22379"
1212
kafka.conf: |

k8s/perf-demo/scenario4/vswitch/vswitch-agent-cfg.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
data:
77
etcd.conf: |
88
insecure-transport: true
9-
dial-timeout: 1000000000
9+
dial-timeout: 1s
1010
endpoints:
1111
- "172.17.0.1:22379"
1212
kafka.conf: |

k8s/perf-demo/with-controller/scenario1/sfc/sfc-cfg.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
data:
77
etcd.conf: |
88
insecure-transport: true
9-
dial-timeout: 1000000000
9+
dial-timeout: 1s
1010
endpoints:
1111
- "172.17.0.1:22379"
1212

k8s/perf-demo/with-controller/scenario1/vnf/vnf-agent-cfg.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
data:
77
etcd.conf: |
88
insecure-transport: true
9-
dial-timeout: 1000000000
9+
dial-timeout: 1s
1010
endpoints:
1111
- "172.17.0.1:22379"
1212
kafka.conf: |

k8s/perf-demo/with-controller/scenario1/vswitch/vswitch-agent-cfg.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
data:
77
etcd.conf: |
88
insecure-transport: true
9-
dial-timeout: 1000000000
9+
dial-timeout: 1s
1010
endpoints:
1111
- "172.17.0.1:22379"
1212
kafka.conf: |

k8s/perf-demo/with-controller/scenario2/sfc/sfc-cfg.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
data:
77
etcd.conf: |
88
insecure-transport: true
9-
dial-timeout: 1000000000
9+
dial-timeout: 1s
1010
endpoints:
1111
- "172.17.0.1:22379"
1212

k8s/perf-demo/with-controller/scenario2/vnf/vnf-agent-cfg.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
data:
77
etcd.conf: |
88
insecure-transport: true
9-
dial-timeout: 1000000000
9+
dial-timeout: 1s
1010
endpoints:
1111
- "172.17.0.1:22379"
1212
kafka.conf: |

k8s/perf-demo/with-controller/scenario2/vswitch/vswitch-agent-cfg.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
data:
77
etcd.conf: |
88
insecure-transport: true
9-
dial-timeout: 1000000000
9+
dial-timeout: 1s
1010
endpoints:
1111
- "172.17.0.1:22379"
1212
kafka.conf: |

k8s/perf-demo/with-controller/scenario23/sfc/sfc-cfg.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
data:
77
etcd.conf: |
88
insecure-transport: true
9-
dial-timeout: 1000000000
9+
dial-timeout: 1s
1010
endpoints:
1111
- "172.17.0.1:22379"
1212

k8s/perf-demo/with-controller/scenario23/vnf/vnf-agent-cfg.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
data:
77
etcd.conf: |
88
insecure-transport: true
9-
dial-timeout: 1000000000
9+
dial-timeout: 1s
1010
endpoints:
1111
- "172.17.0.1:22379"
1212
kafka.conf: |

k8s/perf-demo/with-controller/scenario23/vswitch/vswitch-agent-cfg.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
data:
77
etcd.conf: |
88
insecure-transport: true
9-
dial-timeout: 1000000000
9+
dial-timeout: 1s
1010
endpoints:
1111
- "172.17.0.1:22379"
1212
kafka.conf: |

k8s/perf-demo/with-controller/scenario4/sfc/sfc-cfg.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
data:
77
etcd.conf: |
88
insecure-transport: true
9-
dial-timeout: 1000000000
9+
dial-timeout: 1s
1010
endpoints:
1111
- "172.17.0.1:22379"
1212

k8s/perf-demo/with-controller/scenario4/vnf/vnf-agent-cfg.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
data:
77
etcd.conf: |
88
insecure-transport: true
9-
dial-timeout: 1000000000
9+
dial-timeout: 1s
1010
endpoints:
1111
- "172.17.0.1:22379"
1212
kafka.conf: |

k8s/perf-demo/with-controller/scenario4/vswitch/vswitch-agent-cfg.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
data:
77
etcd.conf: |
88
insecure-transport: true
9-
dial-timeout: 1000000000
9+
dial-timeout: 1s
1010
endpoints:
1111
- "172.17.0.1:22379"
1212
kafka.conf: |

k8s/tests/vnf-vpp.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ metadata:
2222
data:
2323
etcd.conf: |
2424
insecure-transport: true
25-
dial-timeout: 1000000000
25+
dial-timeout: 1s
2626
endpoints:
2727
- "172.17.0.1:22379"
2828
kafka.conf: |

k8s/tests/vpp.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ metadata:
2222
data:
2323
etcd.conf: |
2424
insecure-transport: true
25-
dial-timeout: 1000000000
25+
dial-timeout: 1s
2626
endpoints:
2727
- "172.17.0.1:22379"
2828
kafka.conf: |

k8s/tests/vswitch-vpp.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ metadata:
2121
data:
2222
etcd.conf: |
2323
insecure-transport: true
24-
dial-timeout: 1000000000
24+
dial-timeout: 1s
2525
endpoints:
2626
- "172.17.0.1:22379"
2727
kafka.conf: |

plugins/govppmux/govpp.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ retry-request-count: 0
2929

3030
# Defines timeout between binary API retry attempts in case some of them fails. Default value is 500ms.
3131
# If retry-request-count is set to zero, the field has no effect.
32-
retry-request-timeout: 500000000
32+
retry-request-timeout: 500ms
3333

3434
# Defines max number of attempts GoVPPMux tries to reach the VPP (default is 3 attempts).
3535
retry-connect-count: 3
3636

3737
# Defines time in nanoseconds between VPP connection retries (default is 1 second).
38-
retry-connect-timeout: 1000000000
38+
retry-connect-timeout: 1s

plugins/telemetry/telemetry.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Interval of data read procedure from the vpp in nanoseconds. Default value is 30 seconds.
2-
polling-interval: 30000000000
1+
# Interval of data read procedure from the vpp. Default value is 30 seconds.
2+
polling-interval: 30s
33

44
# If set to true, telemetry plugin is disabled.
55
disabled: false

tests/robot/resources/k8-yaml/sfc-k8.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
data:
66
etcd.conf: |
77
insecure-transport: true
8-
dial-timeout: 1000000000
8+
dial-timeout: 1s
99
endpoints:
1010
- "172.17.0.1:22379"
1111
sfc.conf: |

tests/robot/resources/k8-yaml/vswitch.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ metadata:
2929
data:
3030
etcd.conf: |
3131
insecure-transport: true
32-
dial-timeout: 1000000000
32+
dial-timeout: 1s
3333
endpoints:
3434
- "172.17.0.1:22379"
3535
govpp.conf: |
36-
health-check-probe-interval: 1000000000
37-
health-check-reply-timeout: 100000000
36+
health-check-probe-interval: 1s
37+
health-check-reply-timeout: 1s
3838
health-check-threshold: 1
3939
defaultplugins.conf: |
4040
stopwatch: true

vendor/github.com/ligato/cn-infra/Gopkg.lock

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/ligato/cn-infra/config/parser.go

+33-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/ligato/cn-infra/rpc/rest/security/password-hasher/main.go

-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)