diff options
author | 2024-12-14 17:32:23 -0800 | |
---|---|---|
committer | 2024-12-14 17:32:23 -0800 | |
commit | 7652c0d92731c6324cc4228f390326ac0f47e667 (patch) | |
tree | 411e0f74cf8b33739333d74a6d8aecbbf29ca823 | |
parent | e465096969365ac4188420e2fd0b9c9ca13348b3 (diff) | |
download | restic-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.rs | 4 |
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 |