[go: nahoru, domu]

Skip to content

Commit

Permalink
feat(bundler): add feature to generate a flat i.e. folder-less bundle (
Browse files Browse the repository at this point in the history
…#423)

Co-authored-by: Awais Malik <awmalik@google.com>
  • Loading branch information
g-awmalik and g-awmalik committed Feb 10, 2022
1 parent 9f88719 commit 45c1680
Show file tree
Hide file tree
Showing 12 changed files with 2,505 additions and 12 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ This repo contains a library of constraint templates and sample constraints.
For information on setting up Config Validator to secure your environment, see the [User Guide](./docs/user_guide.md).

## Initializing a policy library
You can easily set up a new (local) policy library by downloading a [bundle](./docs/index.md#policy-bundles) using [kpt](https://googlecontainertools.github.io/kpt/).
You can easily set up a new (local) policy library by downloading a [bundle](./docs/index.md#policy-bundles) using [kpt](https://kpt.dev/).

Download the full policy library and install the [Forseti bundle](./docs/bundles/forseti-security.md):
```
export BUNDLE=forseti-security
kpt pkg get https://github.com/GoogleCloudPlatform/policy-library.git ./policy-library
kpt fn source policy-library/samples/ | \
kpt fn run --image gcr.io/config-validator/get-policy-bundle:latest -- bundle=$BUNDLE | \
kpt fn sink policy-library/policies/constraints/
kpt fn eval - --image gcr.io/config-validator/get-policy-bundle:latest -- bundle=$BUNDLE | \
kpt fn sink policy-library/policies/constraints/$BUNDLE
```

Once you have initialized a library, you might want to save it to [git](./docs/user_guide.md#https://github.com/GoogleCloudPlatform/policy-library/blob/master/docs/user_guide.md#get-started-with-the-policy-library-repository).
Expand Down
4 changes: 2 additions & 2 deletions bundler/dist/generate_docs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bundler/dist/generate_docs.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions bundler/dist/get_policy_bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bundler/dist/get_policy_bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 45c1680

Please sign in to comment.