Skip to content

Commit

Permalink
chore(kumactl): remove kumactl install gateway (#9743)
Browse files Browse the repository at this point in the history
This docs now use helm charts and we should
just use helm charts or whatever the Gateway
thinks is best.

This removes some maintenance burden on our side.

fix #5896

Signed-off-by: Charly Molter <charly.molter@konghq.com>
  • Loading branch information
lahabana authored Mar 29, 2024
1 parent 9d93621 commit ca97007
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 8,377 deletions.
101 changes: 0 additions & 101 deletions app/kumactl/cmd/completion/testdata/bash.golden
Original file line number Diff line number Diff line change
Expand Up @@ -5410,106 +5410,6 @@ _kumactl_install_demo()
noun_aliases=()
}

_kumactl_install_gateway_kong()
{
last_command="kumactl_install_gateway_kong"

command_aliases=()

commands=()

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

flags+=("--mesh=")
two_word_flags+=("--mesh")
local_nonpersistent_flags+=("--mesh")
local_nonpersistent_flags+=("--mesh=")
flags+=("--namespace=")
two_word_flags+=("--namespace")
local_nonpersistent_flags+=("--namespace")
local_nonpersistent_flags+=("--namespace=")
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")

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

_kumactl_install_gateway_kong-enterprise()
{
last_command="kumactl_install_gateway_kong-enterprise"

command_aliases=()

commands=()

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

flags+=("--license-path=")
two_word_flags+=("--license-path")
local_nonpersistent_flags+=("--license-path")
local_nonpersistent_flags+=("--license-path=")
flags+=("--namespace=")
two_word_flags+=("--namespace")
local_nonpersistent_flags+=("--namespace")
local_nonpersistent_flags+=("--namespace=")
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")

must_have_one_flag=()
must_have_one_flag+=("--license-path=")
must_have_one_noun=()
noun_aliases=()
}

_kumactl_install_gateway()
{
last_command="kumactl_install_gateway"

command_aliases=()

commands=()
commands+=("kong")
commands+=("kong-enterprise")

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")

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

_kumactl_install_observability()
{
last_command="kumactl_install_observability"
Expand Down Expand Up @@ -5705,7 +5605,6 @@ _kumactl_install()
commands+=("control-plane")
commands+=("crds")
commands+=("demo")
commands+=("gateway")
commands+=("observability")
commands+=("transparent-proxy")

Expand Down
1 change: 0 additions & 1 deletion app/kumactl/cmd/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ func NewInstallCmd(pctx *kumactl_cmd.RootContext) *cobra.Command {
cmd.AddCommand(newInstallCrdsCmd(&pctx.InstallCRDContext))
cmd.AddCommand(newInstallObservability(pctx))
cmd.AddCommand(newInstallDemoCmd(&pctx.InstallDemoContext))
cmd.AddCommand(newInstallGatewayCmd(pctx))
cmd.AddCommand(newInstallTransparentProxy())

return cmd
Expand Down
19 changes: 0 additions & 19 deletions app/kumactl/cmd/install/install_gateway.go

This file was deleted.

46 changes: 0 additions & 46 deletions app/kumactl/cmd/install/install_gateway_kong.go

This file was deleted.

65 changes: 0 additions & 65 deletions app/kumactl/cmd/install/install_gateway_kong_enterprise.go

This file was deleted.

81 changes: 0 additions & 81 deletions app/kumactl/cmd/install/install_gateway_test.go

This file was deleted.

4 changes: 0 additions & 4 deletions app/kumactl/cmd/install/render_files.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ type templateFilter interface {
Filter(name string) bool
}

func renderFiles(templates []data.File, args interface{}, newRenderer func(data.File) (templateRenderer, error)) ([]data.File, error) {
return renderFilesWithFilter(templates, args, newRenderer, NoneFilter{})
}

func renderFilesWithFilter(templates []data.File, args interface{}, newRenderer func(data.File) (templateRenderer, error), filter templateFilter) ([]data.File, error) {
renderedFiles := make([]data.File, len(templates))

Expand Down
Loading

0 comments on commit ca97007

Please sign in to comment.