diff --git a/db/config.go b/db/config.go index 29ad9e99..4cc9b7b5 100644 --- a/db/config.go +++ b/db/config.go @@ -147,6 +147,7 @@ func NewConfigItemFromResult(result v1.ScrapeResult) (*models.ConfigItem, error) ConfigClass: result.ConfigClass, Type: &result.Type, Name: &result.Name, + Namespace: &result.Namespace, Source: &result.Source, Tags: &result.Tags, Config: &dataStr, diff --git a/fixtures/expected/file-git.json b/fixtures/expected/file-git.json index 99862f31..259fea05 100644 --- a/fixtures/expected/file-git.json +++ b/fixtures/expected/file-git.json @@ -61,6 +61,13 @@ "display": { "template": "code={{.code}}, age={{.sslAge}}" } + }, + { + "name": "http-headers", + "test": { + "expr": "json.headers[\"User-Agent\"].startsWith(\"canary-checker/\")" + }, + "url": "https://httpbin.demo.aws.flanksource.com/headers" } ] }