Skip to content

Commit

Permalink
add printcolumn
Browse files Browse the repository at this point in the history
Signed-off-by: kouki <[email protected]>
  • Loading branch information
kmdkuk committed Jul 5, 2022
1 parent db46ca6 commit 9c4caf0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/v1alpha1/minecraft_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9c4caf0

Please sign in to comment.