github.com/openshift/installer@v1.4.17/pkg/types/openstack/servergrouppolicy.go (about)

     1  package openstack
     2  
     3  const (
     4  	// SGPolicyUnset represents the default empty string for the ServerGroupPolicy field of the MachinePool.
     5  	SGPolicyUnset ServerGroupPolicy = ""
     6  
     7  	// SGPolicyAffinity represents the "affinity" ServerGroupPolicy field of the MachinePool.
     8  	SGPolicyAffinity ServerGroupPolicy = "affinity"
     9  
    10  	// SGPolicySoftAffinity represents the "soft-affinity" ServerGroupPolicy field of the MachinePool.
    11  	SGPolicySoftAffinity ServerGroupPolicy = "soft-affinity"
    12  
    13  	// SGPolicyAntiAffinity represents the "anti-affinity" ServerGroupPolicy field of the MachinePool.
    14  	SGPolicyAntiAffinity ServerGroupPolicy = "anti-affinity"
    15  
    16  	// SGPolicySoftAntiAffinity represents the "soft-anti-affinity" ServerGroupPolicy field of the MachinePool.
    17  	SGPolicySoftAntiAffinity ServerGroupPolicy = "soft-anti-affinity"
    18  )
    19  
    20  // ServerGroupPolicy is the policy to be applied to an OpenStack Server Group.
    21  //
    22  // +kubebuilder:validation:Enum="";affinity;soft-affinity;anti-affinity;soft-anti-affinity
    23  // +optional
    24  type ServerGroupPolicy string
    25  
    26  // IsSet returns true when p is not the empty string.
    27  func (p ServerGroupPolicy) IsSet() bool {
    28  	return p != SGPolicyUnset
    29  }