Are you not missing a "," at then end of namespace in stage.labels ?
stage.labels { values = { namespace = "namespace", } }