MCPcopy
hub / github.com/derailed/k9s / logOptions

Method logOptions

internal/view/sts.go:41–52  ·  view source on GitHub ↗
(prev bool)

Source from the content-addressed store, hash-verified

39}
40
41func (s *StatefulSet) logOptions(prev bool) (*dao.LogOptions, error) {
42 path := s.GetTable().GetSelectedItem()
43 if path == "" {
44 return nil, errors.New("you must provide a selection")
45 }
46 sts, err := s.getInstance(path)
47 if err != nil {
48 return nil, err
49 }
50
51 return podLogOptions(s.App(), path, prev, &sts.ObjectMeta, &sts.Spec.Template.Spec), nil
52}
53
54func (s *StatefulSet) showPods(app *App, _ ui.Tabular, _ *client.GVR, path string) {
55 i, err := s.getInstance(path)

Callers

nothing calls this directly

Calls 5

getInstanceMethod · 0.95
podLogOptionsFunction · 0.85
GetSelectedItemMethod · 0.65
GetTableMethod · 0.65
AppMethod · 0.65

Tested by

no test coverage detected