Skip to content

Commit 45d96e4

Browse files
update field name and update value (#8)
1 parent 032eca7 commit 45d96e4

File tree

3 files changed

+41
-41
lines changed

3 files changed

+41
-41
lines changed

chaos.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ import (
1515

1616
const (
1717
// ScopeInner means chaos only works on the inner host in Kubernetes cluster
18-
ScopeInner = "INNER"
18+
ScopeInner = "inner"
1919
// ScopeOuter means chaos only works on the outer host of Kubernetes cluster
20-
ScopeOuter = "OUTER"
20+
ScopeOuter = "outer"
2121
// ScopeAll means chaos works on all host
22-
ScopeAll = "ALL"
22+
ScopeAll = "all"
2323

2424
// ModeError means return error for DNS request
25-
ModeError = "ERROR"
25+
ModeError = "error"
2626
// ModeRandom means return random IP for DNS request
27-
ModeRandom = "RANDOM"
27+
ModeRandom = "random"
2828
)
2929

3030
// PodInfo saves some information for pod

pb/dns.pb.go

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pb/dns.proto

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ message SetDNSChaosRequest {
1111
string name = 1;
1212
repeated Pod pods = 2;
1313

14-
// mode means the chaos mode, values can be "RANDOM" or "ERROR"
15-
// "RANDOM": return random IP
16-
// "ERROR": return unknown host error
17-
string mode = 3;
14+
// action means the chaos action, values can be "random" or "error"
15+
// "random": return random IP for DNS request
16+
// "error": return error for DNS request
17+
string action = 3;
1818

19-
// scope means the chaos scope, values can be "INNER", "OUTER" or "ALL":
20-
// "INNER": chaos only works on the inner host in Kubernetes cluster
21-
// "OUTER": chaos only works on the outer host of Kubernetes cluster
22-
// "ALL": chaos works on all host
19+
// scope means the chaos scope, values can be "inner", "outer" or "all":
20+
// "inner": chaos only works on the inner host in Kubernetes cluster
21+
// "outer": chaos only works on the outer host of Kubernetes cluster
22+
// "all": chaos works on all host
2323
string scope = 4;
2424
string selector = 5;
2525
}

0 commit comments

Comments
 (0)