Skip to content

Commit f47252e

Browse files
committed
remove broken preStop lifecycle hook
Signed-off-by: Tim Ramlot <[email protected]>
1 parent 2d834e3 commit f47252e

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

config/prowgen/pkg/generators.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -245,17 +245,6 @@ func E2ETest(ctx *ProwContext, k8sVersion string, cpuRequest, memoryRequest stri
245245
Add: []string{"SYS_ADMIN"},
246246
},
247247
},
248-
Lifecycle: &Lifecycle{
249-
PreStop: LifecycleHandler{
250-
Exec: ExecAction{
251-
Command: []string{
252-
"/bin/sh",
253-
"-c",
254-
"make kind-logs",
255-
},
256-
},
257-
},
258-
},
259248
},
260249
}
261250

config/prowgen/pkg/types.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ type Container struct {
5656
Resources ContainerResources `yaml:"resources"`
5757

5858
SecurityContext *SecurityContext `yaml:"securityContext,omitempty"`
59-
60-
Lifecycle *Lifecycle `yaml:"lifecycle,omitempty"`
6159
}
6260

6361
type ContainerResources struct {
@@ -88,18 +86,6 @@ type SecurityContextCapabilities struct {
8886
Add []string `yaml:"add"`
8987
}
9088

91-
type Lifecycle struct {
92-
PreStop LifecycleHandler `yaml:"preStop"`
93-
}
94-
95-
type LifecycleHandler struct {
96-
Exec ExecAction `yaml:"exec"`
97-
}
98-
99-
type ExecAction struct {
100-
Command []string `yaml:"command"`
101-
}
102-
10389
type PresubmitJob struct {
10490
Job `yaml:",inline"`
10591

0 commit comments

Comments
 (0)