mirror of https://github.com/kubernetes/kops.git
Test event-ttl flag
Add inside flagbuilder a new test case to check if event-ttl flag is being generated properly
This commit is contained in:
parent
83dc5df52b
commit
a2c04c71ef
|
@ -220,6 +220,12 @@ func TestBuildAPIServerFlags(t *testing.T) {
|
||||||
},
|
},
|
||||||
Expected: "--authorization-webhook-cache-unauthorized-ttl=10s --insecure-port=0 --secure-port=0",
|
Expected: "--authorization-webhook-cache-unauthorized-ttl=10s --insecure-port=0 --secure-port=0",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Config: &kops.KubeAPIServerConfig{
|
||||||
|
EventTTL: &metav1.Duration{Duration: 3 * time.Hour},
|
||||||
|
},
|
||||||
|
Expected: "--event-ttl=3h0m0s --insecure-port=0 --secure-port=0",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, test := range grid {
|
for _, test := range grid {
|
||||||
|
|
Loading…
Reference in New Issue