# Class VariantSelector (0.5.0)

0.5.0 (latest) 0.4.0 0.3.0 0.2.0 0.1.3

    VariantSelector(mapping=None, *, ignore_unknown_fields=False, **kwargs)

VariantSelector contains information for selecting a variant in
`ResourceBundle` to deploy to a target cluster.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attribute ||
|---|---|
| **Name** | **Description** |
| `variant_name_template` | `str` Required. variant_name_template is a template that can refer to variables containing cluster membership metadata such as location, name, and labels to generate the name of the variant for a target cluster. The variable syntax is similar to the unix shell variables. Available variables are `${membership.name}`, `${membership.location}`, `${membership.project}` and `${membership.labels['label_name']}`. If you want to deploy a specific variant, say "default" to all the clusters, you can use "default" (string without any variables) as the variant_name_template. This field is a member of `oneof`_ `strategy`. |