]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
2 years agomanager: client: completion improvements
Aleš Mrázek [Thu, 8 Dec 2022 13:33:26 +0000 (14:33 +0100)] 
manager: client: completion improvements

2 years agomanager: client: replace POST method with PUT in config cmd
Aleš Mrázek [Mon, 5 Dec 2022 21:59:53 +0000 (22:59 +0100)] 
manager: client: replace POST method with PUT in config cmd

2 years agomanager: client: uknown_args removed
Aleš Mrázek [Fri, 2 Dec 2022 16:11:39 +0000 (17:11 +0100)] 
manager: client: uknown_args removed

2 years agomanager: client: config path completion
Aleš Mrázek [Wed, 23 Nov 2022 00:11:05 +0000 (01:11 +0100)] 
manager: client: config path completion

2 years agomanager: client: functional 'completion' command
Aleš Mrázek [Wed, 16 Nov 2022 15:06:01 +0000 (16:06 +0100)] 
manager: client: functional 'completion' command

2 years agomanager: client: completion script for bash
Aleš Mrázek [Wed, 16 Nov 2022 15:03:21 +0000 (16:03 +0100)] 
manager: client: completion script for bash

2 years agomanager: meson: install shell completion scripts
Aleš Mrázek [Tue, 15 Nov 2022 17:15:08 +0000 (18:15 +0100)] 
manager: meson: install shell completion scripts

2 years agomanager: kresctl: move main function from __main__
Aleš Mrázek [Mon, 7 Nov 2022 21:45:47 +0000 (22:45 +0100)] 
manager: kresctl: move main function from __main__

2 years agomanager: kresctl: 'reload' cmd added
Aleš Mrázek [Wed, 2 Nov 2022 11:36:59 +0000 (12:36 +0100)] 
manager: kresctl: 'reload' cmd added

2 years agomanager: kresctl: 'validate' comd added
Aleš Mrázek [Tue, 1 Nov 2022 17:47:33 +0000 (18:47 +0100)] 
manager: kresctl: 'validate' comd added

2 years agomanager: kresctl: completion for 'completion' cmd
Aleš Mrázek [Mon, 31 Oct 2022 22:41:24 +0000 (23:41 +0100)] 
manager: kresctl: completion for 'completion' cmd

2 years agomanager: kresctl: shell-completion files renamed
Aleš Mrázek [Mon, 31 Oct 2022 22:39:20 +0000 (23:39 +0100)] 
manager: kresctl: shell-completion files renamed

2 years agomanager: kresctl: completion options in dict instead of in list
Aleš Mrázek [Fri, 30 Sep 2022 13:23:38 +0000 (15:23 +0200)] 
manager: kresctl: completion options in dict instead of in list

2 years agomanager: kresctl: config cmd: write to file only with 200 response status
Aleš Mrázek [Fri, 30 Sep 2022 13:12:03 +0000 (15:12 +0200)] 
manager: kresctl: config cmd: write to file only with 200 response status

2 years agomanager: duplicit 'shell-completion' directory removed
Aleš Mrázek [Fri, 30 Sep 2022 12:58:03 +0000 (14:58 +0200)] 
manager: duplicit 'shell-completion' directory removed

2 years agomanager: pkg: deb: completion files for kresctl utility
Aleš Mrázek [Fri, 30 Sep 2022 12:48:27 +0000 (14:48 +0200)] 
manager: pkg: deb: completion files for kresctl utility

2 years agomanager: pkg: rpm: completion files for kresctl utility
Aleš Mrázek [Fri, 30 Sep 2022 12:02:36 +0000 (14:02 +0200)] 
manager: pkg: rpm: completion files for kresctl utility

2 years agomanager: schema utils: updated documentation about serialization of custom value...
Vasek Sraier [Thu, 29 Sep 2022 09:45:33 +0000 (11:45 +0200)] 
manager: schema utils: updated documentation about serialization of custom value types, fixed UncheckedPath serialization so that it does not depend on cwd

2 years agomanager: doc: JSON Schema install fix
Aleš Mrázek [Thu, 29 Sep 2022 08:40:36 +0000 (10:40 +0200)] 
manager: doc: JSON Schema install fix

