Skip to content

Commit 11618d8

Browse files
hotfix(cf-common): fix controller tpl (#20)
1 parent f6b664b commit 11618d8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

charts/cf-common/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: v0.0.0
33
description: Codefresh library chart
44
name: cf-common
5-
version: 0.0.18
5+
version: 0.0.19
66
type: library
77
keywords:
88
- codefresh

charts/cf-common/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Codefresh library chart
44

5-
![Version: 0.0.18](https://img.shields.io/badge/Version-0.0.18-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square) ![AppVersion: v0.0.0](https://img.shields.io/badge/AppVersion-v0.0.0-informational?style=flat-square)
5+
![Version: 0.0.19](https://img.shields.io/badge/Version-0.0.19-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square) ![AppVersion: v0.0.0](https://img.shields.io/badge/AppVersion-v0.0.0-informational?style=flat-square)
66

77
## Installing the Chart
88

@@ -18,7 +18,7 @@ Include this chart as a dependency in your `Chart.yaml` e.g.
1818
# Chart.yaml
1919
dependencies:
2020
- name: cf-common
21-
version: 0.0.18
21+
version: 0.0.19
2222
repository: https://chartmuseum.codefresh.io/cf-common
2323
```
2424

charts/cf-common/templates/controller/_controller.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ Usage:
3333
{{- define "cf-common.controller.type" }}
3434

3535
{{- $controllerDict := .Values.controller -}}
36-
{{- if .Values.global -}}
37-
{{- if .Values.global.controller -}}
38-
{{- $controllerDict = merge $controllerDict .Values.global.controller -}}
36+
{{- if $.Values.global -}}
37+
{{- if $.Values.global.controller -}}
38+
{{- $controllerDict = merge $controllerDict $.Values.global.controller -}}
3939
{{- end -}}
4040
{{- end -}}
4141
{{- $_ := set .Values "controller" $controllerDict -}}

0 commit comments

Comments
 (0)