Skip to content

Commit 04042da

Browse files
authored
fix(cf-common): rollout lib template (#13)
* fix(cf-common): rollout lib template * fix(cf-common): rollout lib template
1 parent df48c14 commit 04042da

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-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.12
5+
version: 0.0.13
66
type: library
77
keywords:
88
- codefresh

charts/cf-common/README.md

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

33
Codefresh library chart
44

5-
![Version: 0.0.12](https://img.shields.io/badge/Version-0.0.12-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.13](https://img.shields.io/badge/Version-0.0.13-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.12
21+
version: 0.0.13
2222
repository: https://chartmuseum.codefresh.io/cf-common
2323
```
2424
@@ -71,7 +71,7 @@ dependencies:
7171
| controller.revisionHistoryLimit | string | `nil` | Set ReplicaSet revision history limit |
7272
| controller.type | string | `nil` | Define the controller type (`deployment`) |
7373
| extraResources | list | `[]` | Array of extra objects to deploy with the release |
74-
| global | object | `{"env":{},"imagePullSecrets":[],"imageRegistry":"","rollout":{"analysis":{"successfulRunHistoryLimit":4,"unsuccessfulRunHistoryLimit":2},"canary":{"maxSurge":"25%","maxUnavailable":1,"steps":[{"setWeight":10},{"pause":{"duration":"1h"}},{"setWeight":20},{"pause":{"duration":{}}}]},"strategy":"Canary"}}` | Global parameters |
74+
| global | object | `{"env":{},"imagePullSecrets":[],"imageRegistry":"","rollout":{"analysis":{"successfulRunHistoryLimit":null,"unsuccessfulRunHistoryLimit":null},"canary":{"maxSurge":null,"maxUnavailable":null,"steps":[{"setWeight":null},{"pause":{"duration":null}},{"setWeight":null},{"pause":{"duration":null}}]},"strategy":null}}` | Global parameters |
7575
| global.env | object | `{}` | Global Env vars. NO precedence over `.Values.container.env` |
7676
| global.imagePullSecrets | list | `[]` | Global Docker registry secret names as array |
7777
| global.imageRegistry | string | `""` | Global Docker image registry |

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ spec:
4343
maxSurge: {{ default $.Values.global.rollout.canary.maxSurge .maxSurge }}
4444
stableMetadata: {{ default $.Values.global.rollout.canary.stableMetadata .stableMetadata| toYaml | nindent 8 }}
4545
canaryMetadata: {{ default $.Values.global.rollout.canary.canaryMetadata .canaryMetadata| toYaml | nindent 8 }}
46-
stableService: {{ .stableService | default (printf "%s-stable" ( $fullName )) }}
47-
canaryService: {{ .canaryService | default (printf "%s-canary" ( $fullName )) }}
4846
steps: {{ default $.Values.global.rollout.canary.steps .steps | toYaml | nindent 6 }}
4947
{{- end}}
5048
{{- end }}

0 commit comments

Comments
 (0)