Skip to content

Commit 24ef5be

Browse files
authored
Merge pull request #477 from kubero-dev/feature/migrate-to-singlefile-templates-2
Feature / migrate to singlefile templates
2 parents b2bec73 + 832bc68 commit 24ef5be

Some content is hidden

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

95 files changed

+4889
-1
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,16 @@ on:
1717
paths-ignore:
1818
- 'docs/**'
1919
- 'services/**'
20+
- 'templates/**'
2021
- '.github/**'
2122
pull_request:
2223
# The branches below must be a subset of the branches above
2324
branches: [ "main" ]
25+
paths-ignore:
26+
- 'docs/**'
27+
- 'services/**'
28+
- 'templates/**'
29+
- '.github/**'
2430
schedule:
2531
- cron: '39 11 * * 2'
2632

.github/workflows/yamllint.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,29 @@ on:
33
pull_request:
44
paths:
55
- 'services/**'
6+
- 'templates/**'
67
jobs:
78
yamllint:
89
name: 'Yamllint'
910
runs-on: ubuntu-latest
1011
steps:
1112
- name: 'Checkout'
1213
uses: actions/checkout@master
13-
- name: 'Yamllint'
14+
- name: 'Yamllint services'
1415
uses: karancode/yamllint-github-action@master
1516
with:
1617
yamllint_file_or_dir: 'services'
1718
yamllint_config_datapath: 'services/.yamllint'
1819
yamllint_strict: false
1920
yamllint_comment: true
21+
env:
22+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
- name: 'Yamllint templates'
24+
uses: karancode/yamllint-github-action@master
25+
with:
26+
yamllint_file_or_dir: 'templates'
27+
yamllint_config_datapath: 'templates/.yamllint'
28+
yamllint_strict: false
29+
yamllint_comment: true
2030
env:
2131
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

templates/.yamllint

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
extends: default
3+
4+
rules:
5+
braces:
6+
level: warning
7+
max-spaces-inside: 1
8+
brackets:
9+
level: warning
10+
max-spaces-inside: 1
11+
colons:
12+
level: warning
13+
commas:
14+
level: warning
15+
comments: disable
16+
comments-indentation: disable
17+
document-start: disable
18+
empty-lines:
19+
level: warning
20+
hyphens:
21+
level: warning
22+
indentation:
23+
level: warning
24+
indent-sequences: consistent
25+
line-length:
26+
max: 300
27+
level: warning
28+
allow-non-breakable-inline-mappings: true
29+
truthy: disable
30+
new-line-at-end-of-file: disable

