Skip to content

Commit

Permalink
Merge pull request #61 from adberger/master
Browse files Browse the repository at this point in the history
[manifest]: Add PodDisruptionBudget v1 to manifest helm chart
  • Loading branch information
adberger authored Oct 11, 2022
2 parents 9dad7dd + 9124cb8 commit 9ba15ab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/manifests/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: manifests
description: "Bedag's Manifest chart. Library full of basic kubernetes manifests."
type: library
version: 0.8.1
version: 0.8.2
icon: "https://www.bedag.ch/wGlobal/wGlobal/layout/images/logo.svg"
keywords:
- Bedag
Expand Down
4 changes: 2 additions & 2 deletions charts/manifests/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Manifests Library

![Version: 0.8.1](https://img.shields.io/badge/Version-0.8.1-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square)
![Version: 0.8.2](https://img.shields.io/badge/Version-0.8.2-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square)

This library's purpose is to have more flexibility as chart author but at the same time have kubernetes manifests managed in a central library. This way you can avoid big surprises when Kubernetes has breaking changes in any of their APIs. Currently we support a base set of resources. Resources may be added as soon as we see or get a request that there's a need for it. This chart is still under development and testing, since it's rather complex. Feel free to use it. Our goal is to get it as reliable as possible.

## Maintainers

| Name | Email | Url |
| ---- | ------ | --- |
| SRE | [email protected] | |
| SRE | <[email protected]> | |

# Install Chart

Expand Down
4 changes: 4 additions & 0 deletions charts/manifests/templates/manifests/_podDisruptionBudget.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ kind: PodDisruptionBudget
{{- if $pdb.apiVersion }}
apiVersion: {{ $pdb.apiVersion }}
{{- else }}
{{- if semverCompare ">=1.21-0" (include "lib.utils.common.capabilities" $context) }}
apiVersion: policy/v1
{{- else }}
apiVersion: policy/v1beta1
{{- end }}
{{- end }}
metadata:
name: {{ include "bedag-lib.utils.common.fullname" . }}
Expand Down

0 comments on commit 9ba15ab

Please sign in to comment.