From 9c4caf0bf72892d9209ba8b63e44fe62b679b78b Mon Sep 17 00:00:00 2001 From: kouki Date: Wed, 6 Jul 2022 01:11:17 +0900 Subject: [PATCH] add printcolumn Signed-off-by: kouki --- api/v1alpha1/minecraft_types.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/v1alpha1/minecraft_types.go b/api/v1alpha1/minecraft_types.go index 3a4fcbd1..c5b2be77 100644 --- a/api/v1alpha1/minecraft_types.go +++ b/api/v1alpha1/minecraft_types.go @@ -206,6 +206,8 @@ type MinecraftStatus struct { //+kubebuilder:object:root=true //+kubebuilder:subresource:status +//+kubebuilder:printcolumn:name="TYPE",type="string",JSONPath=".spec.podTemplate.spec.containers[?(.name=='minecraft')].env[?(.name=='TYPE')].value" +//+kubebuilder:printcolumn:name="VERSION",type="string",JSONPath=".spec.podTemplate.spec.containers[?(.name=='minecraft')].env[?(.name=='VERSION')].value" // Minecraft is the Schema for the minecrafts API type Minecraft struct {