Skip to content

Commit

Permalink
fix(vcluster): correctly template dockerconfig (#101)
Browse files Browse the repository at this point in the history
* fix(vcluster): correctly template dockerconfig
  • Loading branch information
oliverbaehler authored Jun 28, 2023
1 parent fc9c25e commit 91b52d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/vcluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: vcluster
description: Virtual Kubernetes Cluster
type: application
version: 0.4.4
version: 0.4.5
appVersion: 0.1.0
keywords:
- vcluster
Expand Down
2 changes: 1 addition & 1 deletion charts/vcluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

__This Chart is under active development! We try to improve documentation and values consistency over time__

![Version: 0.4.4](https://img.shields.io/badge/Version-0.4.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.4.5](https://img.shields.io/badge/Version-0.4.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

Virtual Kubernetes Cluster

Expand Down
2 changes: 1 addition & 1 deletion charts/vcluster/templates/pkg/_images.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ kube-system
{{- define "pkg.images.dockerconfigjson" -}}
{{- if and (include "pkg.images.registry.set" $) (include "pkg.images.registry.auth" $) -}}
{{- $registry := $.Values.global.registry -}}
{{- printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" (include "pkg.images.registry.url" $) $registry.creds.username $registry.creds.password (default "" $registry.creds.email) (printf "%s:%s" .username .password | b64enc) | b64enc }}
{{- printf "{\"auths\":{\"%s\":{\"auth\":\"%s\"}}}" (include "pkg.images.registry.url" $) (printf "%s:%s" $registry.creds.username $registry.creds.password | b64enc) | b64enc }}
{{- end -}}
{{- end -}}

Expand Down

0 comments on commit 91b52d4

Please sign in to comment.