-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
- Loading branch information
1 parent
e11c8fc
commit 181f2d0
Showing
38 changed files
with
192 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
--- | ||
tags: | ||
- ecs | ||
--- | ||
apiVersion: json.kyverno.io/v1alpha1 | ||
kind: Policy | ||
metadata: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"os" | ||
|
||
"github.com/kyverno/kyverno-json/pkg/policy" | ||
"sigs.k8s.io/yaml" | ||
) | ||
|
||
func main() { | ||
policies, err := policy.Load("./catalog") | ||
if err != nil { | ||
panic(err) | ||
} | ||
for i, policy := range policies { | ||
f, err := os.Create("website/docs/catalog/policies/" + fmt.Sprintf("%d.md", i)) | ||
if err != nil { | ||
panic(err) | ||
} | ||
defer f.Close() | ||
bytes, err := yaml.Marshal(policy) | ||
if err != nil { | ||
panic(err) | ||
} | ||
fmt.Fprintln(f, "# "+policy.Annotations["title.catalog.kyverno.io"]) | ||
fmt.Fprintln(f) | ||
fmt.Fprintln(f, policy.Annotations["description.catalog.kyverno.io"]) | ||
fmt.Fprintln(f) | ||
fmt.Fprintln(f, "## Manifest") | ||
fmt.Fprintln(f) | ||
fmt.Fprintln(f, "```yaml") | ||
if _, err := f.Write(bytes); err != nil { | ||
panic(err) | ||
} | ||
fmt.Fprintln(f, "```") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
nav: | ||
- Home: index.md | ||
- start | ||
- policies | ||
- Policy catalog: | ||
- catalog/index.md | ||
- playground | ||
- blog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
nav: | ||
- Blog: | ||
- index.md |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
nav: | ||
- 0.md | ||
- 1.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Policy 1 | ||
|
||
Policy 1 | ||
|
||
## Manifest | ||
|
||
```yaml | ||
apiVersion: json.kyverno.io/v1alpha1 | ||
kind: Policy | ||
metadata: | ||
annotations: | ||
description.catalog.kyverno.io: Policy 1 | ||
title.catalog.kyverno.io: Policy 1 | ||
creationTimestamp: null | ||
labels: | ||
s3.aws.catalog.kyverno.io: "" | ||
name: test | ||
spec: | ||
rules: | ||
- name: foo-bar | ||
validate: | ||
assert: | ||
all: | ||
- foo: | ||
/(bar)/: 10 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# | ||
|
||
|
||
|
||
## Manifest | ||
|
||
```yaml | ||
apiVersion: json.kyverno.io/v1alpha1 | ||
kind: Policy | ||
metadata: | ||
creationTimestamp: null | ||
name: test | ||
spec: | ||
rules: | ||
- name: foo-bar | ||
validate: | ||
assert: | ||
all: | ||
- foo: | ||
/(bar)/: 10 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
nav: | ||
- Playground: | ||
- index.md |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
nav: | ||
- Writing policies: | ||
- index.md | ||
- Basics: | ||
- api-version.md | ||
- match.md | ||
- assertion-trees.md | ||
- modifiers.md | ||
- explicit-bindings.md | ||
- escaping.md | ||
- commands | ||
- jp | ||
- apis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
nav: | ||
- APIs: | ||
- v1alpha1: kyverno-json.v1alpha1.md |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
nav: | ||
- Command Line Usage: | ||
- kyverno-json.md | ||
- kyverno-json_completion.md | ||
- kyverno-json_completion_bash.md | ||
- kyverno-json_completion_fish.md | ||
- kyverno-json_completion_powershell.md | ||
- kyverno-json_completion_zsh.md | ||
- kyverno-json_docs.md | ||
- kyverno-json_jp.md | ||
- kyverno-json_jp_function.md | ||
- kyverno-json_jp_parse.md | ||
- kyverno-json_jp_query.md | ||
- kyverno-json_scan.md | ||
- kyverno-json_version.md |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
nav: | ||
- JMESPath: | ||
- Overview: overview.md | ||
- Functions: functions.md |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
nav: | ||
- Getting Started: | ||
- index.md | ||
- install.md | ||
- quick-start.md |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters