Skip to content

Commit

Permalink
[fix_image_pull_secrets_ns] added right ns (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
cohandv authored Jan 8, 2025
1 parent c4a8e13 commit 8e71efd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions charts/base/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: nullplatform-base
description: A Helm chart for deploying the nullplatform base dependencies applications using Kubernetes
type: application
version: 0.0.12
appVersion: "0.0.12"
version: 0.0.13
appVersion: "0.0.13"
dependencies:
- name: metrics-server
version: ^3.12.0 # Use the appropriate version you need
Expand Down
6 changes: 3 additions & 3 deletions charts/base/templates/image-pull-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
{{- $registry := required "The 'registry' field is required when imagePullSecrets is enabled" .Values.imagePullSecrets.registry }}
{{- $username := required "The 'username' field is required when imagePullSecrets is enabled" .Values.imagePullSecrets.username }}
{{- $password := required "The 'password' field is required when imagePullSecrets is enabled" .Values.imagePullSecrets.password }}

{{- $auth := printf "%s:%s" $username $password | b64enc }}
apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.imagePullSecrets.name }}
namespace: {{ .Release.Namespace }}
namespace: {{ .Values.namespaces.nullplatformApplications }}
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: {{ printf "{\"auths\": {\"%s\": {\"username\": \"%s\", \"password\": \"%s\", \"auth\": \"%s\"}}}" $registry $username $password (printf "%s:%s" $username $password | b64enc) | b64enc }}
.dockerconfigjson: {{ printf "{\"auths\": {\"%s\": {\"username\": \"%s\", \"password\": \"%s\", \"auth\": \"%s\"}}}" $registry $username $password $auth | b64enc }}
{{- end }}
4 changes: 2 additions & 2 deletions charts/cert-manager-config/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: nullplatform-cert-manager-config
description: A Helm chart for cert-manager configurations
type: application
version: 0.0.12
appVersion: "0.0.12"
version: 0.0.13
appVersion: "0.0.13"

0 comments on commit 8e71efd

Please sign in to comment.