Skip to content

Commit

Permalink
Increase termination grace period to 1m
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
  • Loading branch information
stefanprodan committed Dec 16, 2020
1 parent 59845b0 commit 88b6d40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/manager/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
prometheus.io/scrape: "true"
prometheus.io/port: "8080"
spec:
terminationGracePeriodSeconds: 10
terminationGracePeriodSeconds: 60
# Required for AWS IAM Role bindings
# https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts-technical-overview.html
securityContext:
Expand Down
2 changes: 1 addition & 1 deletion controllers/kustomization_gc.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (kgc *KustomizeGarbageCollector) Prune(timeout time.Duration, name string,
}

func (kgc *KustomizeGarbageCollector) isStale(obj unstructured.Unstructured) bool {
itemChecksum := obj.GetAnnotations()[fmt.Sprintf("%s/checksum", kustomizev1.GroupVersion.Group)]
itemChecksum := obj.GetLabels()[fmt.Sprintf("%s/checksum", kustomizev1.GroupVersion.Group)]
return kgc.newChecksum == "" || itemChecksum != kgc.newChecksum
}

Expand Down

0 comments on commit 88b6d40

Please sign in to comment.