Merge pull request #224891 from KFearsoff/fix-grafana-assertions-in-yaml

nixos/grafana: fix assertions leaking into YAML
This commit is contained in:
Maximilian Bosch 2023-04-30 11:39:48 +02:00 committed by GitHub
commit 5c9977a524
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,17 +92,6 @@ let
grafanaTypes.datasourceConfig = types.submodule {
freeformType = provisioningSettingsFormat.type;
imports = [
(mkRemovedOptionModule [ "password" ] ''
`services.grafana.provision.datasources.settings.datasources.<name>.password` has been removed
in Grafana 9. Use `secureJsonData` instead.
'')
(mkRemovedOptionModule [ "basicAuthPassword" ] ''
`services.grafana.provision.datasources.settings.datasources.<name>.basicAuthPassword` has been removed
in Grafana 9. Use `secureJsonData` instead.
'')
];
options = {
name = mkOption {
type = types.str;
@ -603,7 +592,6 @@ in {
description = lib.mdDoc "List of datasources to insert/update.";
default = [];
type = types.listOf grafanaTypes.datasourceConfig;
apply = map (flip builtins.removeAttrs [ "password" "basicAuthPassword" ]);
};
deleteDatasources = mkOption {