|  | 
|  | 1 | +/* | 
|  | 2 | +Copyright 2023 The Kubernetes Authors. | 
|  | 3 | +
 | 
|  | 4 | +Licensed under the Apache License, Version 2.0 (the "License"); | 
|  | 5 | +you may not use this file except in compliance with the License. | 
|  | 6 | +You may obtain a copy of the License at | 
|  | 7 | +
 | 
|  | 8 | +	http://www.apache.org/licenses/LICENSE-2.0 | 
|  | 9 | +
 | 
|  | 10 | +Unless required by applicable law or agreed to in writing, software | 
|  | 11 | +distributed under the License is distributed on an "AS IS" BASIS, | 
|  | 12 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
|  | 13 | +See the License for the specific language governing permissions and | 
|  | 14 | +limitations under the License. | 
|  | 15 | +*/ | 
|  | 16 | + | 
|  | 17 | +package v1alpha7 | 
|  | 18 | + | 
|  | 19 | +// OpenStackIdentityReference is a reference to an infrastructure | 
|  | 20 | +// provider identity to be used to provision cluster resources. | 
|  | 21 | +type ManagedServerGroups struct { | 
|  | 22 | +	// Policy defines the policy that should be used for control plane machines | 
|  | 23 | +	// +kubebuilder:validation:Enum="";affinity;soft-affinity;anti-affinity;soft-anti-affinity | 
|  | 24 | +	// +optional | 
|  | 25 | +	Policy string `json:"policy,omitempty"` | 
|  | 26 | + | 
|  | 27 | +	// ControlPlanePolicy defines the policy that should be used for control plane machines. | 
|  | 28 | +	// This overrides Policy if specified. | 
|  | 29 | +	// +kubebuilder:validation:Enum="";affinity;soft-affinity;anti-affinity;soft-anti-affinity | 
|  | 30 | +	// +optional | 
|  | 31 | +	ControlPlanePolicy string `json:"controlPlanePolicy,omitempty"` | 
|  | 32 | + | 
|  | 33 | +	// WorkerPolicy defines the policy that should be used for worker machines | 
|  | 34 | +	// This overrides Policy if specified. | 
|  | 35 | +	// +kubebuilder:validation:Enum="";affinity;soft-affinity;anti-affinity;soft-anti-affinity | 
|  | 36 | +	// +optional | 
|  | 37 | +	WorkerPolicy string `json:"workerPolicy,omitempty"` | 
|  | 38 | +} | 
0 commit comments