Skip to content

Commit

Permalink
chore: add comments about impending InfrastructureTemplate move
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebond committed Oct 13, 2023
1 parent 2d4292d commit 7ae2154
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions controlplane/api/v1beta1/kthreescontrolplane_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ type KThreesControlPlaneSpec struct {

// InfrastructureTemplate is a required reference to a custom resource
// offered by an infrastructure provider.
// In the next API version we will move this into the
// `KThreesControlPlaneMachineTemplate` struct.
InfrastructureTemplate corev1.ObjectReference `json:"infrastructureTemplate"`

// KThreesConfigSpec is a KThreesConfigSpec
Expand All @@ -68,11 +70,15 @@ type KThreesControlPlaneSpec struct {
// +optional
NodeDrainTimeout *metav1.Duration `json:"nodeDrainTimeout,omitempty"`

// MachineTemplate contains information about how machines
// should be shaped when creating or updating a control plane.
// MachineTemplate contains information about how machines should be shaped
// when creating or updating a control plane.
MachineTemplate KThreesControlPlaneMachineTemplate `json:"machineTemplate,omitempty"`
}

// MachineTemplate contains information about how machines should be shaped
// when creating or updating a control plane.
// In the next API version we will move the InfrastructureTemplate field into
// this struct.
type KThreesControlPlaneMachineTemplate struct {
// Standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
Expand Down

0 comments on commit 7ae2154

Please sign in to comment.