Skip to content

Commit a9b1977

Browse files
committed
fix(infra): Address final PR review items
1. Fix MinIO credential validation - Explicitly check for empty strings in addition to nil checks - Improved error messages to clarify non-empty requirement - Ensures validation catches empty string values 2. Remove .terraform.lock.hcl files - Removed 3 .terraform.lock.hcl files from git tracking - Added .terraform.lock.hcl to .gitignore - These files are provider-specific and should not be committed 3. Verify Chart.yaml exists - Confirmed Chart.yaml is present and properly configured - Chart metadata is correct (version 0.8.0, proper description) All review items from PR #679 have been addressed.
1 parent 63eca2c commit a9b1977

File tree

5 files changed

+5
-109
lines changed

5 files changed

+5
-109
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ tfplan
130130
*.tfvars
131131
!*.tfvars.example
132132
*.auto.tfvars
133+
.terraform.lock.hcl
133134

134135
# Helm
135136
deployment/helm/*/charts/

deployment/helm/rag-modulo/templates/minio-statefulset.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{{- if .Values.minio.enabled }}
22
{{- if not .Values.minio.auth.existingSecret }}
3-
{{- if not .Values.minio.auth.rootUser }}
4-
{{- fail "MinIO rootUser must be provided via .Values.minio.auth.rootUser or .Values.minio.auth.existingSecret must be set" }}
3+
{{- if or (not .Values.minio.auth.rootUser) (eq .Values.minio.auth.rootUser "") }}
4+
{{- fail "MinIO rootUser must be provided via .Values.minio.auth.rootUser (non-empty) or .Values.minio.auth.existingSecret must be set" }}
55
{{- end }}
6-
{{- if not .Values.minio.auth.rootPassword }}
7-
{{- fail "MinIO rootPassword must be provided via .Values.minio.auth.rootPassword or .Values.minio.auth.existingSecret must be set" }}
6+
{{- if or (not .Values.minio.auth.rootPassword) (eq .Values.minio.auth.rootPassword "") }}
7+
{{- fail "MinIO rootPassword must be provided via .Values.minio.auth.rootPassword (non-empty) or .Values.minio.auth.existingSecret must be set" }}
88
{{- end }}
99
---
1010
# MinIO Secret (credentials)

deployment/terraform/environments/dev/.terraform.lock.hcl

Lines changed: 0 additions & 35 deletions
This file was deleted.

deployment/terraform/modules/ibm-cloud/roks-cluster/.terraform.lock.hcl

Lines changed: 0 additions & 35 deletions
This file was deleted.

deployment/terraform/roks-deployment/.terraform.lock.hcl

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)