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

fix: Use Deployment selector for create-default-pdb #786

Merged
merged 1 commit into from
Dec 2, 2023
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
6 changes: 3 additions & 3 deletions other/b-d/create-default-pdb/artifacthub-pkg.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: create-default-pdb
version: 1.0.0
version: 1.0.1
displayName: Add Pod Disruption Budget
createdAt: "2023-04-10T20:30:03.000Z"
description: >-
Expand All @@ -13,9 +13,9 @@ keywords:
- Sample
readme: |
A PodDisruptionBudget limits the number of Pods of a replicated application that are down simultaneously from voluntary disruptions. For example, a quorum-based application would like to ensure that the number of replicas running is never brought below the number needed for a quorum. As an application owner, you can create a PodDisruptionBudget (PDB) for each application. This policy will create a PDB resource whenever a new Deployment is created.

Refer to the documentation for more details on Kyverno annotations: https://artifacthub.io/docs/topics/annotations/kyverno/
annotations:
kyverno/category: "Sample"
kyverno/subject: "Deployment"
digest: 70923b5a8374896a7092cdda3effd04d66316bec4e41afc8c46a214806d1158d
digest: 907d2448433a9e51ebe3836557ab0328ebb928ddd1495e04a86097495d733de2
4 changes: 1 addition & 3 deletions other/b-d/create-default-pdb/create-default-pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,4 @@ spec:
data:
spec:
minAvailable: 1
selector:
matchLabels:
"{{request.object.metadata.labels}}"
selector: "{{request.object.spec.selector}}"
1 change: 0 additions & 1 deletion other/b-d/create-default-pdb/pdb-generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ spec:
selector:
matchLabels:
app: busybox
foo: bar
Loading