Skip to content

Commit ea648b5

Browse files
authored
Merge pull request #1895 from helm/revert-1696-format-template-example
Revert "Format template example"
2 parents 374cc3e + 86d81ac commit ea648b5

File tree

8 files changed

+26
-26
lines changed

8 files changed

+26
-26
lines changed

docs/howto/charts_tips_and_tricks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ imageCredentials:
169169
We then define our helper template as follows:
170170
```
171171
{{- define "imagePullSecret" }}
172-
{{- with .Values.imageCredentials }}
173-
{{- printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" .registry .username .password .email (printf "%s:%s" .username .password | b64enc) | b64enc }}
174-
{{- end }}
172+
{{- with .Values.imageCredentials }}
173+
{{- printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" .registry .username .password .email (printf "%s:%s" .username .password | b64enc) | b64enc }}
174+
{{- end }}
175175
{{- end }}
176176
```
177177

i18n/de/docusaurus-plugin-content-docs/version-3/howto/charts_tips_and_tricks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ Wir definieren dann unsere Hilfsvorlage wie folgt:
168168

169169
```
170170
{{- define "imagePullSecret" }}
171-
{{- with .Values.imageCredentials }}
172-
{{- printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" .registry .username .password .email (printf "%s:%s" .username .password | b64enc) | b64enc }}
173-
{{- end }}
171+
{{- with .Values.imageCredentials }}
172+
{{- printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" .registry .username .password .email (printf "%s:%s" .username .password | b64enc) | b64enc }}
173+
{{- end }}
174174
{{- end }}
175175
```
176176

i18n/es/docusaurus-plugin-content-docs/version-3/howto/charts_tips_and_tricks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ Luego definimos nuestra plantilla auxiliar de la siguiente manera:
181181

182182
```
183183
{{- define "imagePullSecret" }}
184-
{{- with .Values.imageCredentials }}
185-
{{- printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" .registry .username .password .email (printf "%s:%s" .username .password | b64enc) | b64enc }}
186-
{{- end }}
184+
{{- with .Values.imageCredentials }}
185+
{{- printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" .registry .username .password .email (printf "%s:%s" .username .password | b64enc) | b64enc }}
186+
{{- end }}
187187
{{- end }}
188188
```
189189

i18n/ja/docusaurus-plugin-content-docs/version-3/howto/charts_tips_and_tricks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ imageCredentials:
169169
次に、ヘルパーテンプレートを以下のように定義します。
170170
```
171171
{{- define "imagePullSecret" }}
172-
{{- with .Values.imageCredentials }}
173-
{{- printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" .registry .username .password .email (printf "%s:%s" .username .password | b64enc) | b64enc }}
174-
{{- end }}
172+
{{- with .Values.imageCredentials }}
173+
{{- printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" .registry .username .password .email (printf "%s:%s" .username .password | b64enc) | b64enc }}
174+
{{- end }}
175175
{{- end }}
176176
```
177177

i18n/ko/docusaurus-plugin-content-docs/version-3/howto/charts_tips_and_tricks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ imageCredentials:
145145
그 다음, helper 템플릿을 다음과 같이 정의합니다.:
146146
```
147147
{{- define "imagePullSecret" }}
148-
{{- with .Values.imageCredentials }}
149-
{{- printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" .registry .username .password .email (printf "%s:%s" .username .password | b64enc) | b64enc }}
150-
{{- end }}
148+
{{- with .Values.imageCredentials }}
149+
{{- printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" .registry .username .password .email (printf "%s:%s" .username .password | b64enc) | b64enc }}
150+
{{- end }}
151151
{{- end }}
152152
```
153153

i18n/uk/docusaurus-plugin-content-docs/version-3/howto/charts_tips_and_tricks.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ imageCredentials:
135135

136136
Ми визначаємо наш допоміжний шаблон наступним чином:
137137

138-
```
138+
```go
139139
{{- define "imagePullSecret" }}
140-
{{- with .Values.imageCredentials }}
141-
{{- printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" .registry .username .password .email (printf "%s:%s" .username .password | b64enc) | b64enc }}
142-
{{- end }}
140+
{{- with .Values.imageCredentials }}
141+
{{- printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" .registry .username .password .email (printf "%s:%s" .username .password | b64enc) | b64enc }}
142+
{{- end }}
143143
{{- end }}
144144
```
145145

i18n/zh/docusaurus-plugin-content-docs/version-3/howto/charts_tips_and_tricks.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@ imageCredentials:
138138

139139
然后定义下面的辅助模板:
140140

141-
```
141+
```yaml
142142
{{- define "imagePullSecret" }}
143-
{{- with .Values.imageCredentials }}
144-
{{- printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" .registry .username .password .email (printf "%s:%s" .username .password | b64enc) | b64enc }}
145-
{{- end }}
143+
{{- with .Values.imageCredentials }}
144+
{{- printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" .registry .username .password .email (printf "%s:%s" .username .password | b64enc) | b64enc }}
145+
{{- end }}
146146
{{- end }}
147147
```
148148

versioned_docs/version-3/howto/charts_tips_and_tricks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ imageCredentials:
169169
We then define our helper template as follows:
170170
```
171171
{{- define "imagePullSecret" }}
172-
{{- with .Values.imageCredentials }}
173-
{{- printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" .registry .username .password .email (printf "%s:%s" .username .password | b64enc) | b64enc }}
174-
{{- end }}
172+
{{- with .Values.imageCredentials }}
173+
{{- printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" .registry .username .password .email (printf "%s:%s" .username .password | b64enc) | b64enc }}
174+
{{- end }}
175175
{{- end }}
176176
```
177177

0 commit comments

Comments
 (0)