2 years agodocs: generating and linking JSON schema for the declarative config
Vasek Sraier [Mon, 26 Sep 2022 11:21:32 +0000 (13:21 +0200)] 
docs: generating and linking JSON schema for the declarative config

2 years agokresctl: fix typing annotations for old python
Vasek Sraier [Mon, 26 Sep 2022 11:11:39 +0000 (13:11 +0200)] 
kresctl: fix typing annotations for old python

2 years agomanager: pkg: completion dir fix
Aleš Mrázek [Wed, 21 Sep 2022 22:20:20 +0000 (00:20 +0200)] 
manager: pkg: completion dir fix

2 years agomanager: kresctl: 'completion' method for commands added
Aleš Mrázek [Wed, 21 Sep 2022 10:38:09 +0000 (12:38 +0200)] 
manager: kresctl: 'completion' method for commands added
- lint and formating fixes

2 years agomanager: utils: modeling: function to try parse yaml or json
Aleš Mrázek [Tue, 20 Sep 2022 14:35:27 +0000 (16:35 +0200)] 
manager: utils: modeling: function to try parse yaml or json

2 years agomanager: kresctl: scripts for shells completion added
Aleš Mrázek [Sun, 18 Sep 2022 20:35:07 +0000 (22:35 +0200)] 
manager: kresctl: scripts for shells completion added

2 years agomanager: kresctl: 'completion' command WIP
Aleš Mrázek [Sun, 18 Sep 2022 19:48:52 +0000 (21:48 +0200)] 
manager: kresctl: 'completion' command WIP

2 years agomanager: kresctl: 'convert' command added
Aleš Mrázek [Sun, 18 Sep 2022 19:45:40 +0000 (21:45 +0200)] 
manager: kresctl: 'convert' command added

2 years agomanager: kresctl: config command
Aleš Mrázek [Tue, 13 Sep 2022 16:47:47 +0000 (18:47 +0200)] 
manager: kresctl: config command
- schema, metrics command modules lint

2 years agomanager: kresctl: schema command added
Aleš Mrázek [Mon, 12 Sep 2022 08:20:31 +0000 (10:20 +0200)] 
manager: kresctl: schema command added

2 years agokresctl: metrics command added
Aleš Mrázek [Mon, 12 Sep 2022 08:14:51 +0000 (10:14 +0200)] 
kresctl: metrics command added

2 years agodoc/gettingstarted-config.rst: some info about kresctl
Aleš Mrázek [Fri, 2 Sep 2022 14:09:22 +0000 (16:09 +0200)] 
doc/gettingstarted-config.rst: some info about kresctl

2 years agomanager: kresctl: command parsing done
Aleš Mrázek [Thu, 1 Sep 2022 12:28:17 +0000 (14:28 +0200)] 
manager: kresctl: command parsing done

2 years agoMerge branch 'manager-wrong-return-type-fix' into 'manager'
Vaclav Sraier [Thu, 22 Dec 2022 12:37:06 +0000 (13:37 +0100)] 
Merge branch 'manager-wrong-return-type-fix' into 'manager'

bugfix: invalid json in HTTP API

See merge request knot/knot-resolver!1370

2 years agomanager: HTTP API: fixed returning Python str() instead of json.dumps()
Vasek Sraier [Thu, 22 Dec 2022 10:55:48 +0000 (11:55 +0100)] 
manager: HTTP API: fixed returning Python str() instead of json.dumps()

2 years agoMerge branch 'manager-doc-vs' into 'manager'
Aleš Mrázek [Mon, 5 Dec 2022 18:42:30 +0000 (19:42 +0100)] 
Merge branch 'manager-doc-vs' into 'manager'

Documentation and related updates

See merge request knot/knot-resolver!1351

2 years agopackaging: kresctl man page, manager's unit file
Vasek Sraier [Sat, 3 Dec 2022 08:36:27 +0000 (09:36 +0100)] 
packaging: kresctl man page, manager's unit file

2 years agomanager: utils: renaming: added basic docs
Vasek Sraier [Sat, 19 Nov 2022 10:53:18 +0000 (11:53 +0100)] 
manager: utils: renaming: added basic docs

