I got pregnant knowing my husband didn't want kids
When did you find out that your husband didn't want kids?
He told me once in a normal conversation that he didn't want to have a child.
It is not okay to make a life changing choice that goes against your husband's wishes. You should ensure that he is okay moving forward and will not have resentment towards your child.
This was awhile ago and now he's fine with it, he's now the father of the year, he plays with the baby all the time.
I am glad that it ended up working out, but that does not make your decision correct.   I hope that you learned from it and are more honest with him now.