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:
Nageshbansal
2025-10-24 14:11:45 +05:30
committed by GitHub
parent c91dad3dc6
commit 8675c66677
5 changed files with 6 additions and 5 deletions

View File

@@ -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

View File

@@ -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 -}}

View File

@@ -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: ""

View File

@@ -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:

View File

@@ -6,6 +6,7 @@ charts:
- charts/clickhouse
- charts/k8s-infra
- charts/signoz
- charts/postgresql
check-version-increment: false
helm-extra-args: --timeout 5m
chart-repos: