From 51fc66816a992e048633cc3b9299df7b0ff00687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Wed, 1 Nov 2023 23:18:22 +0100 Subject: [PATCH] chore: remove example catalog policy (#178) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Charles-Edouard Brétéché --- catalog/aws/policy-1.yaml | 17 ------- go.mod | 2 +- website/docs/catalog/policies/aws/policy-1.md | 50 ------------------- website/mkdocs.yaml | 1 - 4 files changed, 1 insertion(+), 69 deletions(-) delete mode 100644 catalog/aws/policy-1.yaml delete mode 100644 website/docs/catalog/policies/aws/policy-1.md diff --git a/catalog/aws/policy-1.yaml b/catalog/aws/policy-1.yaml deleted file mode 100644 index 3f5a6ac3..00000000 --- a/catalog/aws/policy-1.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: json.kyverno.io/v1alpha1 -kind: ValidatingPolicy -metadata: - name: test - labels: - s3.aws.tags.kyverno.io: '' - annotations: - title.policy.kyverno.io: Policy 1 - description.policy.kyverno.io: Policy 1 -spec: - rules: - - name: foo-bar - assert: - all: - - check: - foo: - /(bar)/: 10 diff --git a/go.mod b/go.mod index 971faacf..5cd3974a 100644 --- a/go.mod +++ b/go.mod @@ -18,7 +18,6 @@ require ( go.uber.org/multierr v1.11.0 golang.org/x/crypto v0.14.0 gopkg.in/inf.v0 v0.9.1 - gopkg.in/yaml.v2 v2.4.0 gopkg.in/yaml.v3 v3.0.1 gotest.tools v2.2.0+incompatible k8s.io/apimachinery v0.28.3 @@ -126,6 +125,7 @@ require ( google.golang.org/genproto/googleapis/rpc v0.0.0-20231009173412-8bfb1ae86b6c // indirect google.golang.org/grpc v1.59.0 // indirect google.golang.org/protobuf v1.31.0 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect k8s.io/api v0.28.3 // indirect k8s.io/apiextensions-apiserver v0.28.1 // indirect k8s.io/apiserver v0.28.3 // indirect diff --git a/website/docs/catalog/policies/aws/policy-1.md b/website/docs/catalog/policies/aws/policy-1.md deleted file mode 100644 index b2df416d..00000000 --- a/website/docs/catalog/policies/aws/policy-1.md +++ /dev/null @@ -1,50 +0,0 @@ ---- -tags: -- aws -- aws/s3 ---- -# Policy 1 - -## Description - -Policy 1 - -## Install - -### In cluster - -```bash -kubectl apply -f https://raw.githubusercontent.com/kyverno/kyverno-json/main/catalog/aws/policy-1.yaml -``` - -### Download locally - -```bash -curl -O https://raw.githubusercontent.com/kyverno/kyverno-json/main/catalog/aws/policy-1.yaml -``` - -## Manifest - -[Original policy](https://github.com/kyverno/kyverno-json/blob/main/catalog/aws/policy-1.yaml) -[Raw](https://raw.githubusercontent.com/kyverno/kyverno-json/main/catalog/aws/policy-1.yaml) - -```yaml -apiVersion: json.kyverno.io/v1alpha1 -kind: ValidatingPolicy -metadata: - annotations: - description.policy.kyverno.io: Policy 1 - title.policy.kyverno.io: Policy 1 - creationTimestamp: null - labels: - s3.aws.tags.kyverno.io: "" - name: test -spec: - rules: - - assert: - all: - - check: - foo: - /(bar)/: 10 - name: foo-bar -``` diff --git a/website/mkdocs.yaml b/website/mkdocs.yaml index 6e36295b..f0108272 100644 --- a/website/mkdocs.yaml +++ b/website/mkdocs.yaml @@ -39,7 +39,6 @@ nav: - Policies: - catalog/index.md - All: - - catalog/policies/aws/policy-1.md - catalog/policies/ecs/ecs-cluster-enable-logging.md - catalog/policies/ecs/ecs-cluster-required-container-insights.md - catalog/policies/ecs/ecs-service-public-ip.md