Skip to content

Commit

Permalink
Add namespace and configmap to backup helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaGreben authored Jul 1, 2024
1 parent 9e8c4f8 commit 3b27ea2
Show file tree
Hide file tree
Showing 11 changed files with 59 additions and 13 deletions.
2 changes: 1 addition & 1 deletion aerospike-backup-service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 1.0.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
3 changes: 3 additions & 0 deletions aerospike-backup-service/examples/values/minio-values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
configmap:
create: true
namespace: "aerospike"
backupServiceConfig:
aerospike-clusters:
absCluster1:
Expand Down
12 changes: 12 additions & 0 deletions aerospike-backup-service/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{- if .Values.configmap.create }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "aerospike-backup-service.fullname" . }}-cm
namespace: {{ .Values.namespace | default "default" }}
labels:
{{- include "aerospike-backup-service.labels" . | nindent 4 }}
data:
aerospike-backup-service.yml: |-
{{- .Values.backupServiceConfig | toYaml | nindent 4 }}
{{- end }}
10 changes: 9 additions & 1 deletion aerospike-backup-service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "aerospike-backup-service.fullname" . }}
namespace: {{ .Values.namespace | default "default" }}
labels:
app: {{ include "aerospike-backup-service.fullname" . }}
{{- include "aerospike-backup-service.labels" . | nindent 4 }}
Expand Down Expand Up @@ -33,6 +34,7 @@ spec:
serviceAccountName: {{ include "aerospike-backup-service.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- if not .Values.configmap.create }}
initContainers:
- name: config-injector
image: busybox
Expand All @@ -44,7 +46,8 @@ spec:
volumeMounts:
- name: aerospike-backup-service-config
mountPath: /etc/aerospike-backup-service
{{ if .Values.initContainers }}
{{- end }}
{{- if .Values.initContainers }}
{{- toYaml .Values.initContainers | nindent 8 }}
{{- end }}
containers:
Expand Down Expand Up @@ -83,7 +86,12 @@ spec:
{{- end }}
volumes:
- name: aerospike-backup-service-config
{{- if .Values.configmap.create }}
configMap:
name: {{ include "aerospike-backup-service.fullname" . }}-cm
{{- else }}
emptyDir: {}
{{- end }}
{{- with .Values.volumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions aerospike-backup-service/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "aerospike-backup-service.fullname" . }}
namespace: {{ .Values.namespace | default "default" }}
labels:
{{- include "aerospike-backup-service.labels" . | nindent 4 }}
spec:
Expand Down
1 change: 1 addition & 0 deletions aerospike-backup-service/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ $fullName }}
namespace: {{ .Values.namespace | default "default" }}
labels:
{{- include "aerospike-backup-service.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
Expand Down
1 change: 1 addition & 0 deletions aerospike-backup-service/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ include "aerospike-backup-service.fullname" . }}
namespace: {{ .Values.namespace | default "default" }}
labels:
{{- include "aerospike-backup-service.labels" . | nindent 4 }}
spec:
Expand Down
1 change: 1 addition & 0 deletions aerospike-backup-service/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "aerospike-backup-service.serviceAccountName" . }}
namespace: {{ .Values.namespace | default "default" }}
labels:
{{- include "aerospike-backup-service.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
Expand Down
11 changes: 10 additions & 1 deletion aerospike-backup-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

# the helm chart will be deployed into the default namespace if namespace is not set.
namespace: ""

configmap:
# Specifies whether a configmap should be created with the backupServiceConfig.
# When false the backupServiceConfig will get created in the deployment init container.
# Set to false when needing to change the config at runtime.
create: true

#args: ["-c", "/etc/aerospike-backup-service/aerospike-backup-service.yml", "-r"]
args: []

Expand Down Expand Up @@ -63,7 +72,7 @@ backupServiceConfig: {}
# certfile: <path-to-certfile> # Optional
# storage:
# <storage-name>:
# type: <storage-type> # Mandatory Valid values (0 - Local, 1 - AWS S3)
# type: <storage-type> # Mandatory Valid values ("local" or "aws-s3")
# path: <root-path> # Mandatory
# s3-region: <s3-region> # Optional S3 region where the S3 backet resides
# s3-profile: <s3-profile> # Optional AWS profile name
Expand Down
Binary file added docs/aerospike-backup-service-1.0.0.tgz
Binary file not shown.
30 changes: 20 additions & 10 deletions docs/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@ entries:
aerospike-backup-service:
- apiVersion: v2
appVersion: 1.0.0
created: "2024-06-27T15:20:48.916065+03:00"
created: "2024-07-01T09:47:10.546105755-07:00"
description: A Helm chart for Kubernetes
digest: d17ae901ade8da8befc93957ee7ada6406ed80db618be94fa2cf8ff957f2f986
name: aerospike-backup-service
type: application
urls:
- https://aerospike.github.io/helm-charts/aerospike-backup-service-1.0.0.tgz
version: 1.0.0
- apiVersion: v2
appVersion: 1.0.0
created: "2024-07-01T09:47:10.545480555-07:00"
description: A Helm chart for Kubernetes
digest: 14cc5efd7357f65c0cf0f36be9e19a6276f9dc787ec131bbf602c725efbde3ab
name: aerospike-backup-service
Expand All @@ -14,7 +24,7 @@ entries:
aerospike-graph:
- apiVersion: v2
appVersion: 2.0.0
created: "2024-06-27T15:20:48.917247+03:00"
created: "2024-07-01T09:47:10.546473501-07:00"
description: Aerospike Graph Service
digest: 00e954c2ec6fe44c90cda43476070280e9c5d8bd0a4f875984928dfb2c3cbe05
keywords:
Expand All @@ -29,7 +39,7 @@ entries:
aerospike-jms-inbound:
- apiVersion: v2
appVersion: 3.0.0
created: "2024-06-27T15:20:48.918798+03:00"
created: "2024-07-01T09:47:10.5471334-07:00"
description: A Helm chart for Aerospike Connect for JMS - Inbound
digest: f664bee76244a49c19dabea859581e1d668e46f6aa2e0973c3e5ee6d8f689ba3
icon: https://avatars0.githubusercontent.com/u/2214313?s=200&v=4
Expand All @@ -49,7 +59,7 @@ entries:
aerospike-jms-outbound:
- apiVersion: v2
appVersion: 4.1.1
created: "2024-06-27T15:20:48.920163+03:00"
created: "2024-07-01T09:47:10.547767327-07:00"
description: A Helm chart for Aerospike Connect for JMS - Outbound
digest: d3f9f3cdd9bc57eaa945336f5c1c28c164b1c8a2c41f97eda9806276077c0a2c
icon: https://avatars0.githubusercontent.com/u/2214313?s=200&v=4
Expand All @@ -69,7 +79,7 @@ entries:
aerospike-kafka-outbound:
- apiVersion: v2
appVersion: 5.1.2
created: "2024-06-27T15:20:48.922977+03:00"
created: "2024-07-01T09:47:10.548968473-07:00"
description: A Helm chart for Aerospike Connect for Kafka - Outbound
digest: c4b04092fe2c0857d26957c6b95b317c46063add104777b481cb9291c20b85ae
icon: https://avatars0.githubusercontent.com/u/2214313?s=200&v=4
Expand All @@ -88,7 +98,7 @@ entries:
version: 1.0.1
- apiVersion: v2
appVersion: 5.0.0
created: "2024-06-27T15:20:48.921726+03:00"
created: "2024-07-01T09:47:10.548365066-07:00"
description: A Helm chart for Aerospike Connect for Kafka - Outbound
digest: 46b6cff86371f5cf40c64a93eacd5eea402f9c572d4144ad50f174129479de77
icon: https://avatars0.githubusercontent.com/u/2214313?s=200&v=4
Expand All @@ -108,7 +118,7 @@ entries:
aerospike-pulsar-outbound:
- apiVersion: v2
appVersion: 3.2.1
created: "2024-06-27T15:20:48.924152+03:00"
created: "2024-07-01T09:47:10.549870871-07:00"
description: A Helm chart for Aerospike Connect for Pulsar - Outbound
digest: 8fdf247a0abb72026178a316419c83e1929043bf913b962a984d42f7b8cfdb6b
icon: https://avatars0.githubusercontent.com/u/2214313?s=200&v=4
Expand All @@ -128,7 +138,7 @@ entries:
aerospike-vector-search:
- apiVersion: v2
appVersion: 0.4.0
created: "2024-06-27T15:20:48.926983+03:00"
created: "2024-07-01T09:47:10.556460913-07:00"
description: A Helm chart for Aerospike Vector Search
digest: 7c25aa6ee63ed4fe42049cf170795bb5c3cf90fc4f5222e40c09d54a8dbf7ec1
icon: https://avatars0.githubusercontent.com/u/2214313?s=200&v=4
Expand All @@ -145,7 +155,7 @@ entries:
version: 0.3.0
- apiVersion: v2
appVersion: 0.4.0
created: "2024-06-27T15:20:48.925968+03:00"
created: "2024-07-01T09:47:10.554233276-07:00"
description: A Helm chart for Aerospike Vector Search
digest: f66c0163471586d199efa4c88ce73a45978d17071ba8e59ba6ff8fabeebf4876
icon: https://avatars0.githubusercontent.com/u/2214313?s=200&v=4
Expand All @@ -160,4 +170,4 @@ entries:
urls:
- https://aerospike.github.io/helm-charts/aerospike-vector-search-0.1.0.tgz
version: 0.1.0
generated: "2024-06-27T15:20:48.91431+03:00"
generated: "2024-07-01T09:47:10.544750097-07:00"

0 comments on commit 3b27ea2

Please sign in to comment.