Skip to content

Commit a1c7728

Browse files
add initial
0 parents  commit a1c7728

File tree

78 files changed

+12591
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+12591
-0
lines changed

.config/ct-lint.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## Reference: https://github.com/helm/chart-testing/blob/master/doc/ct_lint-and-install.md
2+
# Don't add the 'debug' attribute, otherwise the workflow won't work anymore
3+
# Only Used for the CT Lint Stage
4+
remote: origin
5+
target-branch: main
6+
chart-dirs:
7+
- charts
8+
chart-repos:
9+
- dandydeveloper=https://dandydeveloper.github.io/charts/
10+
helm-extra-args: "--timeout 600s"
11+
validate-chart-schema: false
12+
validate-maintainers: true
13+
validate-yaml: true
14+
exclude-deprecated: true
15+
excluded-charts: []

.config/lintconf.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
2+
3+
---
4+
rules:
5+
braces:
6+
min-spaces-inside: 0
7+
max-spaces-inside: 0
8+
min-spaces-inside-empty: -1
9+
max-spaces-inside-empty: -1
10+
brackets:
11+
min-spaces-inside: 0
12+
max-spaces-inside: 0
13+
min-spaces-inside-empty: -1
14+
max-spaces-inside-empty: -1
15+
colons:
16+
max-spaces-before: 0
17+
max-spaces-after: 1
18+
commas:
19+
max-spaces-before: 0
20+
min-spaces-after: 1
21+
max-spaces-after: 1
22+
comments:
23+
require-starting-space: true
24+
min-spaces-from-content: 1
25+
document-end: disable
26+
document-start: disable # No --- to start a file
27+
empty-lines:
28+
max: 2
29+
max-start: 0
30+
max-end: 0
31+
hyphens:
32+
max-spaces-after: 1
33+
indentation:
34+
spaces: consistent
35+
indent-sequences: whatever # - list indentation will handle both indentation and without
36+
check-multi-line-strings: false
37+
key-duplicates: enable
38+
line-length: disable # Lines can be any length
39+
new-line-at-end-of-file: enable
40+
new-lines:
41+
type: unix
42+
trailing-spaces: enable
43+
truthy:
44+
level: warning

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
output
2+
.vscode
3+
.DS_Store
4+
.idea
5+
**/__snapshot__
6+
**/*.tgz
7+
**/charts/**/charts
8+
#local-scripts/
9+
values.yaml

charts/gitops-runtime/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!charts/

charts/gitops-runtime/.helmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tests/

charts/gitops-runtime/Chart.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
apiVersion: v2
2+
appVersion: v0.0.1
3+
description: A Helm chart for Codefresh gitops runtime
4+
name: gitops-runtime-sandbox
5+
version: 0.0.1
6+
home: https://github.com/codefresh-sandbox/gitops-runtime-charts
7+
keywords:
8+
- codefresh
9+
- gitops
10+
maintainers:
11+
- name: codefresh
12+
url: https://codefresh-io.github.io/
13+
dependencies:
14+
- name: argo-cd
15+
repository: https://codefresh-io.github.io/argo-helm
16+
version: 5.7.0-2-CR-16709-init-app-proxy
17+
- name: argo-events
18+
repository: https://codefresh-io.github.io/argo-helm
19+
version: 2.0.5-1-cf-init
20+
- name: argo-workflows
21+
repository: https://codefresh-io.github.io/argo-helm
22+
version: 0.22.8-1-cf-init
23+
condition: argo-workflows.enabled
24+
- name: argo-rollouts
25+
repository: https://codefresh-io.github.io/argo-helm
26+
version: 2.22.1-1-cap-sw
27+
condition: argo-rollouts.enabled
28+
- name: sealed-secrets
29+
repository: https://bitnami-labs.github.io/sealed-secrets/
30+
version: 2.1.6
31+
- name: codefresh-tunnel-client
32+
repository: https://chartmuseum.codefresh.io/codefresh-tunnel-client
33+
version: "0.1.11"
34+
alias: tunnel-client

