Whener user hasn't provided any image-pull-secret, an empty image-pull-secret object would be added to pod's spec.
This case is now handled using an if check.
If user has provided a non-zero length image-pull-secret then pull-secret is applied to pod else, it is not applied.
Whener user hasn't provided any image-pull-secret, an empty image-pull-secret object would be added to pod's spec. This case is now handled using an
if
check.If user has provided a non-zero length image-pull-secret then pull-secret is applied to pod else, it is not applied.