summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Anshul Gupta <ansg191@anshulg.com> 2024-12-14 17:32:23 -0800
committerGravatar Anshul Gupta <ansg191@anshulg.com> 2024-12-14 17:32:23 -0800
commit7652c0d92731c6324cc4228f390326ac0f47e667 (patch)
tree411e0f74cf8b33739333d74a6d8aecbbf29ca823
parente465096969365ac4188420e2fd0b9c9ca13348b3 (diff)
downloadrestic-operator-7652c0d92731c6324cc4228f390326ac0f47e667.tar.gz
restic-operator-7652c0d92731c6324cc4228f390326ac0f47e667.tar.zst
restic-operator-7652c0d92731c6324cc4228f390326ac0f47e667.zip
fix: add shortname and category to CRD definitions
This prevents "out of sync" in ArgoCD.
Diffstat (limited to '')
-rw-r--r--restic-crd/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/restic-crd/src/lib.rs b/restic-crd/src/lib.rs
index 2da87b4..d6305ef 100644
--- a/restic-crd/src/lib.rs
+++ b/restic-crd/src/lib.rs
@@ -18,6 +18,8 @@ use serde::{Deserialize, Serialize};
plural = "scheduled-backups",
derive = "PartialEq",
status = "ScheduledBackupStatus",
+ shortname = "rsb",
+ category = "restic",
printcolumn = r#"{"name": "Age", "type": "date", "jsonPath": ".metadata.creationTimestamp"}"#,
// printcolumn = r#"{"name": "Phase", "type": "string", "jsonPath": ".status.phase"}"#,
namespaced
@@ -60,6 +62,8 @@ pub struct ScheduledBackupStatus {
plural = "backups",
derive = "PartialEq",
status = "BackupStatus",
+ shortname = "rb",
+ category = "restic",
printcolumn = r#"{"name": "Age", "type": "date", "jsonPath": ".metadata.creationTimestamp"}"#,
printcolumn = r#"{"name": "Phase", "type": "string", "jsonPath": ".status.phase"}"#,
namespaced