2 years agomanager: masive API and modelling updates
Vasek Sraier [Mon, 14 Nov 2022 10:09:19 +0000 (11:09 +0100)] 
manager: masive API and modelling updates

- got rid of ParsedTree class because it did too many things at once
- introduced Renamed family of data structures (RenamedList, RenamedDict)
- split out etag generation into standalone procedure
- split out query() into standalone procedure
- modelling: changed BaseSchema to NoRenameBaseSchema, which works on normal dicts and lists (no ParsedTree dependency)
- modelling: introduced new BaseSchema (for backwards compatibility) which uses Renamed wrappers to handle configuration renaming
- added json pointer implementation (https://www.rfc-editor.org/rfc/rfc6901)
- API:
- got rid of QueryTree class as it was too complicated
- completely rewrote query() to use JSON pointer and JSON Patch (https://datatracker.ietf.org/doc/html/rfc6902/)

2 years agodocs: API and manager dev notes
Vasek Sraier [Thu, 27 Oct 2022 21:22:15 +0000 (23:22 +0200)] 
docs: API and manager dev notes

2 years agomanager: api: fixed config request race condition, added Content-Type to responses
Vasek Sraier [Sun, 30 Oct 2022 12:32:56 +0000 (13:32 +0100)] 
manager: api: fixed config request race condition, added Content-Type to responses

2 years agomanager: fixed new pylint warning in compat code
Vasek Sraier [Thu, 27 Oct 2022 20:47:41 +0000 (22:47 +0200)] 
manager: fixed new pylint warning in compat code

2 years agomanager: fixed non-functional configuration file reloading
Vasek Sraier [Thu, 27 Oct 2022 20:47:10 +0000 (22:47 +0200)] 
manager: fixed non-functional configuration file reloading

2 years agomanager: moved packaging test definition to manager's packaging tests directory
Vasek Sraier [Thu, 27 Oct 2022 20:46:40 +0000 (22:46 +0200)] 
manager: moved packaging test definition to manager's packaging tests directory

2 years agomanager: update Poetry reference in pyproject.toml (following upstream update)
Vasek Sraier [Thu, 27 Oct 2022 20:39:30 +0000 (22:39 +0200)] 
manager: update Poetry reference in pyproject.toml (following upstream update)

2 years agomanager: supervisord controller: use debugger when launched with env variable KRES_DE...
Vasek Sraier [Thu, 27 Oct 2022 20:37:14 +0000 (22:37 +0200)] 
manager: supervisord controller: use debugger when launched with env variable KRES_DEBUG_MANAGER=1

2 years agomanager: supervisord plugin: forwarding SIGHUP to the manager
Vasek Sraier [Thu, 27 Oct 2022 20:36:21 +0000 (22:36 +0200)] 
manager: supervisord plugin: forwarding SIGHUP to the manager

2 years agodocs: comparison table of how things were done before and how they are done now
Vasek Sraier [Wed, 12 Oct 2022 20:56:29 +0000 (22:56 +0200)] 
docs: comparison table of how things were done before and how they are done now

2 years agoMerge branch 'manager-docker' into 'manager'
Vaclav Sraier [Fri, 2 Dec 2022 14:56:49 +0000 (15:56 +0100)] 
Merge branch 'manager-docker' into 'manager'

Docker image with manager

See merge request knot/knot-resolver!1361

2 years agodocker: removed useless OBS repo from Dockerfile
Vasek Sraier [Wed, 30 Nov 2022 09:26:28 +0000 (10:26 +0100)] 
docker: removed useless OBS repo from Dockerfile

2 years agodocker: build with manager using apkg
Vasek Sraier [Sat, 19 Nov 2022 21:13:47 +0000 (22:13 +0100)] 
docker: build with manager using apkg

2 years agoMerge !1354: manager CI pkg:make-archive: use runners matching the image
Vladimír Čunát [Mon, 21 Nov 2022 12:31:42 +0000 (13:31 +0100)] 
Merge !1354: manager CI pkg:make-archive: use runners matching the image

2 years agoCI pkg:make-archive: use runners matching the image
Vladimír Čunát [Wed, 19 Oct 2022 06:58:38 +0000 (08:58 +0200)] 
CI pkg:make-archive: use runners matching the image

https://gitlab.nic.cz/knot/knot-resolver/-/merge_requests/1341#note_263747

2 years agoMerge branch 'manager-ci' into 'manager'
Vaclav Sraier [Mon, 21 Nov 2022 12:26:24 +0000 (13:26 +0100)] 
Merge branch 'manager-ci' into 'manager'

ci/pkgtest: remove unused CI configuration file

See merge request knot/knot-resolver!1363

2 years agoci: removed ci/pkgtest.yaml as it's not referenced from anywhere
Vasek Sraier [Mon, 21 Nov 2022 12:17:46 +0000 (13:17 +0100)] 
ci: removed ci/pkgtest.yaml as it's not referenced from anywhere

2 years agoMerge branch 'manager-install-with-meson' into 'manager'
Vaclav Sraier [Tue, 15 Nov 2022 16:55:31 +0000 (17:55 +0100)] 
Merge branch 'manager-install-with-meson' into 'manager'

manager: build manager and install its files with meson

See merge request knot/knot-resolver!1346

3 years agomanager: lint fail fix
Aleš Mrázek [Sat, 29 Oct 2022 23:39:16 +0000 (01:39 +0200)] 
manager: lint fail fix

3 years agomanager/gitlab-ci.yml: poetry install only deps
Aleš Mrázek [Sat, 29 Oct 2022 23:15:44 +0000 (01:15 +0200)] 
manager/gitlab-ci.yml: poetry install only deps

3 years agomanager: ci: poetry version fixed to 1.1.12
Aleš Mrázek [Sat, 29 Oct 2022 23:14:08 +0000 (01:14 +0200)] 
manager: ci: poetry version fixed to 1.1.12

3 years agomanager/scripts/run: build manager with meson
Aleš Mrázek [Thu, 27 Oct 2022 11:02:15 +0000 (13:02 +0200)] 
manager/scripts/run: build manager with meson

3 years agomanager: scripts: 'docs' is no longer needed
Aleš Mrázek [Wed, 26 Oct 2022 10:57:02 +0000 (12:57 +0200)] 
manager: scripts: 'docs' is no longer needed

3 years agodistro deb: add python3-dev dependency
Vladimír Čunát [Wed, 26 Oct 2022 10:07:09 +0000 (12:07 +0200)] 
distro deb: add python3-dev dependency

Otherwise it's possible to end up with an error (e.g. Ubuntu 22.04):
knot_resolver_manager/kresd_controller/supervisord/plugin/notifymodule.c:2:10:
  fatal error: Python.h: No such file or directory

3 years agomanager: meson: use existing script to check dependencies
Aleš Mrázek [Tue, 25 Oct 2022 22:45:12 +0000 (00:45 +0200)] 
manager: meson: use existing script to check dependencies

tests/packaging/dependencies.py: argument for path to setup.py added

3 years agodoc/build.rst: 'python.install_env' info no needed
Aleš Mrázek [Fri, 21 Oct 2022 13:12:57 +0000 (15:12 +0200)] 
doc/build.rst: 'python.install_env' info no needed

3 years agodoc/build.rst: some additional informations
Aleš Mrázek [Fri, 21 Oct 2022 13:10:47 +0000 (15:10 +0200)] 
doc/build.rst: some additional informations

link to pyproject.toml, tip about pipx

3 years agomanager: meson.build files removed
Aleš Mrázek [Fri, 21 Oct 2022 12:43:01 +0000 (14:43 +0200)] 
manager: meson.build files removed

3 years agomeson: manager_client option removed
Aleš Mrázek [Fri, 21 Oct 2022 12:17:57 +0000 (14:17 +0200)] 
meson: manager_client option removed

3 years agomanager/meson.build: installation script added
Aleš Mrázek [Fri, 21 Oct 2022 12:08:31 +0000 (14:08 +0200)] 
manager/meson.build: installation script added

subdir removed, python3 deps removed

3 years agomanager: scripts: add installation script
Aleš Mrázek [Thu, 20 Oct 2022 14:49:26 +0000 (16:49 +0200)] 
manager: scripts: add installation script

3 years agodoc/build.rst: note about meson python module
Aleš Mrázek [Tue, 18 Oct 2022 17:29:26 +0000 (19:29 +0200)] 
doc/build.rst: note about meson python module

3 years agomanager/cli: meson: executable for 'kresctl'
Aleš Mrázek [Fri, 14 Oct 2022 17:40:14 +0000 (19:40 +0200)] 
manager/cli: meson: executable for 'kresctl'

3 years agodoc/build.rst: enable to build manager with meson
Aleš Mrázek [Fri, 14 Oct 2022 12:51:09 +0000 (14:51 +0200)] 
doc/build.rst: enable to build manager with meson

3 years agomanager: meson: add python deps
Aleš Mrázek [Fri, 14 Oct 2022 12:20:03 +0000 (14:20 +0200)] 
manager: meson: add python deps

3 years agomeson: disable manager build by default
Aleš Mrázek [Fri, 14 Oct 2022 12:16:14 +0000 (14:16 +0200)] 
meson: disable manager build by default

3 years agomanager: build python modules with meson
Aleš Mrázek [Mon, 10 Oct 2022 13:26:08 +0000 (15:26 +0200)] 
manager: build python modules with meson

3 years agodoc/build.rst: Building with 'Meson' section added
Aleš Mrázek [Wed, 5 Oct 2022 09:35:18 +0000 (11:35 +0200)] 
doc/build.rst: Building with 'Meson' section added

manager dependencies added

3 years agodoc/build.rst: build with 'apkg' added
Aleš Mrázek [Tue, 4 Oct 2022 13:34:46 +0000 (15:34 +0200)] 
doc/build.rst: build with 'apkg' added

3 years agomanager: meson.build added
Aleš Mrázek [Mon, 3 Oct 2022 20:38:37 +0000 (22:38 +0200)] 
manager: meson.build added

meson_options.txt: 'manager' option added

3 years agoMerge branch 'manager-unified-logging' into 'manager'
Aleš Mrázek [Wed, 12 Oct 2022 14:03:37 +0000 (16:03 +0200)] 
Merge branch 'manager-unified-logging' into 'manager'

manager: unified logging

See merge request knot/knot-resolver!1350

3 years agomanager: supervisord: renamed gc subprocess to cache-gc
Vasek Sraier [Wed, 12 Oct 2022 10:18:51 +0000 (12:18 +0200)] 
manager: supervisord: renamed gc subprocess to cache-gc

3 years agomanager: logging: supervisord forwards stdio even when configured to use syslog in...
Vasek Sraier [Wed, 12 Oct 2022 10:09:45 +0000 (12:09 +0200)] 
manager: logging: supervisord forwards stdio even when configured to use syslog in order not to lose any valuable error messages

3 years agomanager: logging: prevent supervisord from creating temporary log files
Vasek Sraier [Wed, 12 Oct 2022 09:50:05 +0000 (11:50 +0200)] 
manager: logging: prevent supervisord from creating temporary log files

3 years agomanager: logging: improved formatting
Vasek Sraier [Tue, 11 Oct 2022 21:28:09 +0000 (23:28 +0200)] 
manager: logging: improved formatting

3 years agomanager: unified logging
Vasek Sraier [Tue, 11 Oct 2022 12:06:18 +0000 (14:06 +0200)] 
manager: unified logging

- when using logging into stdio, supervisord aggregates all logs and tags them
- when logging to syslog, every process logs there directly

3 years agoMerge branch 'manager-schema-version' into 'manager'
Aleš Mrázek [Mon, 10 Oct 2022 18:57:37 +0000 (20:57 +0200)] 
Merge branch 'manager-schema-version' into 'manager'

Config schema versioning

See merge request knot/knot-resolver!1347

3 years agomanager: config schema: add schema version to the top level to allow for future changes
Vasek Sraier [Sun, 9 Oct 2022 11:44:16 +0000 (13:44 +0200)] 
manager: config schema: add schema version to the top level to allow for future changes

3 years agoMerge branch 'master' into manager
Aleš Mrázek [Mon, 10 Oct 2022 18:24:33 +0000 (20:24 +0200)] 
Merge branch 'master' into manager

3 years agoMerge !1348: ci/images/debian-11: drop go
Vladimír Čunát [Mon, 10 Oct 2022 13:59:41 +0000 (15:59 +0200)] 
Merge !1348: ci/images/debian-11: drop go

3 years agoci/images/debian-11: drop go
Vladimír Čunát [Fri, 7 Oct 2022 13:24:00 +0000 (15:24 +0200)] 
ci/images/debian-11: drop go

I don't know how to fix building the image with it.
A few things were tried around different go versions (from -backports).

3 years agoMerge !1341: CI: enable new packaging tests using apkg
Vladimír Čunát [Mon, 3 Oct 2022 14:41:37 +0000 (16:41 +0200)] 
Merge !1341: CI: enable new packaging tests using apkg

3 years agomanager: removed specific versions of libraries from dependency list
Vasek Sraier [Fri, 30 Sep 2022 15:58:05 +0000 (17:58 +0200)] 
manager: removed specific versions of libraries from dependency list

3 years agoCI: don't (re)install apkg
Jakub Ružička [Fri, 30 Sep 2022 15:35:22 +0000 (17:35 +0200)] 
CI: don't (re)install apkg

apkg is already installed in apkg LXC images, no need to install it here.

Also use LXC image for make-archive.

3 years agoCI: update opensuse to 15.4
Jakub Ružička [Fri, 30 Sep 2022 14:31:07 +0000 (16:31 +0200)] 
CI: update opensuse to 15.4

3 years agoCI: remove old distros unsupported by manager
Jakub Ružička [Thu, 29 Sep 2022 16:03:15 +0000 (18:03 +0200)] 
CI: remove old distros unsupported by manager

3 years agomanager: supervisord sd_notify extension: removed assert in favor of an explicit if
Vasek Sraier [Thu, 29 Sep 2022 14:21:10 +0000 (16:21 +0200)] 
manager: supervisord sd_notify extension: removed assert in favor of an explicit if

3 years agoCI: enable new packaging tests using apkg
Jakub Ružička [Wed, 18 May 2022 11:04:47 +0000 (13:04 +0200)] 
CI: enable new packaging tests using apkg

See `distro/tests/README.md` for more info.

New CI pkg stage tests

    apkg install --build-dep
    apkg test --test-dep

on apkg LXC images using LXC gitlab runner.

A single pkg:make-archive job creates archive shared in all pkg jobs.

A similar change for Knot DNS: https://gitlab.nic.cz/knot/knot-dns/-/merge_requests/1488

See: https://gitlab.nic.cz/knot/knot-resolver/-/issues/612

3 years agoCI: add scripts/enable-repo.py
Jakub Ružička [Thu, 1 Sep 2022 14:37:37 +0000 (16:37 +0200)] 
CI: add scripts/enable-repo.py

Requiring only python3-distro, it can be used to enable
upstream repos on any supported system.

Intended for CI.

3 years agoCI: disable OBS pkgtest
Jakub Ružička [Tue, 27 Sep 2022 13:16:06 +0000 (15:16 +0200)] 
CI: disable OBS pkgtest

in favor of apkg-powered packaging tests without OBS.

See: https://gitlab.nic.cz/knot/knot-resolver/-/issues/612

3 years agotests: remove distro/tests
Jakub Ružička [Tue, 27 Sep 2022 13:14:54 +0000 (15:14 +0200)] 
tests: remove distro/tests

Cleanup before introduction of new packaging tests.

See: https://gitlab.nic.cz/knot/knot-resolver/-/issues/612

3 years agotests: remove tests/packaging
Jakub Ružička [Fri, 26 Aug 2022 14:58:54 +0000 (16:58 +0200)] 
tests: remove tests/packaging

Cleanup before introduction of new packaging tests.

See: https://gitlab.nic.cz/knot/knot-resolver/-/issues/612

3 years agoMerge branch 'master' into manager
Vasek Sraier [Fri, 23 Sep 2022 09:34:32 +0000 (11:34 +0200)] 
Merge branch 'master' into manager