@@ -22,8 +22,8 @@ import (
2222 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2323)
2424
25- // PaperclipInstanceSpec defines the desired state of a Paperclip instance.
26- type PaperclipInstanceSpec struct {
25+ // InstanceSpec defines the desired state of a Paperclip instance.
26+ type InstanceSpec struct {
2727 // Image specifies the Paperclip container image to deploy.
2828 // +optional
2929 Image ImageSpec `json:"image,omitempty"`
@@ -615,27 +615,27 @@ type BackupS3Spec struct {
615615
616616// --- Status types ---
617617
618- // PaperclipInstancePhase describes the phase of a PaperclipInstance .
618+ // InstancePhase describes the phase of a Instance .
619619// +kubebuilder:validation:Enum=Pending;Provisioning;Running;Degraded;Failed;Terminating;BackingUp;Restoring;Updating
620- type PaperclipInstancePhase string
620+ type InstancePhase string
621621
622622const (
623- PhasePending PaperclipInstancePhase = "Pending"
624- PhaseProvisioning PaperclipInstancePhase = "Provisioning"
625- PhaseRunning PaperclipInstancePhase = "Running"
626- PhaseDegraded PaperclipInstancePhase = "Degraded"
627- PhaseFailed PaperclipInstancePhase = "Failed"
628- PhaseTerminating PaperclipInstancePhase = "Terminating"
629- PhaseBackingUp PaperclipInstancePhase = "BackingUp"
630- PhaseRestoring PaperclipInstancePhase = "Restoring"
631- PhaseUpdating PaperclipInstancePhase = "Updating"
623+ PhasePending InstancePhase = "Pending"
624+ PhaseProvisioning InstancePhase = "Provisioning"
625+ PhaseRunning InstancePhase = "Running"
626+ PhaseDegraded InstancePhase = "Degraded"
627+ PhaseFailed InstancePhase = "Failed"
628+ PhaseTerminating InstancePhase = "Terminating"
629+ PhaseBackingUp InstancePhase = "BackingUp"
630+ PhaseRestoring InstancePhase = "Restoring"
631+ PhaseUpdating InstancePhase = "Updating"
632632)
633633
634- // PaperclipInstanceStatus defines the observed state of PaperclipInstance .
635- type PaperclipInstanceStatus struct {
634+ // InstanceStatus defines the observed state of Instance .
635+ type InstanceStatus struct {
636636 // Phase is the current phase of the instance.
637637 // +optional
638- Phase PaperclipInstancePhase `json:"phase,omitempty"`
638+ Phase InstancePhase `json:"phase,omitempty"`
639639
640640 // ObservedGeneration is the most recent generation observed by the controller.
641641 // +optional
@@ -715,24 +715,24 @@ type RestoreStatus struct {
715715// +kubebuilder:printcolumn:name="Endpoint",type=string,JSONPath=`.status.endpoint`
716716// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
717717
718- // PaperclipInstance is the Schema for the paperclipinstances API.
719- type PaperclipInstance struct {
718+ // Instance is the Schema for the instances API.
719+ type Instance struct {
720720 metav1.TypeMeta `json:",inline"`
721721 metav1.ObjectMeta `json:"metadata,omitempty"`
722722
723- Spec PaperclipInstanceSpec `json:"spec,omitempty"`
724- Status PaperclipInstanceStatus `json:"status,omitempty"`
723+ Spec InstanceSpec `json:"spec,omitempty"`
724+ Status InstanceStatus `json:"status,omitempty"`
725725}
726726
727727// +kubebuilder:object:root=true
728728
729- // PaperclipInstanceList contains a list of PaperclipInstance .
730- type PaperclipInstanceList struct {
729+ // InstanceList contains a list of Instance .
730+ type InstanceList struct {
731731 metav1.TypeMeta `json:",inline"`
732732 metav1.ListMeta `json:"metadata,omitempty"`
733- Items []PaperclipInstance `json:"items"`
733+ Items []Instance `json:"items"`
734734}
735735
736736func init () {
737- SchemeBuilder .Register (& PaperclipInstance {}, & PaperclipInstanceList {})
737+ SchemeBuilder .Register (& Instance {}, & InstanceList {})
738738}
0 commit comments