Skip to content

Commit b2d45be

Browse files
authored
feat(cockpit): display endpoints separately (#2927)
1 parent e5c86ff commit b2d45be

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

internal/namespaces/cockpit/v1beta1/custom.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ func GetCommands() *core.Commands {
1717

1818
cmds.MustFind("cockpit", "cockpit", "activate").Override(cockpitCockpitActivateBuilder)
1919
cmds.MustFind("cockpit", "cockpit", "deactivate").Override(cockpitCockpitDeactivateBuilder)
20+
cmds.MustFind("cockpit", "cockpit", "get").Override(cockpitCockpitGetBuilder)
2021
cmds.MustFind("cockpit", "token", "get").Override(cockpitTokenGetBuilder)
2122

2223
return cmds

internal/namespaces/cockpit/v1beta1/custom_cockpit.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,19 @@ func cockpitCockpitDeactivateBuilder(command *core.Command) *core.Command {
121121
return command
122122
}
123123

124+
func cockpitCockpitGetBuilder(c *core.Command) *core.Command {
125+
c.View = &core.View{
126+
Sections: []*core.ViewSection{
127+
{
128+
Title: "Endpoints",
129+
FieldName: "Endpoints",
130+
},
131+
},
132+
}
133+
134+
return c
135+
}
136+
124137
func cockpitTokenGetBuilder(c *core.Command) *core.Command {
125138
c.View = &core.View{
126139
Sections: []*core.ViewSection{

0 commit comments

Comments
 (0)