Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Knot Resolver Knot Resolver
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 144
    • Issues 144
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Knot projects
  • Knot ResolverKnot Resolver
  • Merge requests
  • !1342

manager: kresctl utility

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Aleš Mrázek requested to merge manager-kresctl into manager Sep 02, 2022
  • Overview 0
  • Commits 44
  • Pipelines 59
  • Changes 39

kresctl usage design:

$ kresctl [global_arguments] {command} [command_arguments]

What needs to be done:

  • architecture to easily add new commands using argparse
  • implement global arguments
    • -s SOCKET to config HTTP API socket
    • -h help, handled automatically by argparse
  • implement commands
    • stop command to stop all running daemons
    • config command to {set, delete, get} configuration using HTTP API
    • convert command to convert YAML/JSON config to Lua
    • metrics command to get metrics
    • schema command to get json-schema of the configuration
    • validate command to validate declarative config with the schema
    • reload command to reload config file
  • sphinx documentation

Implements #732

Edited Jan 10, 2023 by Aleš Mrázek
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: manager-kresctl