├── .bouncer.yaml ├── .github ├── CODEOWNERS ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── config.yml │ └── feature_request.md ├── dependabot.yml └── workflows │ ├── codeql-analysis.yml │ ├── commit-linting.yaml │ ├── release.yaml │ └── static-unit-integration.yaml ├── .gitignore ├── .golangci.yaml ├── .goreleaser.yaml ├── CONTRIBUTING.md ├── Dockerfile ├── Dockerfile.skaffold ├── LICENSE ├── Makefile ├── README.md ├── anchore-k8s-inventory.yaml ├── cmd ├── cmd.go ├── completion.go ├── root.go └── version.go ├── go.mod ├── go.sum ├── install.sh ├── internal ├── anchore │ ├── anchoreclient.go │ └── anchoreclient_test.go ├── config │ ├── config.go │ ├── config_test.go │ ├── kube_config.go │ ├── test-fixtures │ │ └── snapshot │ │ │ ├── TestDefaultConfigString.golden │ │ │ ├── TestEmptyConfigString.golden │ │ │ ├── TestSensitiveConfigJSON.golden │ │ │ └── TestSensitiveConfigString.golden │ └── user_config.go ├── constants.go ├── log │ ├── log.go │ └── nop.go ├── logger │ └── logrus.go ├── time │ ├── time.go │ └── time_test.go ├── tracker │ └── time.go └── version │ └── build.go ├── kind-config.yaml ├── main.go ├── pkg ├── client │ ├── client.go │ └── client_test.go ├── healthreporter │ ├── healthreporter.go │ └── healthreporter_test.go ├── integration │ ├── integration.go │ └── integration_test.go ├── inventory │ ├── containers.go │ ├── containers_test.go │ ├── namespace.go │ ├── namespace_test.go │ ├── nodes.go │ ├── nodes_test.go │ ├── pods.go │ ├── pods_test.go │ ├── report.go │ ├── util.go │ └── util_test.go ├── lib.go ├── lib_test.go ├── logger │ └── logger.go ├── mode │ ├── mode.go │ └── mode_test.go └── reporter │ ├── reporter.go │ └── reporter_test.go ├── scripts ├── cluster-down.sh ├── cluster-up.sh ├── install-cluster-deps.sh └── install-go.sh ├── skaffold.yaml └── test └── integration ├── fixtures └── hello-world │ ├── .helmignore │ ├── Chart.yaml │ ├── templates │ ├── NOTES.txt │ ├── _helpers.tpl │ ├── deployment.yaml │ ├── hpa.yaml │ ├── ingress.yaml │ ├── service.yaml │ ├── serviceaccount.yaml │ └── tests │ │ └── test-connection.yaml │ └── values.yaml ├── get_images_test.go └── test-integration.sh /.bouncer.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/.bouncer.yaml -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @anchore/platform 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/.github/ISSUE_TEMPLATE/config.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.github/workflows/commit-linting.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/.github/workflows/commit-linting.yaml -------------------------------------------------------------------------------- /.github/workflows/release.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/.github/workflows/release.yaml -------------------------------------------------------------------------------- /.github/workflows/static-unit-integration.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/.github/workflows/static-unit-integration.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/.gitignore -------------------------------------------------------------------------------- /.golangci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/.golangci.yaml -------------------------------------------------------------------------------- /.goreleaser.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/.goreleaser.yaml -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/Dockerfile -------------------------------------------------------------------------------- /Dockerfile.skaffold: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/Dockerfile.skaffold -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/README.md -------------------------------------------------------------------------------- /anchore-k8s-inventory.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/anchore-k8s-inventory.yaml -------------------------------------------------------------------------------- /cmd/cmd.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/cmd/cmd.go -------------------------------------------------------------------------------- /cmd/completion.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/cmd/completion.go -------------------------------------------------------------------------------- /cmd/root.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/cmd/root.go -------------------------------------------------------------------------------- /cmd/version.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/cmd/version.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/go.sum -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/install.sh -------------------------------------------------------------------------------- /internal/anchore/anchoreclient.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/internal/anchore/anchoreclient.go -------------------------------------------------------------------------------- /internal/anchore/anchoreclient_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/internal/anchore/anchoreclient_test.go -------------------------------------------------------------------------------- /internal/config/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/internal/config/config.go -------------------------------------------------------------------------------- /internal/config/config_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/internal/config/config_test.go -------------------------------------------------------------------------------- /internal/config/kube_config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/internal/config/kube_config.go -------------------------------------------------------------------------------- /internal/config/test-fixtures/snapshot/TestDefaultConfigString.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/internal/config/test-fixtures/snapshot/TestDefaultConfigString.golden -------------------------------------------------------------------------------- /internal/config/test-fixtures/snapshot/TestEmptyConfigString.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/internal/config/test-fixtures/snapshot/TestEmptyConfigString.golden -------------------------------------------------------------------------------- /internal/config/test-fixtures/snapshot/TestSensitiveConfigJSON.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/internal/config/test-fixtures/snapshot/TestSensitiveConfigJSON.golden -------------------------------------------------------------------------------- /internal/config/test-fixtures/snapshot/TestSensitiveConfigString.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/internal/config/test-fixtures/snapshot/TestSensitiveConfigString.golden -------------------------------------------------------------------------------- /internal/config/user_config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/internal/config/user_config.go -------------------------------------------------------------------------------- /internal/constants.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/internal/constants.go -------------------------------------------------------------------------------- /internal/log/log.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/internal/log/log.go -------------------------------------------------------------------------------- /internal/log/nop.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/internal/log/nop.go -------------------------------------------------------------------------------- /internal/logger/logrus.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/internal/logger/logrus.go -------------------------------------------------------------------------------- /internal/time/time.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/internal/time/time.go -------------------------------------------------------------------------------- /internal/time/time_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/internal/time/time_test.go -------------------------------------------------------------------------------- /internal/tracker/time.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/internal/tracker/time.go -------------------------------------------------------------------------------- /internal/version/build.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/internal/version/build.go -------------------------------------------------------------------------------- /kind-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/kind-config.yaml -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/main.go -------------------------------------------------------------------------------- /pkg/client/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/client/client.go -------------------------------------------------------------------------------- /pkg/client/client_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/client/client_test.go -------------------------------------------------------------------------------- /pkg/healthreporter/healthreporter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/healthreporter/healthreporter.go -------------------------------------------------------------------------------- /pkg/healthreporter/healthreporter_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/healthreporter/healthreporter_test.go -------------------------------------------------------------------------------- /pkg/integration/integration.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/integration/integration.go -------------------------------------------------------------------------------- /pkg/integration/integration_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/integration/integration_test.go -------------------------------------------------------------------------------- /pkg/inventory/containers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/inventory/containers.go -------------------------------------------------------------------------------- /pkg/inventory/containers_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/inventory/containers_test.go -------------------------------------------------------------------------------- /pkg/inventory/namespace.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/inventory/namespace.go -------------------------------------------------------------------------------- /pkg/inventory/namespace_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/inventory/namespace_test.go -------------------------------------------------------------------------------- /pkg/inventory/nodes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/inventory/nodes.go -------------------------------------------------------------------------------- /pkg/inventory/nodes_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/inventory/nodes_test.go -------------------------------------------------------------------------------- /pkg/inventory/pods.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/inventory/pods.go -------------------------------------------------------------------------------- /pkg/inventory/pods_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/inventory/pods_test.go -------------------------------------------------------------------------------- /pkg/inventory/report.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/inventory/report.go -------------------------------------------------------------------------------- /pkg/inventory/util.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/inventory/util.go -------------------------------------------------------------------------------- /pkg/inventory/util_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/inventory/util_test.go -------------------------------------------------------------------------------- /pkg/lib.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/lib.go -------------------------------------------------------------------------------- /pkg/lib_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/lib_test.go -------------------------------------------------------------------------------- /pkg/logger/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/logger/logger.go -------------------------------------------------------------------------------- /pkg/mode/mode.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/mode/mode.go -------------------------------------------------------------------------------- /pkg/mode/mode_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/mode/mode_test.go -------------------------------------------------------------------------------- /pkg/reporter/reporter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/reporter/reporter.go -------------------------------------------------------------------------------- /pkg/reporter/reporter_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/pkg/reporter/reporter_test.go -------------------------------------------------------------------------------- /scripts/cluster-down.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/scripts/cluster-down.sh -------------------------------------------------------------------------------- /scripts/cluster-up.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/scripts/cluster-up.sh -------------------------------------------------------------------------------- /scripts/install-cluster-deps.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/scripts/install-cluster-deps.sh -------------------------------------------------------------------------------- /scripts/install-go.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/scripts/install-go.sh -------------------------------------------------------------------------------- /skaffold.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/skaffold.yaml -------------------------------------------------------------------------------- /test/integration/fixtures/hello-world/.helmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/test/integration/fixtures/hello-world/.helmignore -------------------------------------------------------------------------------- /test/integration/fixtures/hello-world/Chart.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/test/integration/fixtures/hello-world/Chart.yaml -------------------------------------------------------------------------------- /test/integration/fixtures/hello-world/templates/NOTES.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/test/integration/fixtures/hello-world/templates/NOTES.txt -------------------------------------------------------------------------------- /test/integration/fixtures/hello-world/templates/_helpers.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/test/integration/fixtures/hello-world/templates/_helpers.tpl -------------------------------------------------------------------------------- /test/integration/fixtures/hello-world/templates/deployment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/test/integration/fixtures/hello-world/templates/deployment.yaml -------------------------------------------------------------------------------- /test/integration/fixtures/hello-world/templates/hpa.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/test/integration/fixtures/hello-world/templates/hpa.yaml -------------------------------------------------------------------------------- /test/integration/fixtures/hello-world/templates/ingress.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/test/integration/fixtures/hello-world/templates/ingress.yaml -------------------------------------------------------------------------------- /test/integration/fixtures/hello-world/templates/service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/test/integration/fixtures/hello-world/templates/service.yaml -------------------------------------------------------------------------------- /test/integration/fixtures/hello-world/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/test/integration/fixtures/hello-world/templates/serviceaccount.yaml -------------------------------------------------------------------------------- /test/integration/fixtures/hello-world/templates/tests/test-connection.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/test/integration/fixtures/hello-world/templates/tests/test-connection.yaml -------------------------------------------------------------------------------- /test/integration/fixtures/hello-world/values.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/test/integration/fixtures/hello-world/values.yaml -------------------------------------------------------------------------------- /test/integration/get_images_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/test/integration/get_images_test.go -------------------------------------------------------------------------------- /test/integration/test-integration.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anchore/k8s-inventory/HEAD/test/integration/test-integration.sh --------------------------------------------------------------------------------