Skip to content

Build and get cli binary #527

@maksymvavilov

Description

@maksymvavilov

What

  1. Add workflow to build a binary of the CLI similar to how it is done in kuadrantctl
  2. Educate the kuadrantctl to retrieve this binary and put it into the path.
  3. Consider adding a login to update existing version to the latest

Why

We want to embed our CLI into kuadrantctl, but we do build it in the dns-operator repository. There is a chance that the binary will not be present on the machine that runs kuadrantcl. At the moment, we will just ask the user to do it manually, but we should give an option to get it automatically.
It should be possible to get a binary without a GH token.

Update after the refinement
Just build binaries. The kuadrantctl will have no business getting them. If the kubectl-dns is not present kuadrantctl should error and suggest that the user get it.
Also, we should not have dns subcommand listed in help if kubectl-dns is missing

Metadata

Metadata

Assignees

Labels

CLIdns-operator cli

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions