Skip to content

Conversation

bwagner5
Copy link
Contributor

Overview:
When processing scheduled maintenance events, do not fail when scheduled event does not have an end date. This information is not present for all events and is not utilized in the functionality of aws-node-termination-handler. It only serves as additional, nice-to-have information for logging/webhook msg purposes.

Issue #, if available:
#147

Description of changes:

  • Made end-time parsing optional for scheduled event processing. Still logging that the parsing failed, but it will now continue to send the event over the channel for potential cordon+drain.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@bwagner5 bwagner5 requested a review from haugenj June 25, 2020 16:36
Copy link
Contributor

@haugenj haugenj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Good call!

@bwagner5 bwagner5 force-pushed the end-time-optional branch from 09233b6 to 163c044 Compare June 25, 2020 20:58
@haugenj
Copy link
Contributor

haugenj commented Jun 25, 2020

👍

@stale
Copy link

stale bot commented Jul 3, 2020

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 3, 2020
@stale
Copy link

stale bot commented Jul 6, 2020

This pull request has been automatically closed because it has not had recent activity. Please feel free to resubmit the pull request if this has been in error. Thank you for your contributions.

@stale stale bot closed this Jul 6, 2020
@bwagner5 bwagner5 reopened this Jul 6, 2020
@stale stale bot removed the stale label Jul 6, 2020
@codecov-commenter
Copy link

Codecov Report

Merging #182 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #182      +/-   ##
==========================================
+ Coverage   81.30%   81.33%   +0.02%     
==========================================
  Files           8        8              
  Lines         765      766       +1     
==========================================
+ Hits          622      623       +1     
  Misses        128      128              
  Partials       15       15              
Impacted Files Coverage Δ
pkg/interruptionevent/scheduled-event.go 90.62% <100.00%> (+0.14%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f16d712...163c044. Read the comment docs.

@bwagner5 bwagner5 merged commit 20b8169 into aws:master Jul 6, 2020
@bwagner5 bwagner5 deleted the end-time-optional branch July 15, 2020 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants