Skip to content

Commit 1367e85

Browse files
committed
Fix enum
1 parent 2699883 commit 1367e85

2 files changed

Lines changed: 10 additions & 14 deletions

File tree

‎api/v1alpha1/minecraftbackup.go‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,18 @@ type MinecraftBackupSpec struct {
1717
BackupDestination *corev1.PersistentVolumeClaimVolumeSource `json:"backupDestination,omitempty"`
1818
}
1919

20+
// +kubebuilder:validation:Enum:=Pending;Failed;Complete
21+
// +kubebuilder:default:=Pending
2022
type BackupState string
2123

2224
const (
23-
BackupStatePending BackupState = "pending"
24-
BackupStateComplete BackupState = "complete"
25-
BackupStateFailed BackupState = "failed"
25+
BackupStatePending BackupState = "Pending"
26+
BackupStateComplete BackupState = "Complete"
27+
BackupStateFailed BackupState = "Failed"
2628
)
2729

28-
// +kubebuilder:validation:Enum=Pending;Failed;Complete
29-
// +kubebuilder:default:=Pending
3030
type MinecraftBackupStatus struct {
31-
State BackupState `json:"state"`
32-
Filename string `json:"filename"`
31+
State BackupState `json:"state"`
3332
}
3433

3534
//+kubebuilder:object:root=true

‎crd/minecraft.jameslaverack.com_minecraftbackups.yaml‎

Lines changed: 4 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)