Before trying to access the annotations object, we should always if it's undefined (because the annotations map is optional in the Pod manifest). This commit adds a check that will short circuit
the if statement in case that annotations is evaluated to be falsey (e.g. undefined)
Before trying to access the
annotations
object, we should always if it's undefined (because theannotations
map is optional in the Pod manifest). This commit adds a check that will short circuit the if statement in case thatannotations
is evaluated to be falsey (e.g.undefined
)Fixes: #21