Adrenal function does affect
glucose levels, as well as endocrine function, fat and protein
metabolism, connective tissue turnover, immune function, detox. capacity, and even quality of sleep.
Any cause of hypopituitarism could adversely affect adrenal function, from loss of ACTH, GH, TSH, ADH, and other pituitary hormones. I don't know if there is any particular type of pituitary tumor or cyst that would have a direct effect on a specific adrenal function. There wouldn't have to be.