Skip to content

Commit 64f6d2c

Browse files
onprem: 2.7.8 (#41)
1 parent 588952b commit 64f6d2c

File tree

5 files changed

+25
-6
lines changed

5 files changed

+25
-6
lines changed

codefresh/Chart.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
description: Helm Chart for Codefresh On-Prem
33
name: codefresh
4-
version: 2.7.7
4+
version: 2.7.8
55
keywords:
66
- codefresh
77
home: https://codefresh.io/
@@ -18,8 +18,8 @@ annotations:
1818
artifacthub.io/containsSecurityUpdates: "true"
1919
# supported kinds are added, changed, deprecated, removed, fixed and security.
2020
artifacthub.io/changes: |
21-
- kind: security
22-
description: "Contains security updates"
21+
- kind: added
22+
description: "Add option to specify labels for Ingress object"
2323
dependencies:
2424
- name: cf-common
2525
repository: oci://quay.io/codefresh/charts

codefresh/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Codefresh On-Premises
22

3-
![Version: 2.7.7](https://img.shields.io/badge/Version-2.7.7-informational?style=flat-square) ![AppVersion: 2.7.0](https://img.shields.io/badge/AppVersion-2.7.0-informational?style=flat-square)
3+
![Version: 2.7.8](https://img.shields.io/badge/Version-2.7.8-informational?style=flat-square) ![AppVersion: 2.7.0](https://img.shields.io/badge/AppVersion-2.7.0-informational?style=flat-square)
44

55
Helm chart for deploying [Codefresh On-Premises](https://codefresh.io/docs/docs/getting-started/intro-to-codefresh/) to Kubernetes.
66

@@ -2290,11 +2290,12 @@ After platform upgrade, Consul fails with the error `refusing to rejoin cluster
22902290
| hermes | object | See below | hermes |
22912291
| hooks | object | See below | Pre/post-upgrade Job hooks. Updates images in `system/default` runtime. |
22922292
| imageCredentials | object | `{}` | Credentials for Image Pull Secret object |
2293-
| ingress | object | `{"annotations":{"nginx.ingress.kubernetes.io/service-upstream":"true","nginx.ingress.kubernetes.io/ssl-redirect":"false","nginx.org/redirect-to-https":"false"},"enabled":true,"ingressClassName":"nginx-codefresh","nameOverride":"","services":{"internal-gateway":["/"]},"tls":{"cert":"","enabled":false,"existingSecret":"","key":"","secretName":"star.codefresh.io"}}` | Ingress |
2293+
| ingress | object | `{"annotations":{"nginx.ingress.kubernetes.io/service-upstream":"true","nginx.ingress.kubernetes.io/ssl-redirect":"false","nginx.org/redirect-to-https":"false"},"enabled":true,"ingressClassName":"nginx-codefresh","labels":{},"nameOverride":"","services":{"internal-gateway":["/"]},"tls":{"cert":"","enabled":false,"existingSecret":"","key":"","secretName":"star.codefresh.io"}}` | Ingress |
22942294
| ingress-nginx | object | See below | ingress-nginx Ref: https://github.com/kubernetes/ingress-nginx/blob/main/charts/ingress-nginx/values.yaml |
22952295
| ingress.annotations | object | See below | Set annotations for ingress. |
22962296
| ingress.enabled | bool | `true` | Enable the Ingress |
22972297
| ingress.ingressClassName | string | `"nginx-codefresh"` | Set the ingressClass that is used for the ingress. Default `nginx-codefresh` is created from `ingress-nginx` controller subchart |
2298+
| ingress.labels | object | `{}` | Set labels for ingress |
22982299
| ingress.nameOverride | string | `""` | Override Ingress resource name |
22992300
| ingress.services | object | See below | Default services and corresponding paths |
23002301
| ingress.tls.cert | string | `""` | Certificate (base64 encoded) |

codefresh/templates/ingress.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ metadata:
99
name: {{ $ingressName }}
1010
labels:
1111
{{ include "codefresh.labels" . | nindent 4 }}
12+
{{- with .Values.ingress.labels }}
13+
{{ toYaml . | nindent 4 }}
14+
{{- end }}
1215
{{- with .Values.ingress.annotations }}
1316
annotations:
1417
{{ toYaml . | nindent 4 }}

codefresh/tests/ingress/ingress_test.yaml

+14-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,17 @@ tests:
4141
enabled: true
4242
asserts:
4343
- failedTemplate:
44-
errorMessage: "A valid .Values.ingress.tls.cert is required!"
44+
errorMessage: "A valid .Values.ingress.tls.cert is required!"
45+
46+
- it: ingress with extra labels
47+
template: templates/ingress.yaml
48+
set:
49+
global:
50+
appUrl: mydomain.local
51+
ingress:
52+
labels:
53+
foo: bar
54+
asserts:
55+
- equal:
56+
path: metadata.labels.foo
57+
value: bar

codefresh/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ ingress:
122122
nginx.ingress.kubernetes.io/service-upstream: "true"
123123
nginx.ingress.kubernetes.io/ssl-redirect: "false"
124124
nginx.org/redirect-to-https: "false"
125+
# -- Set labels for ingress
126+
labels: {}
125127

126128
# -- Global parameters
127129
# @default -- See below

0 commit comments

Comments
 (0)