From e8121ae53f78dd6439f5a82b960eb026bbe0126e Mon Sep 17 00:00:00 2001 From: Frank Jogeleit Date: Fri, 23 Jul 2021 10:05:20 +0200 Subject: [PATCH] update repository owner (#50) Signed-off-by: Frank Jogeleit --- .github/workflows/helm-chart.yaml | 5 ++-- CHANGELOG.md | 8 ++--- README.md | 30 +++++++++---------- cmd/root.go | 2 +- cmd/run.go | 8 ++--- go.mod | 2 +- main.go | 2 +- manifest/README.md | 14 ++++----- pkg/api/gzip_test.go | 2 +- pkg/api/handler.go | 2 +- pkg/api/handler_test.go | 4 +-- pkg/api/model.go | 4 +-- pkg/api/server.go | 4 +-- pkg/api/server_test.go | 10 +++---- pkg/config/resolver.go | 20 ++++++------- pkg/config/resolver_test.go | 2 +- pkg/kubernetes/config_map_adapter_test.go | 2 +- pkg/kubernetes/mapper.go | 2 +- pkg/kubernetes/mapper_test.go | 4 +-- pkg/kubernetes/policy_report_client.go | 2 +- pkg/kubernetes/policy_report_client_test.go | 4 +-- pkg/kubernetes/report_adapter.go | 2 +- pkg/kubernetes/report_adapter_test.go | 2 +- pkg/kubernetes/report_client_test.go | 4 +-- pkg/metrics/cluster_policy_report.go | 2 +- pkg/metrics/cluster_policy_report_test.go | 4 +-- pkg/metrics/metrics.go | 2 +- pkg/metrics/policy_report.go | 2 +- pkg/metrics/policy_report_test.go | 4 +-- pkg/report/model_test.go | 2 +- pkg/report/store_test.go | 2 +- pkg/target/client.go | 2 +- pkg/target/discord/discord.go | 6 ++-- pkg/target/discord/discord_test.go | 4 +-- pkg/target/elasticsearch/elasticsearch.go | 6 ++-- .../elasticsearch/elasticsearch_test.go | 4 +-- pkg/target/loki/loki.go | 6 ++-- pkg/target/loki/loki_test.go | 4 +-- pkg/target/slack/slack.go | 6 ++-- pkg/target/slack/slack_test.go | 4 +-- pkg/target/teams/teams.go | 6 ++-- pkg/target/teams/teams_test.go | 4 +-- pkg/target/ui/ui.go | 6 ++-- pkg/target/ui/ui_test.go | 4 +-- 44 files changed, 111 insertions(+), 110 deletions(-) diff --git a/.github/workflows/helm-chart.yaml b/.github/workflows/helm-chart.yaml index c64e8a7c..b5f4fa3b 100644 --- a/.github/workflows/helm-chart.yaml +++ b/.github/workflows/helm-chart.yaml @@ -8,9 +8,10 @@ on: - development paths: - "charts/**" + pull_request: - paths: - - "charts/**" + branches: + - main jobs: lint: diff --git a/CHANGELOG.md b/CHANGELOG.md index 7477db69..d190bc6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ * Update Policy Reporter UI to `0.12.0` # 1.8.1 -* Customize label and annotation for Grafana dashboards [#43](https://github.com/fjogeleit/policy-reporter/pull/43) by [nlamirault](https://github.com/nlamirault) +* Customize label and annotation for Grafana dashboards [#43](https://github.com/kyverno/policy-reporter/pull/43) by [nlamirault](https://github.com/nlamirault) * ARM64 Support for all Components # 1.7.3 @@ -158,14 +158,14 @@ ## 0.18.0 -* Helm Chart updates [#16](https://github.com/fjogeleit/policy-reporter/pull/16) fixes [#14](https://github.com/fjogeleit/policy-reporter/issues/14) +* Helm Chart updates [#16](https://github.com/kyverno/policy-reporter/pull/16) fixes [#14](https://github.com/kyverno/policy-reporter/issues/14) * Target Configuration are now configured under `target` in the HelmChart `values.yaml` * config.yaml are now deployed as Secret with encoded data body (plain stringData before) ## 0.17.0 -* New Helm Linting Workflow by kolikons [#15](https://github.com/fjogeleit/policy-reporter/pull/15) -* Improved Helm Chart by kolikons [#13](https://github.com/fjogeleit/policy-reporter/pull/13) +* New Helm Linting Workflow by kolikons [#15](https://github.com/kyverno/policy-reporter/pull/15) +* Improved Helm Chart by kolikons [#13](https://github.com/kyverno/policy-reporter/pull/13) * More configuration possibilities like UI Ingress, ReplicaCount * Role and RoleBindings for ConfigMaps are now optional (required for Priority configuration) ## 0.16.0 diff --git a/README.md b/README.md index cc3e1653..16986110 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,17 @@ # Policy Reporter -[![CI](https://github.com/fjogeleit/policy-reporter/actions/workflows/ci.yaml/badge.svg)](https://github.com/fjogeleit/policy-reporter/actions/workflows/ci.yaml) [![Go Report Card](https://goreportcard.com/badge/github.com/fjogeleit/policy-reporter)](https://goreportcard.com/report/github.com/fjogeleit/policy-reporter) [![Coverage Status](https://coveralls.io/repos/github/fjogeleit/policy-reporter/badge.svg?branch=main)](https://coveralls.io/github/fjogeleit/policy-reporter?branch=main) +[![CI](https://github.com/kyverno/policy-reporter/actions/workflows/ci.yaml/badge.svg)](https://github.com/kyverno/policy-reporter/actions/workflows/ci.yaml) [![Go Report Card](https://goreportcard.com/badge/github.com/kyverno/policy-reporter)](https://goreportcard.com/report/github.com/kyverno/policy-reporter) [![Coverage Status](https://coveralls.io/repos/github/kyverno/policy-reporter/badge.svg?branch=main)](https://coveralls.io/github/kyverno/policy-reporter?branch=main) ## Motivation Kyverno ships with two types of validation. You can either enforce a rule or audit it. If you don't want to block developers or if you want to try out a new rule, you can use the audit functionality. The audit configuration creates [PolicyReports](https://kyverno.io/docs/policy-reports/) which you can access with `kubectl`. Because I can't find a simple solution to get a general overview of this PolicyReports and PolicyReportResults, I created this tool to send information about PolicyReports to different targets like [Grafana Loki](https://grafana.com/oss/loki/), [Elasticsearch](https://www.elastic.co/de/elasticsearch/) or [Slack](https://slack.com/). -Policy Reporter provides also a Prometheus Metrics API as well as an standalone mode along with the [Policy Reporter UI](https://github.com/fjogeleit/policy-reporter/wiki/policy-reporter-ui). +Policy Reporter provides also a Prometheus Metrics API as well as an standalone mode along with the [Policy Reporter UI](https://github.com/kyverno/policy-reporter/wiki/policy-reporter-ui). This project is in an early stage. Please let me know if anything did not work as expected or if you want to send your audits to unsupported targets. ## Documentation -You can find detailed Information and Screens about Features and Configurations in the [Documentation](https://github.com/fjogeleit/policy-reporter/wiki). +You can find detailed Information and Screens about Features and Configurations in the [Documentation](https://github.com/kyverno/policy-reporter/wiki). ## Getting Started @@ -21,13 +21,13 @@ Installation via Helm Repository ### Add the Helm repository ```bash -helm repo add policy-reporter https://fjogeleit.github.io/policy-reporter +helm repo add policy-reporter https://kyverno.github.io/policy-reporter helm repo update ``` ### Basic Installation -The basic installation provides an Prometheus Metrics Endpoint and different REST APIs, for more details have a look at the [Documentation](https://github.com/fjogeleit/policy-reporter/wiki/getting-started). +The basic installation provides an Prometheus Metrics Endpoint and different REST APIs, for more details have a look at the [Documentation](https://github.com/kyverno/policy-reporter/wiki/getting-started). ```bash helm install policy-reporter policy-reporter/policy-reporter -n policy-reporter --create-namespace @@ -35,7 +35,7 @@ helm install policy-reporter policy-reporter/policy-reporter -n policy-reporter ### Installation without Helm or Kustomize -To install Policy Reporter without Helm or Kustomize have a look at [manifests](https://github.com/fjogeleit/policy-reporter/tree/main/manifest). +To install Policy Reporter without Helm or Kustomize have a look at [manifests](https://github.com/kyverno/policy-reporter/tree/main/manifest). ## Policy Reporter UI @@ -48,24 +48,24 @@ kubectl port-forward service/policy-reporter-ui 8082:8080 -n policy-reporter ``` Open `http://localhost:8082/` in your browser. -Check the [Documentation](https://github.com/fjogeleit/policy-reporter/wiki/policy-reporter-ui) for Screens and additional Information +Check the [Documentation](https://github.com/kyverno/policy-reporter/wiki/policy-reporter-ui) for Screens and additional Information ## Targets -Policy Reporter supports the following [Targets](https://github.com/fjogeleit/policy-reporter/wiki/targets) to send new (Cluster)PolicyReport Results too: -* [Grafana Loki](https://github.com/fjogeleit/policy-reporter/wiki/grafana-loki) -* [Elasticsearch](https://github.com/fjogeleit/policy-reporter/wiki/elasticsearch) -* [Slack](https://github.com/fjogeleit/policy-reporter/wiki/slack) -* [Discord](https://github.com/fjogeleit/policy-reporter/wiki/discord) -* [MS Teams](https://github.com/fjogeleit/policy-reporter/wiki/ms-teams) -* [Policy Reporter UI](https://github.com/fjogeleit/policy-reporter/wiki/policy-reporter-ui-log) +Policy Reporter supports the following [Targets](https://github.com/kyverno/policy-reporter/wiki/targets) to send new (Cluster)PolicyReport Results too: +* [Grafana Loki](https://github.com/kyverno/policy-reporter/wiki/grafana-loki) +* [Elasticsearch](https://github.com/kyverno/policy-reporter/wiki/elasticsearch) +* [Slack](https://github.com/kyverno/policy-reporter/wiki/slack) +* [Discord](https://github.com/kyverno/policy-reporter/wiki/discord) +* [MS Teams](https://github.com/kyverno/policy-reporter/wiki/ms-teams) +* [Policy Reporter UI](https://github.com/kyverno/policy-reporter/wiki/policy-reporter-ui-log) ## Monitoring The Helm Chart includes optional SubChart for [Prometheus Operator](https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack) Integration. The provided Dashboards working without Loki and are only based on the Prometheus Metrics. -Have a look into the [Documentation](https://github.com/fjogeleit/policy-reporter/wiki/prometheus-operator-integration) for details. +Have a look into the [Documentation](https://github.com/kyverno/policy-reporter/wiki/prometheus-operator-integration) for details. ### Grafana Dashboard Import diff --git a/cmd/root.go b/cmd/root.go index 58087ada..59571c52 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -3,7 +3,7 @@ package cmd import ( "log" - "github.com/fjogeleit/policy-reporter/pkg/config" + "github.com/kyverno/policy-reporter/pkg/config" "github.com/spf13/cobra" "github.com/spf13/viper" ) diff --git a/cmd/run.go b/cmd/run.go index 3f1770e1..3aee3424 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -5,10 +5,10 @@ import ( "flag" "net/http" - "github.com/fjogeleit/policy-reporter/pkg/config" - "github.com/fjogeleit/policy-reporter/pkg/metrics" - "github.com/fjogeleit/policy-reporter/pkg/report" - "github.com/fjogeleit/policy-reporter/pkg/target" + "github.com/kyverno/policy-reporter/pkg/config" + "github.com/kyverno/policy-reporter/pkg/metrics" + "github.com/kyverno/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/target" "github.com/prometheus/client_golang/prometheus/promhttp" "github.com/spf13/cobra" "k8s.io/client-go/rest" diff --git a/go.mod b/go.mod index b3ab1b3c..4eee30e8 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/fjogeleit/policy-reporter +module github.com/kyverno/policy-reporter go 1.15 diff --git a/main.go b/main.go index d78b3603..f1df1dc6 100644 --- a/main.go +++ b/main.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/fjogeleit/policy-reporter/cmd" + "github.com/kyverno/policy-reporter/cmd" ) func main() { diff --git a/manifest/README.md b/manifest/README.md index 6081665b..173b0a96 100644 --- a/manifest/README.md +++ b/manifest/README.md @@ -11,7 +11,7 @@ The `policy-reporter` folder is the basic installation for Policy Reporter witho ### Installation ```bash -kubectl apply -f https://raw.githubusercontent.com/fjogeleit/policy-reporter/main/manifest/policy-reporter/install.yaml +kubectl apply -f https://raw.githubusercontent.com/kyverno/policy-reporter/main/manifest/policy-reporter/install.yaml ``` ## Default Policy Reporter UI @@ -27,9 +27,9 @@ Configures Policy Reporter UI as Target for Policy Reporter. ### Installation ```bash -kubectl apply -f https://raw.githubusercontent.com/fjogeleit/policy-reporter/main/manifest/default-policy-reporter-ui/namespace.yaml -kubectl apply -f https://raw.githubusercontent.com/fjogeleit/policy-reporter/main/manifest/default-policy-reporter-ui/target-secret.yaml -kubectl apply -f https://raw.githubusercontent.com/fjogeleit/policy-reporter/main/manifest/default-policy-reporter-ui/install.yaml +kubectl apply -f https://raw.githubusercontent.com/kyverno/policy-reporter/main/manifest/default-policy-reporter-ui/namespace.yaml +kubectl apply -f https://raw.githubusercontent.com/kyverno/policy-reporter/main/manifest/default-policy-reporter-ui/target-secret.yaml +kubectl apply -f https://raw.githubusercontent.com/kyverno/policy-reporter/main/manifest/default-policy-reporter-ui/install.yaml ``` ## Kyverno Policy Reporter UI @@ -48,9 +48,9 @@ Configures Policy Reporter UI as Target for Policy Reporter and enables the Kyve ### Installation ```bash -kubectl apply -f https://raw.githubusercontent.com/fjogeleit/policy-reporter/main/manifest/kyverno-policy-reporter-ui/namespace.yaml -kubectl apply -f https://raw.githubusercontent.com/fjogeleit/policy-reporter/main/manifest/kyverno-policy-reporter-ui/target-secret.yaml -kubectl apply -f https://raw.githubusercontent.com/fjogeleit/policy-reporter/main/manifest/kyverno-policy-reporter-ui/install.yaml +kubectl apply -f https://raw.githubusercontent.com/kyverno/policy-reporter/main/manifest/kyverno-policy-reporter-ui/namespace.yaml +kubectl apply -f https://raw.githubusercontent.com/kyverno/policy-reporter/main/manifest/kyverno-policy-reporter-ui/target-secret.yaml +kubectl apply -f https://raw.githubusercontent.com/kyverno/policy-reporter/main/manifest/kyverno-policy-reporter-ui/install.yaml ``` ## Target Configuration diff --git a/pkg/api/gzip_test.go b/pkg/api/gzip_test.go index e5b66cb5..1e2de765 100644 --- a/pkg/api/gzip_test.go +++ b/pkg/api/gzip_test.go @@ -7,7 +7,7 @@ import ( "net/http/httptest" "testing" - "github.com/fjogeleit/policy-reporter/pkg/api" + "github.com/kyverno/policy-reporter/pkg/api" ) func Test_GzipCompression(t *testing.T) { diff --git a/pkg/api/handler.go b/pkg/api/handler.go index 7c90bb88..003e1dc5 100644 --- a/pkg/api/handler.go +++ b/pkg/api/handler.go @@ -5,7 +5,7 @@ import ( "fmt" "net/http" - "github.com/fjogeleit/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/report" ) // HealthzHandler for the Halthz REST API diff --git a/pkg/api/handler_test.go b/pkg/api/handler_test.go index 9d2686a9..f288676a 100644 --- a/pkg/api/handler_test.go +++ b/pkg/api/handler_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/fjogeleit/policy-reporter/pkg/api" - "github.com/fjogeleit/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/api" + "github.com/kyverno/policy-reporter/pkg/report" ) func Test_TargetsAPI(t *testing.T) { diff --git a/pkg/api/model.go b/pkg/api/model.go index 7e767162..22300fc2 100644 --- a/pkg/api/model.go +++ b/pkg/api/model.go @@ -3,8 +3,8 @@ package api import ( "time" - "github.com/fjogeleit/policy-reporter/pkg/report" - "github.com/fjogeleit/policy-reporter/pkg/target" + "github.com/kyverno/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/target" ) // Resource API Model diff --git a/pkg/api/server.go b/pkg/api/server.go index 502017be..c44c2e68 100644 --- a/pkg/api/server.go +++ b/pkg/api/server.go @@ -4,8 +4,8 @@ import ( "fmt" "net/http" - "github.com/fjogeleit/policy-reporter/pkg/report" - "github.com/fjogeleit/policy-reporter/pkg/target" + "github.com/kyverno/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/target" ) // Server for the optional HTTP REST API diff --git a/pkg/api/server_test.go b/pkg/api/server_test.go index 61d58d03..a9a3957c 100644 --- a/pkg/api/server_test.go +++ b/pkg/api/server_test.go @@ -4,11 +4,11 @@ import ( "net/http" "testing" - "github.com/fjogeleit/policy-reporter/pkg/api" - "github.com/fjogeleit/policy-reporter/pkg/report" - "github.com/fjogeleit/policy-reporter/pkg/target" - "github.com/fjogeleit/policy-reporter/pkg/target/discord" - "github.com/fjogeleit/policy-reporter/pkg/target/loki" + "github.com/kyverno/policy-reporter/pkg/api" + "github.com/kyverno/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/target" + "github.com/kyverno/policy-reporter/pkg/target/discord" + "github.com/kyverno/policy-reporter/pkg/target/loki" ) func Test_NewServer(t *testing.T) { diff --git a/pkg/config/resolver.go b/pkg/config/resolver.go index bf2ea5f5..19cc24fe 100644 --- a/pkg/config/resolver.go +++ b/pkg/config/resolver.go @@ -6,16 +6,16 @@ import ( "net/http" "time" - "github.com/fjogeleit/policy-reporter/pkg/api" - "github.com/fjogeleit/policy-reporter/pkg/kubernetes" - "github.com/fjogeleit/policy-reporter/pkg/report" - "github.com/fjogeleit/policy-reporter/pkg/target" - "github.com/fjogeleit/policy-reporter/pkg/target/discord" - "github.com/fjogeleit/policy-reporter/pkg/target/elasticsearch" - "github.com/fjogeleit/policy-reporter/pkg/target/loki" - "github.com/fjogeleit/policy-reporter/pkg/target/slack" - "github.com/fjogeleit/policy-reporter/pkg/target/teams" - "github.com/fjogeleit/policy-reporter/pkg/target/ui" + "github.com/kyverno/policy-reporter/pkg/api" + "github.com/kyverno/policy-reporter/pkg/kubernetes" + "github.com/kyverno/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/target" + "github.com/kyverno/policy-reporter/pkg/target/discord" + "github.com/kyverno/policy-reporter/pkg/target/elasticsearch" + "github.com/kyverno/policy-reporter/pkg/target/loki" + "github.com/kyverno/policy-reporter/pkg/target/slack" + "github.com/kyverno/policy-reporter/pkg/target/teams" + "github.com/kyverno/policy-reporter/pkg/target/ui" "github.com/patrickmn/go-cache" "k8s.io/client-go/dynamic" v1 "k8s.io/client-go/kubernetes/typed/core/v1" diff --git a/pkg/config/resolver_test.go b/pkg/config/resolver_test.go index 57de9e8e..0ec83fc5 100644 --- a/pkg/config/resolver_test.go +++ b/pkg/config/resolver_test.go @@ -4,7 +4,7 @@ import ( "context" "testing" - "github.com/fjogeleit/policy-reporter/pkg/config" + "github.com/kyverno/policy-reporter/pkg/config" "k8s.io/client-go/rest" ) diff --git a/pkg/kubernetes/config_map_adapter_test.go b/pkg/kubernetes/config_map_adapter_test.go index d25d0307..7708c4a1 100644 --- a/pkg/kubernetes/config_map_adapter_test.go +++ b/pkg/kubernetes/config_map_adapter_test.go @@ -6,7 +6,7 @@ import ( "sync" "testing" - "github.com/fjogeleit/policy-reporter/pkg/kubernetes" + "github.com/kyverno/policy-reporter/pkg/kubernetes" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/watch" diff --git a/pkg/kubernetes/mapper.go b/pkg/kubernetes/mapper.go index c14ca9e4..a0bc5060 100644 --- a/pkg/kubernetes/mapper.go +++ b/pkg/kubernetes/mapper.go @@ -6,7 +6,7 @@ import ( "log" "time" - "github.com/fjogeleit/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/report" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/watch" ) diff --git a/pkg/kubernetes/mapper_test.go b/pkg/kubernetes/mapper_test.go index 372ec186..15519dba 100644 --- a/pkg/kubernetes/mapper_test.go +++ b/pkg/kubernetes/mapper_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/fjogeleit/policy-reporter/pkg/kubernetes" - "github.com/fjogeleit/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/kubernetes" + "github.com/kyverno/policy-reporter/pkg/report" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/watch" diff --git a/pkg/kubernetes/policy_report_client.go b/pkg/kubernetes/policy_report_client.go index 3c1eb12e..d74b4a0c 100644 --- a/pkg/kubernetes/policy_report_client.go +++ b/pkg/kubernetes/policy_report_client.go @@ -5,7 +5,7 @@ import ( "sync" "time" - "github.com/fjogeleit/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/report" "github.com/patrickmn/go-cache" "k8s.io/apimachinery/pkg/watch" ) diff --git a/pkg/kubernetes/policy_report_client_test.go b/pkg/kubernetes/policy_report_client_test.go index 27d6e975..a9742c29 100644 --- a/pkg/kubernetes/policy_report_client_test.go +++ b/pkg/kubernetes/policy_report_client_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/fjogeleit/policy-reporter/pkg/kubernetes" - "github.com/fjogeleit/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/kubernetes" + "github.com/kyverno/policy-reporter/pkg/report" "github.com/patrickmn/go-cache" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" diff --git a/pkg/kubernetes/report_adapter.go b/pkg/kubernetes/report_adapter.go index b6e9ac96..c76a8631 100644 --- a/pkg/kubernetes/report_adapter.go +++ b/pkg/kubernetes/report_adapter.go @@ -4,7 +4,7 @@ import ( "context" "log" - "github.com/fjogeleit/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/report" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/runtime/schema" diff --git a/pkg/kubernetes/report_adapter_test.go b/pkg/kubernetes/report_adapter_test.go index 559c6b28..24b2e5b0 100644 --- a/pkg/kubernetes/report_adapter_test.go +++ b/pkg/kubernetes/report_adapter_test.go @@ -4,7 +4,7 @@ import ( "context" "testing" - "github.com/fjogeleit/policy-reporter/pkg/kubernetes" + "github.com/kyverno/policy-reporter/pkg/kubernetes" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/runtime" diff --git a/pkg/kubernetes/report_client_test.go b/pkg/kubernetes/report_client_test.go index 889c5cec..a6f2d526 100644 --- a/pkg/kubernetes/report_client_test.go +++ b/pkg/kubernetes/report_client_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - "github.com/fjogeleit/policy-reporter/pkg/kubernetes" - "github.com/fjogeleit/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/kubernetes" + "github.com/kyverno/policy-reporter/pkg/report" "github.com/patrickmn/go-cache" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" diff --git a/pkg/metrics/cluster_policy_report.go b/pkg/metrics/cluster_policy_report.go index cd513c62..cf6c0c53 100644 --- a/pkg/metrics/cluster_policy_report.go +++ b/pkg/metrics/cluster_policy_report.go @@ -1,7 +1,7 @@ package metrics import ( - "github.com/fjogeleit/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/report" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto" "k8s.io/apimachinery/pkg/watch" diff --git a/pkg/metrics/cluster_policy_report_test.go b/pkg/metrics/cluster_policy_report_test.go index 7f6d4179..40bdec0d 100644 --- a/pkg/metrics/cluster_policy_report_test.go +++ b/pkg/metrics/cluster_policy_report_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/fjogeleit/policy-reporter/pkg/metrics" - "github.com/fjogeleit/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/metrics" + "github.com/kyverno/policy-reporter/pkg/report" "github.com/prometheus/client_golang/prometheus" io_prometheus_client "github.com/prometheus/client_model/go" "k8s.io/apimachinery/pkg/watch" diff --git a/pkg/metrics/metrics.go b/pkg/metrics/metrics.go index 9e02b326..17758e0b 100644 --- a/pkg/metrics/metrics.go +++ b/pkg/metrics/metrics.go @@ -1,7 +1,7 @@ package metrics import ( - "github.com/fjogeleit/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/report" "k8s.io/apimachinery/pkg/watch" ) diff --git a/pkg/metrics/policy_report.go b/pkg/metrics/policy_report.go index 59802776..04fa4fcd 100644 --- a/pkg/metrics/policy_report.go +++ b/pkg/metrics/policy_report.go @@ -1,7 +1,7 @@ package metrics import ( - "github.com/fjogeleit/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/report" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto" "k8s.io/apimachinery/pkg/watch" diff --git a/pkg/metrics/policy_report_test.go b/pkg/metrics/policy_report_test.go index 26f99a9a..f064b936 100644 --- a/pkg/metrics/policy_report_test.go +++ b/pkg/metrics/policy_report_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/fjogeleit/policy-reporter/pkg/metrics" - "github.com/fjogeleit/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/metrics" + "github.com/kyverno/policy-reporter/pkg/report" "github.com/prometheus/client_golang/prometheus" io_prometheus_client "github.com/prometheus/client_model/go" "k8s.io/apimachinery/pkg/watch" diff --git a/pkg/report/model_test.go b/pkg/report/model_test.go index 107cc90e..88c19f4a 100644 --- a/pkg/report/model_test.go +++ b/pkg/report/model_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/fjogeleit/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/report" ) var result1 = report.Result{ diff --git a/pkg/report/store_test.go b/pkg/report/store_test.go index fb64397a..acbc9280 100644 --- a/pkg/report/store_test.go +++ b/pkg/report/store_test.go @@ -3,7 +3,7 @@ package report_test import ( "testing" - "github.com/fjogeleit/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/report" ) func Test_PolicyReportStore(t *testing.T) { diff --git a/pkg/target/client.go b/pkg/target/client.go index c123eb0f..78ea793f 100644 --- a/pkg/target/client.go +++ b/pkg/target/client.go @@ -1,7 +1,7 @@ package target import ( - "github.com/fjogeleit/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/report" ) // Client for a provided Target diff --git a/pkg/target/discord/discord.go b/pkg/target/discord/discord.go index 62908c31..05e4193b 100644 --- a/pkg/target/discord/discord.go +++ b/pkg/target/discord/discord.go @@ -7,9 +7,9 @@ import ( "net/http" "strings" - "github.com/fjogeleit/policy-reporter/pkg/report" - "github.com/fjogeleit/policy-reporter/pkg/target" - "github.com/fjogeleit/policy-reporter/pkg/target/helper" + "github.com/kyverno/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/target" + "github.com/kyverno/policy-reporter/pkg/target/helper" ) type payload struct { diff --git a/pkg/target/discord/discord_test.go b/pkg/target/discord/discord_test.go index d2d43ce5..33093e70 100644 --- a/pkg/target/discord/discord_test.go +++ b/pkg/target/discord/discord_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/fjogeleit/policy-reporter/pkg/report" - "github.com/fjogeleit/policy-reporter/pkg/target/discord" + "github.com/kyverno/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/target/discord" ) var completeResult = report.Result{ diff --git a/pkg/target/elasticsearch/elasticsearch.go b/pkg/target/elasticsearch/elasticsearch.go index 19e7feb7..ed5a0d99 100644 --- a/pkg/target/elasticsearch/elasticsearch.go +++ b/pkg/target/elasticsearch/elasticsearch.go @@ -7,9 +7,9 @@ import ( "net/http" "time" - "github.com/fjogeleit/policy-reporter/pkg/report" - "github.com/fjogeleit/policy-reporter/pkg/target" - "github.com/fjogeleit/policy-reporter/pkg/target/helper" + "github.com/kyverno/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/target" + "github.com/kyverno/policy-reporter/pkg/target/helper" ) // Rotation Enum diff --git a/pkg/target/elasticsearch/elasticsearch_test.go b/pkg/target/elasticsearch/elasticsearch_test.go index 79094a67..13f94645 100644 --- a/pkg/target/elasticsearch/elasticsearch_test.go +++ b/pkg/target/elasticsearch/elasticsearch_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/fjogeleit/policy-reporter/pkg/report" - "github.com/fjogeleit/policy-reporter/pkg/target/elasticsearch" + "github.com/kyverno/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/target/elasticsearch" ) var completeResult = report.Result{ diff --git a/pkg/target/loki/loki.go b/pkg/target/loki/loki.go index 2bc228ad..5aae8412 100644 --- a/pkg/target/loki/loki.go +++ b/pkg/target/loki/loki.go @@ -8,9 +8,9 @@ import ( "strings" "time" - "github.com/fjogeleit/policy-reporter/pkg/report" - "github.com/fjogeleit/policy-reporter/pkg/target" - "github.com/fjogeleit/policy-reporter/pkg/target/helper" + "github.com/kyverno/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/target" + "github.com/kyverno/policy-reporter/pkg/target/helper" ) type httpClient interface { diff --git a/pkg/target/loki/loki_test.go b/pkg/target/loki/loki_test.go index b9b9c2aa..fe8de940 100644 --- a/pkg/target/loki/loki_test.go +++ b/pkg/target/loki/loki_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - "github.com/fjogeleit/policy-reporter/pkg/report" - "github.com/fjogeleit/policy-reporter/pkg/target/loki" + "github.com/kyverno/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/target/loki" ) var completeResult = report.Result{ diff --git a/pkg/target/slack/slack.go b/pkg/target/slack/slack.go index 3c5c70d0..02e0a96d 100644 --- a/pkg/target/slack/slack.go +++ b/pkg/target/slack/slack.go @@ -7,9 +7,9 @@ import ( "net/http" "strings" - "github.com/fjogeleit/policy-reporter/pkg/report" - "github.com/fjogeleit/policy-reporter/pkg/target" - "github.com/fjogeleit/policy-reporter/pkg/target/helper" + "github.com/kyverno/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/target" + "github.com/kyverno/policy-reporter/pkg/target/helper" ) type httpClient interface { diff --git a/pkg/target/slack/slack_test.go b/pkg/target/slack/slack_test.go index 6f58e4bb..ded8d71b 100644 --- a/pkg/target/slack/slack_test.go +++ b/pkg/target/slack/slack_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/fjogeleit/policy-reporter/pkg/report" - "github.com/fjogeleit/policy-reporter/pkg/target/slack" + "github.com/kyverno/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/target/slack" ) var completeResult = report.Result{ diff --git a/pkg/target/teams/teams.go b/pkg/target/teams/teams.go index 9e8e4578..647826b9 100644 --- a/pkg/target/teams/teams.go +++ b/pkg/target/teams/teams.go @@ -8,9 +8,9 @@ import ( "strings" "time" - "github.com/fjogeleit/policy-reporter/pkg/report" - "github.com/fjogeleit/policy-reporter/pkg/target" - "github.com/fjogeleit/policy-reporter/pkg/target/helper" + "github.com/kyverno/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/target" + "github.com/kyverno/policy-reporter/pkg/target/helper" ) type httpClient interface { diff --git a/pkg/target/teams/teams_test.go b/pkg/target/teams/teams_test.go index 75318a34..9ef9605a 100644 --- a/pkg/target/teams/teams_test.go +++ b/pkg/target/teams/teams_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - "github.com/fjogeleit/policy-reporter/pkg/report" - "github.com/fjogeleit/policy-reporter/pkg/target/teams" + "github.com/kyverno/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/target/teams" ) var completeResult = report.Result{ diff --git a/pkg/target/ui/ui.go b/pkg/target/ui/ui.go index 4a000028..49a373fc 100644 --- a/pkg/target/ui/ui.go +++ b/pkg/target/ui/ui.go @@ -7,9 +7,9 @@ import ( "net/http" "time" - "github.com/fjogeleit/policy-reporter/pkg/report" - "github.com/fjogeleit/policy-reporter/pkg/target" - "github.com/fjogeleit/policy-reporter/pkg/target/helper" + "github.com/kyverno/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/target" + "github.com/kyverno/policy-reporter/pkg/target/helper" ) type httpClient interface { diff --git a/pkg/target/ui/ui_test.go b/pkg/target/ui/ui_test.go index 6c3abe6f..67ce671b 100644 --- a/pkg/target/ui/ui_test.go +++ b/pkg/target/ui/ui_test.go @@ -4,8 +4,8 @@ import ( "net/http" "testing" - "github.com/fjogeleit/policy-reporter/pkg/report" - "github.com/fjogeleit/policy-reporter/pkg/target/ui" + "github.com/kyverno/policy-reporter/pkg/report" + "github.com/kyverno/policy-reporter/pkg/target/ui" ) var completeResult = report.Result{