Skip to content
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
2 changes: 1 addition & 1 deletion env-config/challenge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ objectives:
title: "App Running"
description: "The application must be running and healthy"
order: 2
type: condition
type: status
spec:
target:
kind: Pod
Expand Down
7 changes: 0 additions & 7 deletions env-config/manifests/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@ spec:
echo "App is healthy - $(date)"
sleep 30
done
# NOTE: Environment variables need to be added here from a ConfigMap
# env:
# - name: APP_NAME
# valueFrom:
# configMapKeyRef:
# name: app-config
# key: app_name
resources:
requests:
cpu: "25m"
Expand Down
20 changes: 13 additions & 7 deletions partial-outage/policies/avoid-deleting-egress-policy.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
apiVersion: kyverno.io/v1
kind: Policy
metadata:
name: avoid-deny-delete-networkpolicy
name: protect-deny-all-networkpolicy
annotations:
argocd.argoproj.io/sync-wave: "2"
spec:
validationFailureAction: enforce
validationFailureAction: Enforce
background: false
rules:
- name: block-delete-deny-all
match:
resources:
kinds: ["NetworkPolicy"]
names: ["deny-all"]
any:
- resources:
kinds:
- NetworkPolicy
names:
- deny-all
operations:
- DELETE
validate:
message: "You are not allowed to delete the default NetworkPolicy"
deny: {}
message: "Deleting the deny-all NetworkPolicy is not allowed. Add ingress rules instead."
deny: {}