code: func isSessionAffinity(affinity *affinityPolicy) bool {
  	// Should never be empty string, but checking for it to be safe.
  	if affinity.affinityType == "" || affinity.affinityType == v1.ServiceAffinityNone {
  		return false
  	}
  	return true
  }
docs: // return true if this service is using some form of session affinity.