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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-yaml
exclude: "^charts/.*/templates/.*\\.ya?ml$"
exclude: "^templates/.*\\.ya?ml$"
- id: end-of-file-fixer
- id: trailing-whitespace

Expand All @@ -17,5 +17,5 @@ repos:
hooks:
- id: helm-docs-container
args:
- --chart-search-root=charts
- --chart-search-root=.
- --sort-values-order=file
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: base
description: Base Helm chart for Kubernetes - fully values-driven.
type: application
version: 0.1.0
version: 0.1.1
maintainers:
- name: bonddim
sources:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# base

![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

Base Helm chart for Kubernetes - fully values-driven.

Expand All @@ -12,7 +12,7 @@ Base Helm chart for Kubernetes - fully values-driven.

## Source Code

* <https://github.com/bonddim/helm-charts>
* <https://github.com/bonddim/helm-base-chart>

## Values

Expand All @@ -38,7 +38,7 @@ Base Helm chart for Kubernetes - fully values-driven.
|-----|------|---------|-------------|
| annotations | object | `{}` | Additional annotations on the Deployment resource itself. |
| labels | object | `{}` | Additional labels on the Deployment resource itself. |
| replicas | int | `nil` | Number of pod replicas. Omit (or set to 0) when autoscaling.enabled=true |
| replicas | int | `nil` | Number of pod replicas. Ignored when autoscaling.enabled=true. Must be >= 0 if specified. null by default, which defaults to 1 and not controlled by Helm. |
| strategy | object | `{}` | Deployment update strategy. e.g. { type: RollingUpdate, rollingUpdate: { maxSurge: 1, maxUnavailable: 0 } } |
| revisionHistoryLimit | int | `nil` | Number of old ReplicaSets to retain. |
| podAnnotations | object | `{}` | Additional annotations on the Pod template. |
Expand Down
6 changes: 2 additions & 4 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ metadata:
labels: {{- include "base.labels" (dict "labels" .Values.labels "context" .) | nindent 4 }}
name: {{ include "base.fullname" . }}
spec:
{{- if not .Values.autoscaling.enabled }}
{{- with .Values.replicas }}
replicas: {{ . }}
{{- end }}
{{- if and (not .Values.autoscaling.enabled) (ge (int .Values.replicas) 0) }}
replicas: {{ .Values.replicas }}
{{- end }}
{{- with .Values.revisionHistoryLimit }}
revisionHistoryLimit: {{ . }}
Expand Down
3 changes: 2 additions & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ annotations: {}
# -- Additional labels on the Deployment resource itself.
# @section -- Workload parameters
labels: {}
# -- (int) Number of pod replicas. Omit (or set to 0) when autoscaling.enabled=true
# -- (int) Number of pod replicas. Ignored when autoscaling.enabled=true.
# Must be >= 0 if specified. null by default, which defaults to 1 and not controlled by Helm.
# @section -- Workload parameters
replicas: null
# -- Deployment update strategy. e.g. { type: RollingUpdate, rollingUpdate: { maxSurge: 1, maxUnavailable: 0 } }
Expand Down
Loading