https://github.com/cartyc/cloudrun-krm-allowed-repo
https://github.com/cartyc/cloudrun-krm-allowed-repo
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cartyc/cloudrun-krm-allowed-repo
- Owner: cartyc
- Created: 2023-09-11T15:56:59.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-11T16:00:06.000Z (almost 3 years ago)
- Last Synced: 2025-07-06T18:08:32.449Z (about 1 year ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cloud-run-policies
## Description
This is an example repository demonstrating the use of the Kpt gatekeeper function to prevent the deployment of a KCC based Cloud Run instance from deploying with a disallowed container.
This is a modification of the [k8s-allowed-repo](https://github.com/open-policy-agent/gatekeeper-library/tree/master/library/general/allowedrepos) policy.
## Usage
### Fetch the package
`kpt pkg get REPO_URI[.git]/PKG_PATH[@VERSION] cloud-run-policies`
Details: https://kpt.dev/reference/cli/pkg/get/
### View package content
`kpt pkg tree cloud-run-policies`
Details: https://kpt.dev/reference/cli/pkg/tree/
### Apply the package
```
kpt fn render
```