diff --git a/internal/namespaces/cockpit/v1beta1/custom.go b/internal/namespaces/cockpit/v1beta1/custom.go index df191d73e0..57b52d090f 100644 --- a/internal/namespaces/cockpit/v1beta1/custom.go +++ b/internal/namespaces/cockpit/v1beta1/custom.go @@ -17,6 +17,7 @@ func GetCommands() *core.Commands { cmds.MustFind("cockpit", "cockpit", "activate").Override(cockpitCockpitActivateBuilder) cmds.MustFind("cockpit", "cockpit", "deactivate").Override(cockpitCockpitDeactivateBuilder) + cmds.MustFind("cockpit", "cockpit", "get").Override(cockpitCockpitGetBuilder) cmds.MustFind("cockpit", "token", "get").Override(cockpitTokenGetBuilder) return cmds diff --git a/internal/namespaces/cockpit/v1beta1/custom_cockpit.go b/internal/namespaces/cockpit/v1beta1/custom_cockpit.go index 3540c24ce0..21de2af8ff 100644 --- a/internal/namespaces/cockpit/v1beta1/custom_cockpit.go +++ b/internal/namespaces/cockpit/v1beta1/custom_cockpit.go @@ -121,6 +121,19 @@ func cockpitCockpitDeactivateBuilder(command *core.Command) *core.Command { return command } +func cockpitCockpitGetBuilder(c *core.Command) *core.Command { + c.View = &core.View{ + Sections: []*core.ViewSection{ + { + Title: "Endpoints", + FieldName: "Endpoints", + }, + }, + } + + return c +} + func cockpitTokenGetBuilder(c *core.Command) *core.Command { c.View = &core.View{ Sections: []*core.ViewSection{