Skip to content

Commit

Permalink
fix: add missing --container flag to 'argocd app logs' command
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
  • Loading branch information
alexmt committed May 25, 2021
1 parent 32f60d3 commit bfae927
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/argocd/commands/app.go
Expand Up @@ -275,6 +275,7 @@ func NewApplicationLogsCommand(clientOpts *argocdclient.ClientOptions) *cobra.Co
sinceSeconds int64
untilTime string
filter string
container string
)
var command = &cobra.Command{
Use: "logs APPNAME",
Expand Down Expand Up @@ -303,6 +304,7 @@ func NewApplicationLogsCommand(clientOpts *argocdclient.ClientOptions) *cobra.Co
SinceSeconds: sinceSeconds,
UntilTime: &untilTime,
Filter: &filter,
Container: container,
})
if err != nil {
log.Fatalf("failed to get pod logs: %v", err)
Expand Down Expand Up @@ -343,6 +345,7 @@ func NewApplicationLogsCommand(clientOpts *argocdclient.ClientOptions) *cobra.Co
command.Flags().Int64Var(&sinceSeconds, "since-seconds", 0, "A relative time in seconds before the current time from which to show logs")
command.Flags().StringVar(&untilTime, "until-time", "", "Show logs until this time")
command.Flags().StringVar(&filter, "filter", "", "Show logs contain this string")
command.Flags().StringVar(&container, "container", "", "Optional container name")

return command
}
Expand Down
1 change: 1 addition & 0 deletions docs/user-guide/commands/argocd_app_logs.md
Expand Up @@ -9,6 +9,7 @@ argocd app logs APPNAME [flags]
### Options

```
--container string Optional container name
--filter string Show logs contain this string
--follow Specify if the logs should be streamed
--group string Resource group
Expand Down

0 comments on commit bfae927

Please sign in to comment.