(command string, args []string)
| 90 | } |
| 91 | |
| 92 | func commandHash(command string, args []string) string { |
| 93 | return hash.String(fmt.Sprintf("%s %s", command, strings.Join(args, " "))) |
| 94 | } |
| 95 | |
| 96 | func hasHookExecuted(ctx context.Context, command string, args []string, podContainer *selector.SelectedPodContainer, client kubectl.Client) (bool, error) { |
| 97 | cmdHash := commandHash(command, args) |
no test coverage detected