Preheat oven to 350°F (175°C). Grease and flour a Bundt pan.
In a medium bowl, mix together the flour, baking powder, baking soda, salt, cinnamon, nutmeg, and cloves, then whisk thoroughly until everything is evenly combined. Set aside.
In a large bowl, beat the oil, granulated sugar, and brown sugar until smooth. Incorporate the eggs individually, ensuring thorough mixing after each one Stir in vanilla extract.
Gradually mix the dry ingredients into the wet blend, stirring until they are just combined. Gently fold in the grated carrots, nuts, and pineapple, if desired.
Transfer the batter to the prepared Bundt pan, smoothing the surface. Bake for 45 to 50 minutes, or until a toothpick inserted in the center comes out clean.
Let the cake rest in the pan for 10 minutes, then turn it out onto a wire rack to cool entirely.
For the glaze, beat the cream cheese until smooth. Gradually add powdered sugar, milk, and vanilla, mixing until you achieve a smooth, pourable glaze. Drizzle over the cooled cake before serving.