Skip to content

Commit

Permalink
Feature_add_deployment_annotations
Browse files Browse the repository at this point in the history
- Add deployment annotation feature
- Update chart version
  • Loading branch information
jgalais committed Oct 25, 2024
1 parent b95300c commit 6799ae9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/sftpgo/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
type: application
name: sftpgo
version: 0.22.0
version: 0.23.0
appVersion: 2.5.4
kubeVersion: ">=1.16.0-0"
description: Fully featured and highly configurable SFTP server with optional FTP/S and WebDAV support.
Expand All @@ -20,7 +20,7 @@ maintainers:
annotations:
artifacthub.io/changes: |
- kind: changed
description: Updated sftpgo to 2.5.4
description: Add deployment annotations
artifacthub.io/images: |
- name: sftpgo
image: ghcr.io/drakkan/sftpgo:v2.5.4
Expand Down
3 changes: 2 additions & 1 deletion charts/sftpgo/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# sftpgo

![version: 0.22.0](https://img.shields.io/badge/version-0.22.0-informational?style=flat-square) ![type: application](https://img.shields.io/badge/type-application-informational?style=flat-square) ![app version: 2.5.4](https://img.shields.io/badge/app%20version-2.5.4-informational?style=flat-square) ![kube version: >=1.16.0-0](https://img.shields.io/badge/kube%20version->=1.16.0--0-informational?style=flat-square) [![artifact hub](https://img.shields.io/badge/artifact%20hub-sftpgo-informational?style=flat-square)](https://artifacthub.io/packages/helm/sagikazarmark/sftpgo)
![version: 0.23.0](https://img.shields.io/badge/version-0.23.0-informational?style=flat-square) ![type: application](https://img.shields.io/badge/type-application-informational?style=flat-square) ![app version: 2.5.4](https://img.shields.io/badge/app%20version-2.5.4-informational?style=flat-square) ![kube version: >=1.16.0-0](https://img.shields.io/badge/kube%20version->=1.16.0--0-informational?style=flat-square) [![artifact hub](https://img.shields.io/badge/artifact%20hub-sftpgo-informational?style=flat-square)](https://artifacthub.io/packages/helm/sagikazarmark/sftpgo)

Fully featured and highly configurable SFTP server with optional FTP/S and WebDAV support.

Expand Down Expand Up @@ -121,6 +121,7 @@ require at least one port.
| serviceAccount.create | bool | `true` | Enable service account creation. |
| serviceAccount.annotations | object | `{}` | Annotations to be added to the service account. |
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template. |
| deploymentAnnotations | object | `{}` | Annotations to be added to deployment. |
| podAnnotations | object | `{}` | Annotations to be added to pods. |
| podSecurityContext | object | `{"fsGroup":1000}` | Pod [security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod). See the [API reference](https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#security-context) for details. |
| securityContext | object | `{}` | Container [security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container). See the [API reference](https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#security-context-1) for details. |
Expand Down
4 changes: 4 additions & 0 deletions charts/sftpgo/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ metadata:
name: {{ include "sftpgo.fullname" . }}
labels:
{{- include "sftpgo.labels" . | nindent 4 }}
{{- with .Values.deploymentAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
Expand Down
3 changes: 3 additions & 0 deletions charts/sftpgo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template.
name: ""

# -- Annotations to be added to deployment.
deploymentAnnotations: {}

# -- Annotations to be added to pods.
podAnnotations: {}

Expand Down

0 comments on commit 6799ae9

Please sign in to comment.