Skip to content

Commit

Permalink
fix: add example in the template of policy
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Mar 26, 2023
1 parent 1e245a5 commit 1402632
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions pkg/controller/initpolicy/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,25 @@ const configTemplate = `---
# aqua Policy
# https://aquaproj.github.io/
registries:
- type: standard
ref: semver(">= 3.0.0")
# Example
# - name: local
# type: local
# path: registry.yaml
# - name: aqua-registry
# type: github_content
# repo_owner: aquaproj
# repo_name: aqua-registry
# ref: semver(">= 3.0.0") # ref is optional
# path: registry.yaml
- type: standard
ref: semver(">= 3.0.0")
packages:
- registry: standard
# Example
# - registry: local # allow all packages in the Registry
# - name: cli/cli # allow only a specific package. The default value of registry is "standard"
# - name: cli/cli
# version: semver(">= 2.0.0") # version is optional
- registry: standard
`

type Controller struct {
Expand Down

0 comments on commit 1402632

Please sign in to comment.