(prev bool)
| 39 | } |
| 40 | |
| 41 | func (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 | |
| 54 | func (s *StatefulSet) showPods(app *App, _ ui.Tabular, _ *client.GVR, path string) { |
| 55 | i, err := s.getInstance(path) |
nothing calls this directly
no test coverage detected