How to add conditional statement in in ingress rules

Problem to solve

i want to add if condition values.yaml , how can I add that ?