Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update examples (#643) #652

Merged
merged 1 commit into from
Dec 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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