Skip to content
Open
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
5 changes: 5 additions & 0 deletions charts/garnet/templates/service-headless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ metadata:
{{- end }}
spec:
clusterIP: None
ipFamilies:
{{- with .Values.service.ipFamilies }}
{{- toYaml . | nindent 4 }}
{{- end }}
ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }}
ports:
- port: {{ .Values.service.port }}
targetPort: {{ .Values.containers.port }}
Expand Down
5 changes: 5 additions & 0 deletions charts/garnet/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.type }}
ipFamilies:
{{- with .Values.service.ipFamilies }}
{{- toYaml . | nindent 4 }}
{{- end }}
ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }}
Comment on lines +13 to +17
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed by 6363cd2

ports:
- port: {{ .Values.service.port }}
targetPort: {{ .Values.containers.port }}
Expand Down
5 changes: 1 addition & 4 deletions charts/garnet/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,5 @@ metadata:
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if and .Values.serviceAccount.token (semverCompare ">=1.24-0" .Capabilities.KubeVersion.GitVersion) }}
secrets:
- name: {{ include "garnet.serviceAccountName" . }}-token
{{- end }}
automountServiceAccountToken: {{ .Values.serviceAccount.automount | default false }}
{{- end }}
Comment on lines +12 to 13
4 changes: 2 additions & 2 deletions charts/garnet/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ spec:
- name: garnet
containerPort: {{ .Values.containers.port }}
protocol: TCP
{{- with .Values.containers.livenessProbe }}
{{- with .Values.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.containers.readinessProbe }}
{{- with .Values.readinessProbe }}
readinessProbe:
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
14 changes: 0 additions & 14 deletions charts/garnet/templates/token.yaml

This file was deleted.

222 changes: 222 additions & 0 deletions charts/garnet/values.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"affinity": {
"description": "Affinity",
"type": "object"
},
"config": {
"type": "object",
"properties": {
"existingSecret": {
"description": "Garnet secret (if you want to use an existing secret). This secret must contains a key called 'garnet.conf'.",
"type": "string"
},
"garnetConf": {
"description": "The garnet.conf data content.",
"type": "string"
}
}
},
"containers": {
"type": "object",
"properties": {
"args": {
"description": "Containers args",
"type": "array"
},
"port": {
"description": "Containers port",
"type": "integer"
}
}
},
"dnsConfig": {
"description": "DNS config",
"type": "object"
},
"dnsPolicy": {
"description": "DNS policy",
"type": "string"
},
"extraVolumeMounts": {
"description": "Extra Volume Mounts",
"type": "array"
},
"extraVolumes": {
"description": "Extra Volumes",
"type": "array"
},
"fullnameOverride": {
"description": "Chart full name override",
"type": "string"
},
"image": {
"type": "object",
"properties": {
"pullPolicy": {
"description": "Image pull policy",
"type": "string"
},
"registry": {
"description": "Image registry",
"type": "string"
},
"repository": {
"description": "Image repository",
"type": "string"
},
"tag": {
"description": "Overrides the image tag whose default is the chart appVersion.",
"type": "string"
}
}
},
"imagePullSecrets": {
"description": "Image pull secrets",
"type": "array"
},
"initContainers": {
"description": "Init containers",
"type": "array"
},
"livenessProbe": {
"description": "Containers livenessProbe",
"type": "object"
},
"nameOverride": {
"description": "Chart name override",
"type": "string"
},
"nodeSelector": {
"description": "Node Selector labels",
"type": "object"
},
"persistence": {
"type": "object",
"properties": {
"enabled": {
"description": "persistence enabled",
"type": "boolean"
},
"storageDir": {
"description": "The Storage directory for tiered records (hybrid log), if storage tiering (--storage-tier) is enabled. Default: \"/data\"",
"type": "string"
}
}
},
"podAnnotations": {
"description": "Pod annotations",
"type": "object"
},
"podSecurityContext": {
"description": "Pod Security Context",
"type": "object"
},
"readinessProbe": {
"description": "Containers livenessProbe",
"type": "object"
},
"resources": {
"description": "Resources",
"type": "object"
},
"securityContext": {
"description": "Security Context",
"type": "object"
},
"service": {
"type": "object",
"properties": {
"annotations": {
"description": "Service annotations",
"type": "object"
},
"ipFamilies": {
"description": "Service ipFamilies",
"type": "array",
"items": {
"type": "string"
}
},
"ipFamilyPolicy": {
"description": "Service ipFamilyPolicy SingleStack|PreferDualStack|RequireDualStack",
"type": "string"
},
"port": {
"description": "Service port",
"type": "integer"
},
"type": {
"description": "Service type",
"type": "string"
}
}
},
"serviceAccount": {
"type": "object",
"properties": {
"annotations": {
"description": "Annotations to add to the service account",
"type": "object"
},
"automount": {
"description": "Automatically mount the service account token",
"type": "boolean"
},
"create": {
"description": "Specifies whether a service account should be created",
"type": "boolean"
},
"name": {
"description": "The name of the service account to use. If not set and create is true, a name is generated using the fullname template",
"type": "string"
}
}
},
"statefulSet": {
"type": "object",
"properties": {
"annotations": {
"description": "StatefulSet annotations",
"type": "object"
},
"replicas": {
"description": "StatefulSet replicas",
"type": "integer"
},
"revisionHistoryLimit": {
"description": "StatefulSet revisionHistoryLimit",
"type": "integer"
},
"updateStrategy": {
"type": "object",
"properties": {
"type": {
"description": "StatefulSet updateStrategy type",
"type": "string"
}
}
}
}
},
"tolerations": {
"description": "Tolerations",
"type": "array"
},
"volumeClaimTemplates": {
"type": "object",
"properties": {
"requestsStorage": {
"description": "Volume Claim Templates Requests Storage",
"type": "string"
},
"storageClassName": {
"description": "Volume Claim Templates Storage Class Name",
"type": "string"
}
}
}
}
}
19 changes: 13 additions & 6 deletions charts/garnet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ serviceAccount:
# -- The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
# -- Creates the token object
token: false
# -- Automatically mount the service account token
automount: false
Comment on lines +39 to +40
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The README.md will be updated & commited by the helm-chart github workflow.

Comment on lines +39 to +40
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed by e6d19b3


config:
# -- Garnet secret (if you want to use an existing secret).
Expand All @@ -58,10 +58,12 @@ containers:
args: []
# -- Containers port
port: 6379
# -- Containers livenessProbe
livenessProbe: {}
# -- Containers livenessProbe
readinessProbe: {}

# -- Containers livenessProbe
livenessProbe: {}

# -- Containers livenessProbe
readinessProbe: {}

# -- Init containers
initContainers: []
Expand Down Expand Up @@ -113,6 +115,11 @@ service:
type: ClusterIP
# -- Service port
port: 6379
# -- Service ipFamilies
ipFamilies:
- IPv4
# -- Service ipFamilyPolicy SingleStack|PreferDualStack|RequireDualStack
ipFamilyPolicy: SingleStack
Comment on lines +118 to +122
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new default is the kubernetes default behavior.


# -- Resources
resources: {}
Expand Down
Loading