Skip to content

Commit

Permalink
Merge pull request #477 from kubero-dev/feature/migrate-to-singlefile…
Browse files Browse the repository at this point in the history
…-templates-2

Feature / migrate to singlefile templates
  • Loading branch information
mms-gianni authored Nov 7, 2024
2 parents b2bec73 + 832bc68 commit 24ef5be
Show file tree
Hide file tree
Showing 95 changed files with 4,889 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,16 @@ on:
paths-ignore:
- 'docs/**'
- 'services/**'
- 'templates/**'
- '.github/**'
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
paths-ignore:
- 'docs/**'
- 'services/**'
- 'templates/**'
- '.github/**'
schedule:
- cron: '39 11 * * 2'

Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/yamllint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,29 @@ on:
pull_request:
paths:
- 'services/**'
- 'templates/**'
jobs:
yamllint:
name: 'Yamllint'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@master
- name: 'Yamllint'
- name: 'Yamllint services'
uses: karancode/yamllint-github-action@master
with:
yamllint_file_or_dir: 'services'
yamllint_config_datapath: 'services/.yamllint'
yamllint_strict: false
yamllint_comment: true
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 'Yamllint templates'
uses: karancode/yamllint-github-action@master
with:
yamllint_file_or_dir: 'templates'
yamllint_config_datapath: 'templates/.yamllint'
yamllint_strict: false
yamllint_comment: true
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30 changes: 30 additions & 0 deletions templates/.yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
extends: default

