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:
Gabriel Tiossi 2019-10-10 13:37:21 -03:00
parent 83dc5df52b
commit a2c04c71ef
1 changed files with 6 additions and 0 deletions

View File

@ -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 {