{"id":21663999,"url":"https://github.com/datreeio/datree-cdk8s","last_synced_at":"2025-04-12T00:01:59.112Z","repository":{"id":65350679,"uuid":"536095570","full_name":"datreeio/datree-cdk8s","owner":"datreeio","description":"A cdk8s plugin to validate synthesized k8s manifests","archived":false,"fork":false,"pushed_at":"2022-10-03T13:42:56.000Z","size":232,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-24T19:03:46.648Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datreeio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-13T11:35:17.000Z","updated_at":"2023-08-10T17:08:57.000Z","dependencies_parsed_at":"2023-01-19T04:20:12.561Z","dependency_job_id":null,"html_url":"https://github.com/datreeio/datree-cdk8s","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datreeio%2Fdatree-cdk8s","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datreeio%2Fdatree-cdk8s/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datreeio%2Fdatree-cdk8s/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datreeio%2Fdatree-cdk8s/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datreeio","download_url":"https://codeload.github.com/datreeio/datree-cdk8s/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248497805,"owners_count":21113984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-25T10:30:18.557Z","updated_at":"2025-04-12T00:01:59.007Z","avatar_url":"https://github.com/datreeio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Datree cdk8s validation plugin\r\n\r\n\u003cp align=\"center\"\u003e\r\n\u003cimg src=\"https://cdk8s.io/images/logo.svg\" width=\"30%\" /\u003e\r\n\u003c/p\u003e\r\n  \r\n# Overview\r\n[cdk8s](https://cdk8s.io/index.html) by AWS is an open-source software development framework for defining Kubernetes applications using familiar programming languages and rich object-oriented APIs. cdk8s apps synthesize into standard Kubernetes manifests which can then be applied to any Kubernetes cluster.\r\n\r\nThis plugin allows you to run automatic policy checks against synthesized manifests to ensure that they are configured according to your standards.\r\n\r\n## Specification\r\ncdk8s plugins come in the form of NPM packages.  \r\nWhen specified in the configuration file, the cdk8s CLI will automatically install and run a plugin. See the `Usage` section below for instructions.\r\n\r\n## Prerequisites\r\nTo use this plugin, the [cdk8s CLI](https://github.com/cdk8s-team/cdk8s-cli#a-command-line-interface-for-cdk-for-kubernetes) needs to be installed.\r\n\r\n## Usage\r\nIn your cdk8s configuration file, add a `validations` key with the following properties:\r\n- **package** - the name of the npm package to be used\r\n- **class** - the name of the class that implements the interface\r\n- **version** - the version of the package to be used\r\n- **properties** - additional properties to be used. Currently only `policy` is supported, used to set the desired Datree policy to be used for the policy check\r\n\r\nTo use this plugin, your configuration file should look like this:\r\n```\r\nlanguage: typescript\r\napp: ts-node main.ts\r\nvalidations:\r\n  - package: '@datreeio/datree-cdk8s'\r\n    class: DatreeValidation\r\n    version: 1.3.5\r\n    properties:\r\n      policy: cdk8s\r\n```\r\n\r\n## Customization\r\nYou can use any policy in your [Datree account](https://app.datree.io) for your checks, simply change the value of the `policy` key in your configuration file to the name of your desired policy:\r\n```\r\nproperties:\r\n  policy: default\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatreeio%2Fdatree-cdk8s","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatreeio%2Fdatree-cdk8s","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatreeio%2Fdatree-cdk8s/lists"}