rules:
braces:
level: warning
max-spaces-inside: 1
brackets:
level: warning
max-spaces-inside: 1
colons:
level: warning
commas:
level: warning
comments: disable
comments-indentation: disable
document-start: disable
empty-lines:
level: warning
hyphens:
level: warning
indentation:
level: warning
indent-sequences: consistent
line-length:
max: 300
level: warning
allow-non-breakable-inline-mappings: true
truthy: disable
new-line-at-end-of-file: disable
138 changes: 138 additions & 0 deletions templates/activepieces.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
apiVersion: application.kubero.dev/v1alpha1
kind: KuberoApp
metadata:
annotations:
kubero.dev/template.architecture: '[]'
kubero.dev/template.description: "Your friendliest open source all-in-one automation\
\ tool \u2728 Workflow automation tool 100+ integration / Enterprise automation\
\ tool / Zapier Alternative"
kubero.dev/template.icon: https://avatars.githubusercontent.com/u/99494700?s=200&v=4
kubero.dev/template.installation: ''
kubero.dev/template.links: '[]'
kubero.dev/template.screenshots: '["https://github.com/activepieces/activepieces/assets/1812998/e75616ce-7801-45b7-b3fa-eba778bebde3"]'
kubero.dev/template.source: https://github.com/activepieces/activepieces
kubero.dev/template.tags: '["Workflow","Automation","low-code","no-code"]'
kubero.dev/template.title: Activepieces
kubero.dev/template.website: https://www.activepieces.com/
labels:
manager: kubero
name: activepieces
spec:
addons:
- displayName: Postgresql
env: []
icon: /img/addons/postgresql.png
id: kubero-operator
kind: KuberoPostgresql
resourceDefinitions:
KuberoPostgresql:
apiVersion: application.kubero.dev/v1alpha1
kind: KuberoPostgresql
metadata:
name: activepieces-postgresql
spec:
postgresql:
global:
postgresql:
auth:
database: postgresql
password: activepieces
postgresPassword: admin
username: activepieces
storageClass: standard
primary:
persistence:
size: 1Gi
version:
latest: 0.0.151
- displayName: Redis
env: []
icon: /img/addons/Redis.png
id: kubero-operator
kind: KuberoRedis
resourceDefinitions:
KuberoRedis:
apiVersion: application.kubero.dev/v1alpha1
kind: KuberoRedis
metadata:
name: activepieces-redis
spec:
redis:
architecture: replication
global:
redis:
password: activepieces
storageClass: standard
master:
persistence:
size: 1Gi
replica:
persistence:
size: 1Gi
replicaCount: 3
version:
latest: 0.0.151
cronjobs: []
deploymentstrategy: docker
envVars:
- name: AP_POSTGRES_DATABASE
value: postgresql
- name: AP_POSTGRES_PASSWORD
value: activepieces
- name: AP_POSTGRES_USERNAME
value: activepieces
- name: AP_ENGINE_EXECUTABLE_PATH
value: dist/packages/engine/main.js
- name: AP_JWT_SECRET
value: secret
- name: AP_ENVIRONMENT
value: prod
- name: AP_FRONTEND_URL
value: http://activepieces.lacolhost.com
- name: AP_WEBHOOK_TIMEOUT_SECONDS
value: '30'
- name: AP_TRIGGER_DEFAULT_POLL_INTERVAL
value: '5'
- name: AP_REDIS_HOST
value: activepieces-redis-master
- name: AP_REDIS_PORT
value: '6379'
- name: AP_SANDBOX_RUN_TIME_SECONDS
value: '600'
- name: AP_TELEMETRY_ENABLED
value: 'true'
- name: AP_TEMPLATES_SOURCE_URL
value: https://cloud.activepieces.com/api/v1/flow-templates
- name: AP_POSTGRES_HOST
value: activepieces-postgresql
- name: AP_POSTGRES_PORT
value: '5432'
- name: AP_REDIS_PASSWORD
value: activepieces
- name: AP_ENCRYPTION_KEY
value: secretsecret
extraVolumes: []
image:
containerPort: '80'
pullPolicy: Always
repository: ghcr.io/activepieces/activepieces
run:
command: node index.js
readOnlyAppStorage: true
repository: node
securityContext:
allowPrivilegeEscalation: false
capabilities:
add: []
drop: []
readOnlyRootFilesystem: false
runAsGroup: 0
runAsNonRoot: false
runAsUser: 0
tag: latest
tag: latest
name: activepieces
web:
replicaCount: 1
worker:
replicaCount: 0
109 changes: 109 additions & 0 deletions templates/affine.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
apiVersion: application.kubero.dev/v1alpha1
kind: KuberoApp
metadata:
annotations:
kubero.dev/template.architecture: '[]'
kubero.dev/template.description: AFFiNE is a next-gen knowledge base that brings
planning, sorting and creating all together
kubero.dev/template.icon: https://raw.githubusercontent.com/toeverything/AFFiNE.pro/60f42504c0e1572a2ede0a8d95a398a229b0bb9a/public/overview/stay-focused-logo.png
kubero.dev/template.installation: ''
kubero.dev/template.links: '["https://docs.affine.pro/docs/hello-bonjour-aloha-%E4%BD%A0%E5%A5%BD"]'
kubero.dev/template.screenshots: 'null'
kubero.dev/template.source: https://github.com/toeverything/AFFiNE
kubero.dev/template.tags: '["drawing","planning","collaboration"]'
kubero.dev/template.title: AFFiNE
kubero.dev/template.website: https://affine.pro/
labels:
manager: kubero
name: affine
spec:
addons:
- displayName: Postgresql
env: []
icon: /img/addons/postgresql.png
id: kubero-operator
kind: KuberoPostgresql
resourceDefinitions:
KuberoPostgresql:
apiVersion: application.kubero.dev/v1alpha1
kind: KuberoPostgresql
metadata:
name: affine-postgresql
spec:
postgresql:
global:
postgresql:
auth:
database: postgresql
password: afffine
postgresPassword: postgres
username: affine
storageClass: standard
primary:
persistence:
size: 1Gi
version:
latest: 0.0.159
- displayName: Redis
env: []
icon: /img/addons/Redis.png
id: kubero-operator
kind: KuberoRedis
resourceDefinitions:
KuberoRedis:
apiVersion: application.kubero.dev/v1alpha1
kind: KuberoRedis
metadata:
name: affine-redis
spec:
redis:
architecture: replication
global:
redis:
password: affine
storageClass: standard
master:
persistence:
size: 1Gi
replica:
persistence:
size: 1Gi
replicaCount: 1
cronjobs: []
deploymentstrategy: docker
envVars:
- name: NODE_OPTIONS
value: --import=./scripts/register.js
- name: REDIS_SERVER_HOST
value: affine-redis-master
- name: DATABASE_URL
value: postgres://affine:afffine@affine-postgresql:5432/postgresql
- name: NODE_ENV
value: production
- name: AFFINE_ADMIN_EMAIL
value: [email protected]
- name: AFFINE_ADMIN_PASSWORD
value: admin
- name: TELEMETRY_ENABLE
value: 'false'
- name: REDIS_SERVER_PASSWORD
value: affine
extraVolumes:
- accessMode: ReadWriteOnce
accessModes:
- ReadWriteOnce
emptyDir: false
mountPath: /root/.affine
name: affine-volume
size: 1Gi
storageClass: standard
image:
containerPort: '3010'
pullPolicy: Always
repository: ghcr.io/toeverything/affine-graphql
tag: stable
name: affine
web:
replicaCount: 1
worker:
replicaCount: 0
41 changes: 41 additions & 0 deletions templates/appsmith.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
apiVersion: application.kubero.dev/v1alpha1
kind: KuberoApp
metadata:
annotations:
kubero.dev/template.architecture: '[]'
kubero.dev/template.description: Low code project to build admin panels, internal
tools, and dashboards. Integrates with 15+ databases and any API.
kubero.dev/template.icon: https://avatars.githubusercontent.com/u/67620218?s=200&v=4
kubero.dev/template.installation: ''
kubero.dev/template.links: '[]'
kubero.dev/template.screenshots: '["https://images.ctfassets.net/lpvian6u6i39/57xRxbPxLB5Rx6YYCQstyW/d605683e09640cabbb15e9a9d65dc03d/img-cta.png"]'
kubero.dev/template.source: https://github.com/appsmithorg/appsmith
kubero.dev/template.tags: '["admin-dashboard","workflows","app-builder"]'
kubero.dev/template.title: Appsmith
kubero.dev/template.website: https://www.appsmith.com
name: appsmith
spec:
addons: []
cronjobs: []
deploymentstrategy: docker
envVars: []
extraVolumes:
- accessModes:
- ReadWriteMany
emptyDir: false
mountPath: /appsmith-stacks
name: appsmith-volume
size: 1Gi
storageClass: standard
image:
containerPort: '80'
repository: appsmith/appsmith-ce
run:
securityContext:
readOnlyRootFilesystem: false
tag: latest
name: appsmith
web:
replicaCount: 1
worker:
replicaCount: 0
Loading

0 comments on commit 24ef5be

Please sign in to comment.