Skip to content

Commit 54437da

Browse files
ilia-medvedev-codefreshATGardneryaroslav-codefresh
authored
Release 0.3.4 (#104)
* initialize release * Update argocd templates from upstream (#100) * added applicationconfigurations crd (#99) * fixed crd define (#102) * Remove syncwave from eventbus (#101) * remove default annotation and move to values - eventbus * add missing separator (#103) * CR-21441 -- event reporter chart (#108) --------- Co-authored-by: Noam Gal <[email protected]> Co-authored-by: Yaroslav Drachenko <[email protected]>
1 parent 578ccfc commit 54437da

File tree

7 files changed

+171
-9
lines changed

7 files changed

+171
-9
lines changed

charts/gitops-runtime/Chart.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: 0.1.36
33
description: A Helm chart for Codefresh gitops runtime
44
name: gitops-runtime
5-
version: 0.3.3
5+
version: 0.3.4
66
home: https://github.com/codefresh-io/gitops-runtime-helm
77
icon: https://avatars1.githubusercontent.com/u/11412079?v=3
88
keywords:
@@ -15,11 +15,19 @@ annotations:
1515
artifacthub.io/alternativeName: "codefresh-gitops-runtime"
1616
artifacthub.io/changes: |
1717
- kind: changed
18-
description: Update nginx to 1.25
18+
description: Remove sync wave from EventBus - fix cold start from ArgoCD and allow EventBus annotations from values
19+
- kind: changed
20+
description: Added applicationconfigurations CRD
21+
- kind: changed
22+
description: Update ArgoCD templates from upstream 5.50.1 - also switching Redis repository from quay.io/codefresh to the upstream public ecr
23+
- kind: changed
24+
description: Update ArgoCD chart to version 5.50.1-1-cap-CR-21429
25+
- kind: added
26+
description: Added new event-reporter component and ability to switch between old and new
1927
dependencies:
2028
- name: argo-cd
2129
repository: https://codefresh-io.github.io/argo-helm
22-
version: 5.46.2-4-cap-CR-20837
30+
version: 5.50.1-1-cap-CR-21429
2331
- name: argo-events
2432
repository: https://codefresh-io.github.io/argo-helm
2533
version: 2.0.9-1-cap-CR-19893

charts/gitops-runtime/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Codefresh gitops runtime
2-
![Version: 0.3.3](https://img.shields.io/badge/Version-0.3.3-informational?style=flat-square) ![AppVersion: 0.1.36](https://img.shields.io/badge/AppVersion-0.1.36-informational?style=flat-square)
2+
![Version: 0.3.4](https://img.shields.io/badge/Version-0.3.4-informational?style=flat-square) ![AppVersion: 0.1.36](https://img.shields.io/badge/AppVersion-0.1.36-informational?style=flat-square)
33

44
## Prerequisites
55

@@ -27,7 +27,7 @@ We have created a helper utility to resolve this issue:
2727
The utility is packaged in a container image. Below are instructions on executing the utility using Docker:
2828

2929
```
30-
docker run -v <output_dir>:/output quay.io/codefresh/gitops-runtime-private-registry-utils:0.3.3 <local_registry>
30+
docker run -v <output_dir>:/output quay.io/codefresh/gitops-runtime-private-registry-utils:0.3.4 <local_registry>
3131
```
3232
`output_dir` - is a local directory where the utility will output files. <br>
3333
`local_registry` - is your local registry where you want to mirror the images to
@@ -147,6 +147,8 @@ sealed-secrets:
147147
| argo-cd.configs.params."application.namespaces" | string | `"cf-*"` | |
148148
| argo-cd.configs.params."server.insecure" | bool | `true` | |
149149
| argo-cd.crds.install | bool | `true` | |
150+
| argo-cd.eventReporter.enabled | bool | `false` | Installs new event reporter component to cluster |
151+
| argo-cd.eventReporter.version | string | `"v1"` | Switches between old and new reporter version. Possible values: v1, v2. For v2 `argo-cd.eventReporter.enabled=true` is required |
150152
| argo-cd.fullnameOverride | string | `"argo-cd"` | |
151153
| argo-cd.notifications.bots.slack | string | `nil` | |
152154
| argo-events.crds.install | bool | `false` | |
@@ -275,8 +277,9 @@ sealed-secrets:
275277
| global.codefresh.userToken | object | `{"secretKeyRef":{},"token":""}` | User token. Used for runtime registration against the patform. One of token (for plain text value) or secretKeyRef must be provided. |
276278
| global.codefresh.userToken.secretKeyRef | object | `{}` | User token that references an existing secret containing the token. |
277279
| global.codefresh.userToken.token | string | `""` | User token in plain text. The chart creates and manages the secret for this token. |
278-
| global.runtime | object | `{"cluster":"https://kubernetes.default.svc","eventBus":{"name":"codefresh-eventbus","nats":{"native":{"auth":"token","containerTemplate":{"resources":{"limits":{"cpu":"500m","ephemeral-storage":"2Gi","memory":"4Gi"},"requests":{"cpu":"200m","ephemeral-storage":"2Gi","memory":"1Gi"}}},"maxPayload":"4MB","replicas":3}},"pdb":{"enabled":true,"minAvailable":2}},"gitCredentials":{"password":{"secretKeyRef":{},"value":null},"username":"username"},"ingress":{"annotations":{},"className":"nginx","enabled":false,"hosts":[],"protocol":"https","tls":[]},"ingressUrl":"","name":null}` | Runtime level settings |
280+
| global.runtime | object | `{"cluster":"https://kubernetes.default.svc","eventBus":{"annotations":{},"name":"codefresh-eventbus","nats":{"native":{"auth":"token","containerTemplate":{"resources":{"limits":{"cpu":"500m","ephemeral-storage":"2Gi","memory":"4Gi"},"requests":{"cpu":"200m","ephemeral-storage":"2Gi","memory":"1Gi"}}},"maxPayload":"4MB","replicas":3}},"pdb":{"enabled":true,"minAvailable":2}},"gitCredentials":{"password":{"secretKeyRef":{},"value":null},"username":"username"},"ingress":{"annotations":{},"className":"nginx","enabled":false,"hosts":[],"protocol":"https","tls":[]},"ingressUrl":"","name":null}` | Runtime level settings |
279281
| global.runtime.cluster | string | `"https://kubernetes.default.svc"` | Runtime cluster. Should not be changed. |
282+
| global.runtime.eventBus.annotations | object | `{}` | Annotations on EventBus resource |
280283
| global.runtime.eventBus.name | string | `"codefresh-eventbus"` | Eventbus name |
281284
| global.runtime.eventBus.pdb | object | `{"enabled":true,"minAvailable":2}` | Pod disruption budget for the eventbus |
282285
| global.runtime.eventBus.pdb.minAvailable | int | `2` | Minimum number of available eventbus pods. For eventbus to stay functional the majority of its replicas should always be available. |

charts/gitops-runtime/templates/_components/gitops-operator/_all_resources.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
{{ include "gitops-operator.resources.restricted_git_source_rbac" . }}
1212
---
1313
{{ include "gitops-operator.resources.sa" .}}
14+
---
15+
{{- include "gitops-operator.crds.application-configuration" . }}
1416
---
1517
{{- include "gitops-operator.crds.restricted-gitsource" . }} #
16-
{{- end }}
18+
{{- end }}
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
{{- define "gitops-operator.crds.application-configuration" }}
2+
{{- if .Values.crds.install }}
3+
apiVersion: apiextensions.k8s.io/v1
4+
kind: CustomResourceDefinition
5+
metadata:
6+
name: applicationconfigurations.csdp.codefresh.io
7+
annotations:
8+
{{- if .Values.crds.keep }}
9+
"helm.sh/resource-policy": keep
10+
{{- end }}
11+
{{- with .Values.crds.annotations }}
12+
{{- toYaml . | nindent 4 }}
13+
{{- end }}
14+
labels:
15+
app.kubernetes.io/name: applicationconfigurations.csdp.codefresh.io
16+
app.kubernetes.io/part-of: gitops-operator
17+
{{- with .Values.crds.additionalLabels }}
18+
{{- toYaml . | nindent 4}}
19+
{{- end }}
20+
spec:
21+
group: csdp.codefresh.io
22+
names:
23+
kind: ApplicationConfiguration
24+
listKind: ApplicationConfigurationList
25+
plural: applicationconfigurations
26+
singular: applicationconfiguration
27+
scope: Namespaced
28+
versions:
29+
- name: v1
30+
schema:
31+
openAPIV3Schema:
32+
description: ApplicationConfiguration is the Schema for the applicationconfiguration
33+
API
34+
properties:
35+
apiVersion:
36+
description: 'APIVersion defines the versioned schema of this representation
37+
of an object. Servers should convert recognized schemas to the latest
38+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
39+
type: string
40+
kind:
41+
description: 'Kind is a string value representing the REST resource this
42+
object represents. Servers may infer this from the endpoint the client
43+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
44+
type: string
45+
metadata:
46+
type: object
47+
spec:
48+
description: ApplicationConfigurationSpec defines the desired state of
49+
ApplicationConfiguration
50+
properties:
51+
applicationSourceSelector:
52+
description: ApplicationSourceSelector is a selector to select the
53+
application source
54+
properties:
55+
matchExpressions:
56+
description: matchExpressions is a list of label selector requirements.
57+
The requirements are ANDed.
58+
items:
59+
description: A label selector requirement is a selector that
60+
contains values, a key, and an operator that relates the key
61+
and values.
62+
properties:
63+
key:
64+
description: key is the label key that the selector applies
65+
to.
66+
type: string
67+
operator:
68+
description: operator represents a key's relationship to
69+
a set of values. Valid operators are In, NotIn, Exists
70+
and DoesNotExist.
71+
type: string
72+
values:
73+
description: values is an array of string values. If the
74+
operator is In or NotIn, the values array must be non-empty.
75+
If the operator is Exists or DoesNotExist, the values
76+
array must be empty. This array is replaced during a strategic
77+
merge patch.
78+
items:
79+
type: string
80+
type: array
81+
required:
82+
- key
83+
- operator
84+
type: object
85+
type: array
86+
matchLabels:
87+
additionalProperties:
88+
type: string
89+
description: matchLabels is a map of {key,value} pairs. A single
90+
{key,value} in the matchLabels map is equivalent to an element
91+
of matchExpressions, whose key field is "key", the operator
92+
is "In", and the values array contains only "value". The requirements
93+
are ANDed.
94+
type: object
95+
type: object
96+
x-kubernetes-map-type: atomic
97+
priority:
98+
type: integer
99+
promotion:
100+
additionalProperties:
101+
properties:
102+
jsonPaths:
103+
description: JsonPaths is an array of json paths inside the
104+
file,
105+
items:
106+
type: string
107+
type: array
108+
required:
109+
- jsonPaths
110+
type: object
111+
description: Promotion is the definition on how to promote this application
112+
type: object
113+
versionSource:
114+
description: VersionSource is the source of the application version
115+
properties:
116+
file:
117+
description: File is the file name of the source
118+
type: string
119+
jsonPath:
120+
description: JsonPath is the json path inside the file, to the
121+
version information
122+
type: string
123+
required:
124+
- file
125+
- jsonPath
126+
type: object
127+
required:
128+
- applicationSourceSelector
129+
- priority
130+
type: object
131+
type: object
132+
served: true
133+
storage: true
134+
{{- end }}
135+
{{- end }}

charts/gitops-runtime/templates/eventbus/codefresh-eventbus.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@
88
{{- if hasKey $eventBusSpec "pdb" }}
99
{{- $eventBusSpec = unset $eventBusSpec "pdb" }}
1010
{{- end }}
11+
{{- if hasKey $eventBusSpec "annotations" }}
12+
{{- $eventBusSpec = unset $eventBusSpec "annotations" }}
13+
{{- end }}
1114
apiVersion: argoproj.io/v1alpha1
1215
kind: EventBus
1316
metadata:
1417
name: {{ $eventBusName }}
1518
annotations:
16-
argocd.argoproj.io/sync-wave: "2"
19+
{{- .Values.global.runtime.eventBus.annotations | toYaml | nindent 4}}
1720
labels:
1821
app.kubernetes.io/part-of: argo-events
1922
codefresh.io/internal: "true"

charts/gitops-runtime/templates/gitops-operator/crds.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
{{- $_ := set $gitopsOperatorContext "Values" (get .Values "gitops-operator") }}
33
{{- $_ := set $gitopsOperatorContext.Values "global" (get .Values "global") }}
44

5-
{{- include "gitops-operator.crds.restricted-gitsource" $gitopsOperatorContext }}
5+
{{- include "gitops-operator.crds.application-configuration" $gitopsOperatorContext }}
6+
---
7+
{{- include "gitops-operator.crds.restricted-gitsource" $gitopsOperatorContext }}

charts/gitops-runtime/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ global:
7979
eventBus:
8080
# -- Eventbus name
8181
name: 'codefresh-eventbus'
82+
# -- Annotations on EventBus resource
83+
annotations: {}
8284
# -- Pod disruption budget for the eventbus
8385
pdb:
8486
enabled: true
@@ -143,6 +145,13 @@ argo-cd:
143145
params:
144146
server.insecure: true
145147
application.namespaces: 'cf-*'
148+
eventReporter:
149+
# -- Installs new event reporter component to cluster
150+
enabled: false
151+
# -- Switches between old and new reporter version.
152+
# Possible values: v1, v2.
153+
# For v2 `argo-cd.eventReporter.enabled=true` is required
154+
version: v1
146155
notifications:
147156
bots:
148157
slack:

0 commit comments

Comments
 (0)