Skip to content

Commit

Permalink
Update examples (carvel-dev#643)
Browse files Browse the repository at this point in the history
* Add gatekeeper v3.10.0 to examples

* Add istio v1.16.0 to examples

Remove older versions of istio

* Add knative v1.8.0 to examples

Remove older versions
  • Loading branch information
praveenrewar authored Nov 22, 2022
1 parent fcb45f0 commit 6e27d18
Show file tree
Hide file tree
Showing 33 changed files with 34,357 additions and 72,792 deletions.
13 changes: 13 additions & 0 deletions examples/gatekeeper-v3.10.0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Downloaded via

```bash
ytt \
-f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/release-3.10/deploy/gatekeeper.yaml \
-f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/v3.10.0/example/templates/k8srequiredlabels_template.yaml \
-f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/v3.10.0/example/constraints/all_pod_must_have_gatekeeper_namespaceselector.yaml \
-f examples/gatekeeper-v3.10.0/exists.yml \
-f examples/gatekeeper-v3.10.0/overlay.yml > examples/gatekeeper-v3.10.0/config.yml
```

- `exists.yml` is used to wait for CRD created by gatekeeper controller
- `overlay.yml` is used with `ytt` to add ordering
3,590 changes: 3,590 additions & 0 deletions examples/gatekeeper-v3.10.0/config.yml

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions examples/gatekeeper-v3.10.0/exists.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: k8srequiredlabels.constraints.gatekeeper.sh
annotations:
kapp.k14s.io/exists: ""
spec:
group: constraints.gatekeeper.sh
versions:
- name: v1beta1
names:
kind: K8sRequiredLabels
55 changes: 55 additions & 0 deletions examples/gatekeeper-v3.10.0/overlay.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#@ load("@ytt:overlay", "overlay")

#@overlay/match by=overlay.subset({"metadata":{"name":"gatekeeper-system"}})
---
metadata:
#@overlay/match missing_ok=True
annotations:
#@overlay/match missing_ok=True
kapp.k14s.io/change-group: namespace
---


#@ load("@ytt:overlay", "overlay")

#@overlay/match by=overlay.subset({"metadata":{"name":"gatekeeper-validating-webhook-configuration"}})
---
metadata:
#@overlay/match missing_ok=True
annotations:
#@overlay/match missing_ok=True
kapp.k14s.io/change-rule: upsert after upserting namespace
---


#@ load("@ytt:overlay", "overlay")

#@overlay/match by=overlay.subset({"kind": "Deployment", "metadata":{"name":"gatekeeper-controller-manager"}})
---
metadata:
#@overlay/match missing_ok=True
annotations:
#@overlay/match missing_ok=True
kapp.k14s.io/change-group: deployment
---

#@ load("@ytt:overlay", "overlay")

#@overlay/match by=overlay.subset({"kind": "ConstraintTemplate", "metadata":{"name":"k8srequiredlabels"}})
---
metadata:
#@overlay/match missing_ok=True
annotations:
#@overlay/match missing_ok=True
kapp.k14s.io/change-rule: upsert after upserting deployment
---

#@ load("@ytt:overlay", "overlay")

#@overlay/match by=overlay.subset({"kind": "CustomResourceDefinition", "metadata":{"name":"k8srequiredlabels.constraints.gatekeeper.sh"}})
---
metadata:
#@overlay/match missing_ok=True
annotations:
#@overlay/match missing_ok=True
kapp.k14s.io/change-rule: upsert after upserting deployment
8 changes: 0 additions & 8 deletions examples/istio-v1.0.2/README.md

This file was deleted.

14 changes: 0 additions & 14 deletions examples/istio-v1.0.2/cluster-ip-ingressgw.yml

This file was deleted.

39 changes: 0 additions & 39 deletions examples/istio-v1.0.2/config.yml

This file was deleted.

Loading

0 comments on commit 6e27d18

Please sign in to comment.