diff --git a/bootstrap/stage1/crd.tf b/bootstrap/stage1/crd.tf index 8a18c1a..b9dc5f0 100644 --- a/bootstrap/stage1/crd.tf +++ b/bootstrap/stage1/crd.tf @@ -32,6 +32,11 @@ resource "kubernetes_manifest" "customresourcedefinition_hydradoomnodes_hydra_do "name" = "Game State" "type" = "string" }, + { + "jsonPath" = ".spec.snapshot" + "name" = "Snapshot" + "type" = "string" + }, { "jsonPath" = ".status.localUrl" "name" = "Local URI" diff --git a/crates/operator/src/custom_resource.rs b/crates/operator/src/custom_resource.rs index dca78e5..bcf1d8a 100644 --- a/crates/operator/src/custom_resource.rs +++ b/crates/operator/src/custom_resource.rs @@ -75,6 +75,7 @@ impl From for ResourceRequirements { #[kube(printcolumn = r#" {"name": "Node State", "jsonPath":".status.nodeState", "type": "string"}, {"name": "Game State", "jsonPath":".status.gameState", "type": "string"}, + {"name": "Snapshot", "jsonPath":".spec.snapshot", "type": "string"}, {"name": "Local URI", "jsonPath":".status.localUrl", "type": "string"}, {"name": "External URI", "jsonPath": ".status.externalUrl", "type": "string"} "#)]