Skip to content

Commit

Permalink
feat(kumacp): mesh access log - proto + validation (#4998)
Browse files Browse the repository at this point in the history
* feat(kumacp): implement mesh access log proto and validation

Signed-off-by: slonka <slonka@users.noreply.github.com>
Co-authored-by: Charly Molter <charly@molter.io>
  • Loading branch information
slonka and lahabana authored Sep 15, 2022
1 parent d2d4331 commit 8b24b44
Show file tree
Hide file tree
Showing 46 changed files with 9,229 additions and 1,306 deletions.
103 changes: 103 additions & 0 deletions app/kumactl/cmd/completion/testdata/bash.golden
Original file line number Diff line number Diff line change
Expand Up @@ -1515,6 +1515,76 @@ _kumactl_get_mesh()
noun_aliases=()
}

_kumactl_get_meshaccesslog()
{
last_command="kumactl_get_meshaccesslog"

command_aliases=()

commands=()

flags=()
two_word_flags=()
local_nonpersistent_flags=()
flags_with_completion=()
flags_completion=()

flags+=("--mesh=")
two_word_flags+=("--mesh")
two_word_flags+=("-m")
flags+=("--api-timeout=")
two_word_flags+=("--api-timeout")
flags+=("--config-file=")
two_word_flags+=("--config-file")
flags+=("--log-level=")
two_word_flags+=("--log-level")
flags+=("--no-config")
flags+=("--output=")
two_word_flags+=("--output")
two_word_flags+=("-o")

must_have_one_flag=()
must_have_one_noun=()
noun_aliases=()
}

_kumactl_get_meshaccesslogs()
{
last_command="kumactl_get_meshaccesslogs"

command_aliases=()

commands=()

flags=()
two_word_flags=()
local_nonpersistent_flags=()
flags_with_completion=()
flags_completion=()

flags+=("--mesh=")
two_word_flags+=("--mesh")
two_word_flags+=("-m")
flags+=("--offset=")
two_word_flags+=("--offset")
flags+=("--size=")
two_word_flags+=("--size")
flags+=("--api-timeout=")
two_word_flags+=("--api-timeout")
flags+=("--config-file=")
two_word_flags+=("--config-file")
flags+=("--log-level=")
two_word_flags+=("--log-level")
flags+=("--no-config")
flags+=("--output=")
two_word_flags+=("--output")
two_word_flags+=("-o")

must_have_one_flag=()
must_have_one_noun=()
noun_aliases=()
}

_kumactl_get_meshes()
{
last_command="kumactl_get_meshes"
Expand Down Expand Up @@ -2692,6 +2762,8 @@ _kumactl_get()
commands+=("healthcheck")
commands+=("healthchecks")
commands+=("mesh")
commands+=("meshaccesslog")
commands+=("meshaccesslogs")
commands+=("meshes")
commands+=("meshgateway")
commands+=("meshgatewayroute")
Expand Down Expand Up @@ -2938,6 +3010,36 @@ _kumactl_inspect_healthcheck()
noun_aliases=()
}

_kumactl_inspect_meshaccesslog()
{
last_command="kumactl_inspect_meshaccesslog"

command_aliases=()

commands=()

flags=()
two_word_flags=()
local_nonpersistent_flags=()
flags_with_completion=()
flags_completion=()

flags+=("--api-timeout=")
two_word_flags+=("--api-timeout")
flags+=("--config-file=")
two_word_flags+=("--config-file")
flags+=("--log-level=")
two_word_flags+=("--log-level")
flags+=("--no-config")
flags+=("--output=")
two_word_flags+=("--output")
two_word_flags+=("-o")

must_have_one_flag=()
must_have_one_noun=()
noun_aliases=()
}

_kumactl_inspect_meshes()
{
last_command="kumactl_inspect_meshes"
Expand Down Expand Up @@ -3467,6 +3569,7 @@ _kumactl_inspect()
commands+=("dataplanes")
commands+=("fault-injection")
commands+=("healthcheck")
commands+=("meshaccesslog")
commands+=("meshes")
commands+=("meshgateway")
commands+=("meshtrafficpermission")
Expand Down
Loading

0 comments on commit 8b24b44

Please sign in to comment.