charts/gitops-runtime/README.md

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
# gitops-runtime-sandbox
2+
3+
![Version: 0.0.1-test30-cleanup-1](https://img.shields.io/badge/Version-0.0.1--test30--cleanup--1-informational?style=flat-square) ![AppVersion: v0.0.1](https://img.shields.io/badge/AppVersion-v0.0.1-informational?style=flat-square)
4+
5+
A Helm chart for Codefresh gitops runtime
6+
7+
**Homepage:** <https://github.com/codefresh-sandbox/gitops-runtime-charts>
8+
9+
## Maintainers
10+
11+
| Name | Email | Url |
12+
| ---- | ------ | --- |
13+
| codefresh | | <https://codefresh-io.github.io/> |
14+
15+
## Requirements
16+
17+
| Repository | Name | Version |
18+
|------------|------|---------|
19+
| https://bitnami-labs.github.io/sealed-secrets/ | sealed-secrets | 2.1.6 |
20+
| https://chartmuseum.codefresh.io/codefresh-tunnel-client | tunnel-client(codefresh-tunnel-client) | 0.1.11 |
21+
| https://codefresh-io.github.io/argo-helm | argo-cd | 5.7.0-2-CR-16709-init-app-proxy |
22+
| https://codefresh-io.github.io/argo-helm | argo-events | 2.0.5-1-cf-init |
23+
| https://codefresh-io.github.io/argo-helm | argo-workflows | 0.22.8-1-cf-init |
24+
25+
## Values
26+
27+
| Key | Type | Default | Description |
28+
|-----|------|---------|-------------|
29+
| app-proxy.affinity | object | `{}` | |
30+
| app-proxy.config.argoCdUsername | string | `"admin"` | |
31+
| app-proxy.config.argoWorkflowsInsecure | string | `"true"` | |
32+
| app-proxy.config.env | string | `"production"` | |
33+
| app-proxy.env | object | `{}` | |
34+
| app-proxy.fullnameOverride | string | `"cap-app-proxy"` | |
35+
| app-proxy.image.pullPolicy | string | `"IfNotPresent"` | |
36+
| app-proxy.image.repository | string | `"quay.io/codefresh/cap-app-proxy"` | |
37+
| app-proxy.image.tag | string | `"CR-16355-dummy-components"` | |
38+
| app-proxy.imagePullSecrets | list | `[]` | |
39+
| app-proxy.initContainer.command[0] | string | `"./init.sh"` | |
40+
| app-proxy.initContainer.env | object | `{}` | |
41+
| app-proxy.initContainer.image.pullPolicy | string | `"IfNotPresent"` | |
42+
| app-proxy.initContainer.image.repository | string | `"quay.io/codefresh/cap-app-proxy-init"` | |
43+
| app-proxy.initContainer.image.tag | string | `"CR-16355-dummy-components"` | |
44+
| app-proxy.initContainer.resources.limits.cpu | string | `"1"` | |
45+
| app-proxy.initContainer.resources.limits.memory | string | `"512Mi"` | |
46+
| app-proxy.initContainer.resources.requests.cpu | string | `"0.2"` | |
47+
| app-proxy.initContainer.resources.requests.memory | string | `"256Mi"` | |
48+
| app-proxy.livenessProbe.failureThreshold | int | `10` | Minimum consecutive failures for the [probe] to be considered failed after having succeeded |
49+
| app-proxy.livenessProbe.initialDelaySeconds | int | `10` | Number of seconds after the container has started before [probe] is initiated |
50+
| app-proxy.livenessProbe.periodSeconds | int | `10` | How often (in seconds) to perform the [probe] |
51+
| app-proxy.livenessProbe.successThreshold | int | `1` | Minimum consecutive successes for the [probe] to be considered successful after having failed |
52+
| app-proxy.livenessProbe.timeoutSeconds | int | `10` | Number of seconds after which the [probe] times out |
53+
| app-proxy.nameOverride | string | `""` | |
54+
| app-proxy.nodeSelector | object | `{}` | |
55+
| app-proxy.podAnnotations | object | `{}` | |
56+
| app-proxy.podLabels | object | `{}` | |
57+
| app-proxy.podSecurityContext | object | `{}` | |
58+
| app-proxy.readinessProbe.failureThreshold | int | `3` | Minimum consecutive failures for the [probe] to be considered failed after having succeeded |
59+
| app-proxy.readinessProbe.initialDelaySeconds | int | `10` | Number of seconds after the container has started before [probe] is initiated |
60+
| app-proxy.readinessProbe.periodSeconds | int | `10` | How often (in seconds) to perform the [probe] |
61+
| app-proxy.readinessProbe.successThreshold | int | `1` | Minimum consecutive successes for the [probe] to be considered successful after having failed |
62+
| app-proxy.readinessProbe.timeoutSeconds | int | `10` | Number of seconds after which the [probe] times out |
63+
| app-proxy.replicaCount | int | `1` | |
64+
| app-proxy.resources.limits.cpu | string | `"1500m"` | |
65+
| app-proxy.resources.limits.ephemeral-storage | string | `"6Gi"` | |
66+
| app-proxy.resources.limits.memory | string | `"1Gi"` | |
67+
| app-proxy.resources.requests.cpu | string | `"100m"` | |
68+
| app-proxy.resources.requests.ephemeral-storage | string | `"2Gi"` | |
69+
| app-proxy.resources.requests.memory | string | `"512Mi"` | |
70+
| app-proxy.securityContext.allowPrivilegeEscalation | bool | `false` | |
71+
| app-proxy.service.port | int | `3017` | |
72+
| app-proxy.service.type | string | `"ClusterIP"` | |
73+
| app-proxy.serviceAccount.annotations | object | `{}` | |
74+
| app-proxy.serviceAccount.create | bool | `true` | |
75+
| app-proxy.serviceAccount.name | string | `"cap-app-proxy"` | |
76+
| app-proxy.tolerations | list | `[]` | |
77+
| argo-cd.configs.cm."accounts.admin" | string | `"apiKey,login"` | |
78+
| argo-cd.configs.cm."timeout.reconciliation" | string | `"20s"` | |
79+
| argo-cd.configs.params."server.insecure" | bool | `true` | |
80+
| argo-cd.crds.install | bool | `false` | |
81+
| argo-cd.fullnameOverride | string | `"argo-cd"` | |
82+
| argo-events.crds.install | bool | `false` | |
83+
| argo-events.fullnameOverride | string | `"argo-events"` | |
84+
| argo-rollouts.enabled | bool | `false` | |
85+
| argo-workflows.enabled | bool | `true` | |
86+
| argo-workflows.fullnameOverride | string | `"argo"` | |
87+
| event-reporters.events.argoCDServerServiceName | string | `nil` | Do not set this value unless you are totally sure you need to override ArgoCD service name. Otherwise, it is determinted by chart logic |
88+
| event-reporters.events.argoCDServerServicePort | string | `nil` | Do not set this value unless you are totally sure you need to override ArgoCD service port. Otherwise, it is determinted by chart logic |
89+
| event-reporters.events.eventSource.replicas | int | `1` | |
90+
| event-reporters.events.eventSource.resources | object | `{}` | |
91+
| event-reporters.events.sensor.replicas | int | `1` | |
92+
| event-reporters.events.sensor.resources | object | `{}` | |
93+
| event-reporters.events.serviceAccount.create | bool | `true` | |
94+
| event-reporters.rollout.eventSource.replicas | int | `1` | |
95+
| event-reporters.rollout.eventSource.resources | object | `{}` | |
96+
| event-reporters.rollout.sensor.replicas | int | `1` | |
97+
| event-reporters.rollout.sensor.resources | object | `{}` | |
98+
| event-reporters.rollout.serviceAccount.create | bool | `true` | |
99+
| event-reporters.workflow.eventSource.replicas | int | `1` | |
100+
| event-reporters.workflow.eventSource.resources | object | `{}` | |
101+
| event-reporters.workflow.sensor.replicas | int | `1` | |
102+
| event-reporters.workflow.sensor.resources | object | `{}` | |
103+
| event-reporters.workflow.serviceAccount.create | bool | `true` | |
104+
| global.codefresh.accountId | string | `""` | Codefresh Account id |
105+
| global.codefresh.apiEventsPath | string | `"/2.0/api/events"` | Events API endpoint URL suffix |
106+
| global.codefresh.iscRepo | string | `""` | Internal shared config repository URL for this Codefresh account |
107+
| global.codefresh.url | string | `"https://g.codefresh.io"` | URL of Codefresh platform |
108+
| 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. |
109+
| global.codefresh.userToken.secretKeyRef | object | `{}` | secretKeyRef to an existing secret containing the token |
110+
| global.codefresh.userToken.token | string | `""` | Token in plain text (A secret for this token will be created and managed by the chart) |
111+
| global.eventBusName | string | `"codefresh-eventbus"` | Eventbus name |
112+
| installer | object | `{"codefreshToken":null,"image":{"pullPolicy":"IfNotPresent","repository":"quay.io/codefresh/gitops-runtime-installer-sandbox","tag":"alpha2"}}` | Runtime installer - Used for running hooks and checks. |
113+
| installer.codefreshToken | string | `nil` | Codefresh user token used for runtime installation. Important: Also accepts secretKeyRef as value - so you can provide your own secret. |
114+
| internal-router.affinity | object | `{}` | |
115+
| internal-router.env | object | `{}` | Environment variables - see values.yaml inside the chart for usage |
116+
| internal-router.fullnameOverride | string | `"internal-router"` | |
117+
| internal-router.image.pullPolicy | string | `"IfNotPresent"` | |
118+
| internal-router.image.repository | string | `"nginx"` | |
119+
| internal-router.image.tag | string | `"1.22-alpine"` | |
120+
| internal-router.imagePullSecrets | list | `[]` | |
121+
| internal-router.nameOverride | string | `""` | |
122+
| internal-router.nodeSelector | object | `{}` | |
123+
| internal-router.podAnnotations | object | `{}` | |
124+
| internal-router.podLabels | object | `{}` | |
125+
| internal-router.podSecurityContext | object | `{}` | |
126+
| internal-router.replicaCount | int | `1` | |
127+
| internal-router.resources.limits.cpu | string | `"1"` | |
128+
| internal-router.resources.limits.memory | string | `"256Mi"` | |
129+
| internal-router.resources.requests.cpu | string | `"0.2"` | |
130+
| internal-router.resources.requests.memory | string | `"128Mi"` | |
131+
| internal-router.routing | object | `{}` | Internal routing settings. Do not change this unless you are absolutely certain - the values are determined by chart's logic. |
132+
| internal-router.securityContext | object | `{}` | |
133+
| internal-router.service.port | int | `80` | |
134+
| internal-router.service.type | string | `"ClusterIP"` | |
135+
| internal-router.serviceAccount.annotations | object | `{}` | |
136+
| internal-router.serviceAccount.create | bool | `true` | |
137+
| internal-router.serviceAccount.name | string | `""` | |
138+
| internal-router.tolerations | list | `[]` | |
139+
| runtime.argoCDApplication | object | `{"chartRepo":"https://chartmuseum-dev.codefresh.io/gitops-runtime-sandbox","chartVersion":"","enabled":true,"name":"codefresh-gitops-runtime"}` | To be able to see the runtime in CodefreshUI, it is required to create and ArgoCD application that referneces it's components For that purpose we can create an ArgoApp that referneces the chart. |
140+
| runtime.cluster | string | `nil` | |
141+
| runtime.eventBus.nats.native.auth | string | `"token"` | |
142+
| runtime.eventBus.nats.native.containerTemplate.resources.limits.cpu | string | `"500m"` | |
143+
| runtime.eventBus.nats.native.containerTemplate.resources.limits.ephemeral-storage | string | `"2Gi"` | |
144+
| runtime.eventBus.nats.native.containerTemplate.resources.limits.memory | string | `"4Gi"` | |
145+
| runtime.eventBus.nats.native.containerTemplate.resources.requests.cpu | string | `"200m"` | |
146+
| runtime.eventBus.nats.native.containerTemplate.resources.requests.ephemeral-storage | string | `"2Gi"` | |
147+
| runtime.eventBus.nats.native.containerTemplate.resources.requests.memory | string | `"1Gi"` | |
148+
| runtime.eventBus.nats.native.maxPayload | string | `"4MB"` | |
149+
| runtime.eventBus.nats.native.replicas | int | `3` | |
150+
| runtime.ingress.annotations | object | `{}` | |
151+
| runtime.ingress.className | string | `"nginx"` | |
152+
| runtime.ingress.enabled | bool | `true` | |
153+
| runtime.ingress.hosts | list | `[]` | |
154+
| runtime.ingress.tls | object | `{}` | |
155+
| runtime.name | string | `nil` | |
156+
| sealed-secrets.fullnameOverride | string | `"sealed-secrets"` | |
157+
| sealed-secrets.image.registry | string | `"quay.io"` | |
158+
| sealed-secrets.image.repository | string | `"codefresh/sealed-secrets-controller"` | |
159+
| sealed-secrets.image.tag | string | `"v0.17.5"` | |
160+
| sealed-secrets.keyrenewperiod | string | `"720h"` | |
161+
| sealed-secrets.resources.limits.cpu | string | `"500m"` | |
162+
| sealed-secrets.resources.limits.memory | string | `"1Gi"` | |
163+
| sealed-secrets.resources.requests.cpu | string | `"200m"` | |
164+
| sealed-secrets.resources.requests.memory | string | `"512Mi"` | |
165+
| tunnel-client | object | `{"libraryMode":true,"tunnelServer":{"host":"register-tunnels.cf-cd.com","subdomainHost":"tunnels.cf-cd.com"}}` | Tunnel based runtime. Only relevant when runtime.ingress.enabled = false |
166+
| tunnel-client.libraryMode | bool | `true` | Do not change this value! Breaks chart logic |
167+
168+
----------------------------------------------
169+
Autogenerated from chart metadata using [helm-docs v1.9.1](https://github.com/norwoodj/helm-docs/releases/v1.9.1)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
global:
2+
codefresh:
3+
accountId: 628a80b693a15c0f9c13ab75 # Codefresh Account id for ilia-codefresh for now, needs to be some test account
4+
userToken:
5+
secretKeyRef:
6+
name: mysecret
7+
key: myvalue
8+
optional: true
9+
10+
runtime:
11+
name: test-runtime1
12+
cluster: test-cluster
13+
14+
ingress:
15+
className: "nginx"
16+
hosts:
17+
- runtime.codefresh.local
18+
19+
20+
argo-rollouts:
21+
enabled: true
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
global:
2+
codefresh:
3+
accountId: 628a80b693a15c0f9c13ab75 # Codefresh Account id for ilia-codefresh for now, needs to be some test account
4+
5+
runtime:
6+
name: test-runtime1
7+
cluster: test-cluster
8+
9+
ingress:
10+
enabled: false
11+
12+
argo-rollouts:
13+
enabled: true

0 commit comments

Comments
 (0)