Only omnipotent, not omniscient. He didn't know the future.
"No one knows about that day or hour, not even the angels in heaven, nor the Son, but only the Father."
He knew the scriptures obviously... and knew his future in a sense. But he didn't actually know the future.
"My Father, if it is possible, take this cup of suffering from me!"
He even prayed not to have to die on the cross but in the end did the will of the father.
I don't really understand how he's a part of the trinity, but they can hide stuff from each other too. I guess "hide" is not a nice term, but certainly not know everything the other does.