templates/activepieces.yaml

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
apiVersion: application.kubero.dev/v1alpha1
2+
kind: KuberoApp
3+
metadata:
4+
annotations:
5+
kubero.dev/template.architecture: '[]'
6+
kubero.dev/template.description: "Your friendliest open source all-in-one automation\
7+
\ tool \u2728 Workflow automation tool 100+ integration / Enterprise automation\
8+
\ tool / Zapier Alternative"
9+
kubero.dev/template.icon: https://avatars.githubusercontent.com/u/99494700?s=200&v=4
10+
kubero.dev/template.installation: ''
11+
kubero.dev/template.links: '[]'
12+
kubero.dev/template.screenshots: '["https://github.com/activepieces/activepieces/assets/1812998/e75616ce-7801-45b7-b3fa-eba778bebde3"]'
13+
kubero.dev/template.source: https://github.com/activepieces/activepieces
14+
kubero.dev/template.tags: '["Workflow","Automation","low-code","no-code"]'
15+
kubero.dev/template.title: Activepieces
16+
kubero.dev/template.website: https://www.activepieces.com/
17+
labels:
18+
manager: kubero
19+
name: activepieces
20+
spec:
21+
addons:
22+
- displayName: Postgresql
23+
env: []
24+
icon: /img/addons/postgresql.png
25+
id: kubero-operator
26+
kind: KuberoPostgresql
27+
resourceDefinitions:
28+
KuberoPostgresql:
29+
apiVersion: application.kubero.dev/v1alpha1
30+
kind: KuberoPostgresql
31+
metadata:
32+
name: activepieces-postgresql
33+
spec:
34+
postgresql:
35+
global:
36+
postgresql:
37+
auth:
38+
database: postgresql
39+
password: activepieces
40+
postgresPassword: admin
41+
username: activepieces
42+
storageClass: standard
43+
primary:
44+
persistence:
45+
size: 1Gi
46+
version:
47+
latest: 0.0.151
48+
- displayName: Redis
49+
env: []
50+
icon: /img/addons/Redis.png
51+
id: kubero-operator
52+
kind: KuberoRedis
53+
resourceDefinitions:
54+
KuberoRedis:
55+
apiVersion: application.kubero.dev/v1alpha1
56+
kind: KuberoRedis
57+
metadata:
58+
name: activepieces-redis
59+
spec:
60+
redis:
61+
architecture: replication
62+
global:
63+
redis:
64+
password: activepieces
65+
storageClass: standard
66+
master:
67+
persistence:
68+
size: 1Gi
69+
replica:
70+
persistence:
71+
size: 1Gi
72+
replicaCount: 3
73+
version:
74+
latest: 0.0.151
75+
cronjobs: []
76+
deploymentstrategy: docker
77+
envVars:
78+
- name: AP_POSTGRES_DATABASE
79+
value: postgresql
80+
- name: AP_POSTGRES_PASSWORD
81+
value: activepieces
82+
- name: AP_POSTGRES_USERNAME
83+
value: activepieces
84+
- name: AP_ENGINE_EXECUTABLE_PATH
85+
value: dist/packages/engine/main.js
86+
- name: AP_JWT_SECRET
87+
value: secret
88+
- name: AP_ENVIRONMENT
89+
value: prod
90+
- name: AP_FRONTEND_URL
91+
value: http://activepieces.lacolhost.com
92+
- name: AP_WEBHOOK_TIMEOUT_SECONDS
93+
value: '30'
94+
- name: AP_TRIGGER_DEFAULT_POLL_INTERVAL
95+
value: '5'
96+
- name: AP_REDIS_HOST
97+
value: activepieces-redis-master
98+
- name: AP_REDIS_PORT
99+
value: '6379'
100+
- name: AP_SANDBOX_RUN_TIME_SECONDS
101+
value: '600'
102+
- name: AP_TELEMETRY_ENABLED
103+
value: 'true'
104+
- name: AP_TEMPLATES_SOURCE_URL
105+
value: https://cloud.activepieces.com/api/v1/flow-templates
106+
- name: AP_POSTGRES_HOST
107+
value: activepieces-postgresql
108+
- name: AP_POSTGRES_PORT
109+
value: '5432'
110+
- name: AP_REDIS_PASSWORD
111+
value: activepieces
112+
- name: AP_ENCRYPTION_KEY
113+
value: secretsecret
114+
extraVolumes: []
115+
image:
116+
containerPort: '80'
117+
pullPolicy: Always
118+
repository: ghcr.io/activepieces/activepieces
119+
run:
120+
command: node index.js
121+
readOnlyAppStorage: true
122+
repository: node
123+
securityContext:
124+
allowPrivilegeEscalation: false
125+
capabilities:
126+
add: []
127+
drop: []
128+
readOnlyRootFilesystem: false
129+
runAsGroup: 0
130+
runAsNonRoot: false
131+
runAsUser: 0
132+
tag: latest
133+
tag: latest
134+
name: activepieces
135+
web:
136+
replicaCount: 1
137+
worker:
138+
replicaCount: 0

