mirror of
https://github.com/SigNoz/charts.git
synced 2025-12-18 20:47:48 +00:00
chore(postgresql): Enable chart-lint and chart-testing for charts/postgresql (#779)
Related: https://github.com/SigNoz/platform-pod/issues/1220 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chart Release** * PostgreSQL Helm chart version updated to 0.0.2 * **Configuration Updates** * Image registry and pull secrets handling refined * Storage class configuration logic streamlined * PostgreSQL chart added to automated testing validation <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
apiVersion: v2
|
||||
name: postgresql
|
||||
version: 0.0.1
|
||||
version: 0.0.2
|
||||
appVersion: 15.0.0
|
||||
description: A Helm Chart for PostgreSQL
|
||||
type: application
|
||||
|
||||
@@ -62,7 +62,7 @@ ServiceAccount name
|
||||
{{- end -}}
|
||||
|
||||
{{- define "postgresql.imagePullSecrets" -}}
|
||||
{{- if or .Values.global.imagePullSecrets .Values.imagePullSecrets }}
|
||||
{{- if .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- range .Values.global.imagePullSecrets }}
|
||||
- name: {{ . }}
|
||||
@@ -77,7 +77,7 @@ imagePullSecrets:
|
||||
Return the proper signoz image name
|
||||
*/}}
|
||||
{{- define "postgresql.image" -}}
|
||||
{{- $registryName := default .Values.image.registry .Values.global.imageRegistry -}}
|
||||
{{- $registryName := .Values.image.registry -}}
|
||||
{{- $repositoryName := .Values.image.repository -}}
|
||||
{{- $tag := default .Chart.AppVersion .Values.image.tag | toString -}}
|
||||
{{- if $registryName -}}
|
||||
|
||||
@@ -149,7 +149,7 @@ spec:
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.persistence.size }}
|
||||
{{- $storageClass := default .Values.persistence.storageClass .Values.global.storageClass -}}
|
||||
{{- $storageClass := .Values.persistence.storageClass -}}
|
||||
{{- if $storageClass -}}
|
||||
{{- if (eq "-" $storageClass) }}
|
||||
storageClassName: ""
|
||||
|
||||
@@ -188,4 +188,4 @@ serviceAccount:
|
||||
annotations: {}
|
||||
# serviceAccount.name -- The name of the service account to use. If not set and `create` is true, a name is generated.
|
||||
# @default -- null
|
||||
name:
|
||||
name:
|
||||
|
||||
Reference in New Issue
Block a user