|
| 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 the server group used for all machines. |
| 23 | + // This will be ignored if ControlPlanePolicy or WorkerPolicy are set, for the respective machine type, |
| 24 | + // or for individual machines with a specific server group requested. |
| 25 | + // +kubebuilder:validation:Enum="";affinity;soft-affinity;anti-affinity;soft-anti-affinity |
| 26 | + // +optional |
| 27 | + Policy string `json:"policy,omitempty"` |
| 28 | + |
| 29 | + // ControlPlanePolicy defines the policy that should be used for the server group used for all control plane machines. |
| 30 | + // This will be ignored for individual machines with a specific server group requested. |
| 31 | + // +kubebuilder:validation:Enum="";affinity;soft-affinity;anti-affinity;soft-anti-affinity |
| 32 | + // +optional |
| 33 | + ControlPlanePolicy string `json:"controlPlanePolicy,omitempty"` |
| 34 | + |
| 35 | + // WorkerPolicy defines the policy that should be used for the server group used for all worker machines. |
| 36 | + // This will be ignored for individual machines with a specific server group requested. |
| 37 | + // +kubebuilder:validation:Enum="";affinity;soft-affinity;anti-affinity;soft-anti-affinity |
| 38 | + // +optional |
| 39 | + WorkerPolicy string `json:"workerPolicy,omitempty"` |
| 40 | +} |
0 commit comments