Skip to content

Commit

Permalink
operator: add handling for startupProbe and livenessProbe
Browse files Browse the repository at this point in the history
  • Loading branch information
kkujawa-sumo committed Apr 6, 2021
1 parent 93a7be4 commit e585d97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions operator/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ type PodExtender struct {

// Handle handles requests to create/update Pod and extends it by adding tailing sidecars
func (e *PodExtender) Handle(ctx context.Context, req admission.Request) admission.Response {
if req.Operation == "" {
return admission.Allowed("Received startupProbe/livenessProbe")
}

if req.Operation == admv1.Delete {
// eliminates hanging kubectl apply -f command
// kube-apiserver server waits for response from operator on DELETE request
Expand Down

0 comments on commit e585d97

Please sign in to comment.