templates/affine.yaml

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
apiVersion: application.kubero.dev/v1alpha1
2+
kind: KuberoApp
3+
metadata:
4+
annotations:
5+
kubero.dev/template.architecture: '[]'
6+
kubero.dev/template.description: AFFiNE is a next-gen knowledge base that brings
7+
planning, sorting and creating all together
8+
kubero.dev/template.icon: https://raw.githubusercontent.com/toeverything/AFFiNE.pro/60f42504c0e1572a2ede0a8d95a398a229b0bb9a/public/overview/stay-focused-logo.png
9+
kubero.dev/template.installation: ''
10+
kubero.dev/template.links: '["https://docs.affine.pro/docs/hello-bonjour-aloha-%E4%BD%A0%E5%A5%BD"]'
11+
kubero.dev/template.screenshots: 'null'
12+
kubero.dev/template.source: https://github.com/toeverything/AFFiNE
13+
kubero.dev/template.tags: '["drawing","planning","collaboration"]'
14+
kubero.dev/template.title: AFFiNE
15+
kubero.dev/template.website: https://affine.pro/
16+
labels:
17+
manager: kubero
18+
name: affine
19+
spec:
20+
addons:
21+
- displayName: Postgresql
22+
env: []
23+
icon: /img/addons/postgresql.png
24+
id: kubero-operator
25+
kind: KuberoPostgresql
26+
resourceDefinitions:
27+
KuberoPostgresql:
28+
apiVersion: application.kubero.dev/v1alpha1
29+
kind: KuberoPostgresql
30+
metadata:
31+
name: affine-postgresql
32+
spec:
33+
postgresql:
34+
global:
35+
postgresql:
36+
auth:
37+
database: postgresql
38+
password: afffine
39+
postgresPassword: postgres
40+
username: affine
41+
storageClass: standard
42+
primary:
43+
persistence:
44+
size: 1Gi
45+
version:
46+
latest: 0.0.159
47+
- displayName: Redis
48+
env: []
49+
icon: /img/addons/Redis.png
50+
id: kubero-operator
51+
kind: KuberoRedis
52+
resourceDefinitions:
53+
KuberoRedis:
54+
apiVersion: application.kubero.dev/v1alpha1
55+
kind: KuberoRedis
56+
metadata:
57+
name: affine-redis
58+
spec:
59+
redis:
60+
architecture: replication
61+
global:
62+
redis:
63+
password: affine
64+
storageClass: standard
65+
master:
66+
persistence:
67+
size: 1Gi
68+
replica:
69+
persistence:
70+
size: 1Gi
71+
replicaCount: 1
72+
cronjobs: []
73+
deploymentstrategy: docker
74+
envVars:
75+
- name: NODE_OPTIONS
76+
value: --import=./scripts/register.js
77+
- name: REDIS_SERVER_HOST
78+
value: affine-redis-master
79+
- name: DATABASE_URL
80+
value: postgres://affine:afffine@affine-postgresql:5432/postgresql
81+
- name: NODE_ENV
82+
value: production
83+
- name: AFFINE_ADMIN_EMAIL
84+
85+
- name: AFFINE_ADMIN_PASSWORD
86+
value: admin
87+
- name: TELEMETRY_ENABLE
88+
value: 'false'
89+
- name: REDIS_SERVER_PASSWORD
90+
value: affine
91+
extraVolumes:
92+
- accessMode: ReadWriteOnce
93+
accessModes:
94+
- ReadWriteOnce
95+
emptyDir: false
96+
mountPath: /root/.affine
97+
name: affine-volume
98+
size: 1Gi
99+
storageClass: standard
100+
image:
101+
containerPort: '3010'
102+
pullPolicy: Always
103+
repository: ghcr.io/toeverything/affine-graphql
104+
tag: stable
105+
name: affine
106+
web:
107+
replicaCount: 1
108+
worker:
109+
replicaCount: 0

templates/appsmith.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
apiVersion: application.kubero.dev/v1alpha1
2+
kind: KuberoApp
3+
metadata:
4+
annotations:
5+
kubero.dev/template.architecture: '[]'
6+
kubero.dev/template.description: Low code project to build admin panels, internal
7+
tools, and dashboards. Integrates with 15+ databases and any API.
8+
kubero.dev/template.icon: https://avatars.githubusercontent.com/u/67620218?s=200&v=4
9+
kubero.dev/template.installation: ''
10+
kubero.dev/template.links: '[]'
11+
kubero.dev/template.screenshots: '["https://images.ctfassets.net/lpvian6u6i39/57xRxbPxLB5Rx6YYCQstyW/d605683e09640cabbb15e9a9d65dc03d/img-cta.png"]'
12+
kubero.dev/template.source: https://github.com/appsmithorg/appsmith
13+
kubero.dev/template.tags: '["admin-dashboard","workflows","app-builder"]'
14+
kubero.dev/template.title: Appsmith
15+
kubero.dev/template.website: https://www.appsmith.com
16+
name: appsmith
17+
spec:
18+
addons: []
19+
cronjobs: []
20+
deploymentstrategy: docker
21+
envVars: []
22+
extraVolumes:
23+
- accessModes:
24+
- ReadWriteMany
25+
emptyDir: false
26+
mountPath: /appsmith-stacks
27+
name: appsmith-volume
28+
size: 1Gi
29+
storageClass: standard
30+
image:
31+
containerPort: '80'
32+
repository: appsmith/appsmith-ce
33+
run:
34+
securityContext:
35+
readOnlyRootFilesystem: false
36+
tag: latest
37+
name: appsmith
38+
web:
39+
replicaCount: 1
40+
worker:
41+
replicaCount: 0

0 commit comments

Comments
 (0)