Config Delivery v1beta API - Class FleetPackage.Types.VariantSelector (1.0.0-beta01)

public sealed class FleetPackage.Types.VariantSelector : IMessage<FleetPackage.Types.VariantSelector>, IEquatable<FleetPackage.Types.VariantSelector>, IDeepCloneable<FleetPackage.Types.VariantSelector>, IBufferMessage, IMessage

Reference documentation and code samples for the Config Delivery v1beta API class FleetPackage.Types.VariantSelector.

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

Inheritance

object > FleetPackage.Types.VariantSelector

Namespace

Google.Cloud.ConfigDelivery.V1Beta

Assembly

Google.Cloud.ConfigDelivery.V1Beta.dll

Constructors

VariantSelector()

public VariantSelector()

VariantSelector(VariantSelector)

public VariantSelector(FleetPackage.Types.VariantSelector other)
Parameter
Name Description
other FleetPackageTypesVariantSelector

Properties

HasVariantNameTemplate

public bool HasVariantNameTemplate { get; }

Gets whether the "variant_name_template" field is set

Property Value
Type Description
bool

StrategyCase

public FleetPackage.Types.VariantSelector.StrategyOneofCase StrategyCase { get; }
Property Value
Type Description
FleetPackageTypesVariantSelectorStrategyOneofCase

VariantNameTemplate

public string VariantNameTemplate { get; set; }

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.

Property Value
Type Description
string