id = "okteto" name = "Okteto" homepage = "https://www.okteto.com" description = "A Tool to Develop Applications on Kubernetes." # The apple-touch-icon from the project's homepage. icon = "https://www.okteto.com/apple-touch-icon.png" executables = ["okteto"] [dotfiles] # pkg/config/config.go (okteto/okteto): # oktetoFolderName = ".okteto" # contextDir = "context" # contextsStoreFile = "config.json" # tokenFile = ".token.json" # analyticsFile = "analytics.json" # GetOktetoContextsStorePath() joins the first three, so the contexts store is # ~/.okteto/context/config.json. OKTETO_FOLDER moves the whole directory. paths = ["~/.okteto/context/config.json"] # Analytics state, and the buildkit CA that GetCertificatePath() writes for # this machine's builder. exclude = [ "~/.okteto/analytics.json", "~/.okteto/.noanalytics", "~/.okteto/.ca.crt", ] # The pre-context token file GetTokenPathDeprecated() still reads is nothing # but the API token. secret = ["~/.okteto/.token.json"] # pkg/okteto/context.go: ContextStore is { contexts: map[string]*Context, # current-context }, and Context.Token is the okteto API token. The name, # namespace, builder and registry beside it are worth carrying. [[dotfiles.secret_paths]] file = "~/.okteto/context/config.json" match = { key_path = ["contexts.*.token"] } [commands] format = 1 label = "Okteto" description = "Start development containers and build images. Other subcommands are left out." quality = "ai-draft" base = "fig:okteto" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/okteto.ts" license = "MIT" [[commands.subcommand]] path = ["up"] label = "Activate dev container" description = "Start the development container from the okteto manifest." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/okteto.ts" license = "MIT" [[commands.subcommand.field]] id = "file" label = "Manifest file" type = "path" option = ["--file", "-f"] path = { kind = "file", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.field]] id = "namespace" label = "Namespace" type = "string" option = ["--namespace", "-n"] sources = ["fig"] [[commands.subcommand.field]] id = "context" label = "Context" type = "string" option = ["--context", "-c"] sources = ["fig"] [[commands.subcommand.field]] id = "build" label = "Build dev image" type = "boolean" option = ["--build"] sources = ["fig"] [[commands.subcommand.field]] id = "deploy" label = "Create deployment if missing" type = "boolean" option = ["--deploy", "-d"] sources = ["fig"] [[commands.subcommand.field]] id = "pull" label = "Force image pull" type = "boolean" option = ["--pull"] sources = ["fig"] [[commands.subcommand.field]] id = "reset" label = "Reset sync database" type = "boolean" option = ["--reset"] effect = "delete" sources = ["fig"] [[commands.subcommand.task]] id = "up" label = "Start dev container" fields = ["file", "namespace", "context", "build", "deploy"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["file", "namespace", "context", "build", "deploy"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["pull", "reset"] [[commands.subcommand]] path = ["build"] label = "Build an image" description = "Build and push a Docker image. Positional path is not modelled." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/okteto.ts" license = "MIT" [[commands.subcommand.field]] id = "tag" label = "Tag" description = "name:tag" type = "string" option = ["--tag", "-t"] sources = ["fig"] [[commands.subcommand.field]] id = "file" label = "Dockerfile" type = "path" option = ["--file", "-f"] path = { kind = "file", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.field]] id = "no_cache" label = "No cache" type = "boolean" option = ["--no-cache"] sources = ["fig"] [[commands.subcommand.field]] id = "build_arg" label = "Build args" description = "KEY=value" type = "string" option = ["--build-arg"] multiple = true sources = ["fig"] [[commands.subcommand.field]] id = "target" label = "Target stage" type = "string" option = ["--target"] sources = ["fig"] [[commands.subcommand.field]] id = "namespace" label = "Namespace" type = "string" option = ["--namespace"] sources = ["fig"] [[commands.subcommand.task]] id = "build" label = "Build and tag" fields = ["tag", "file", "build_arg"] required = ["tag"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["tag", "file", "no_cache", "build_arg", "target", "namespace"]