349 lines
8.3 KiB
YAML
349 lines
8.3 KiB
YAML
---
|
|
apiVersion: vinyl.solidite.fr/v1beta1
|
|
kind: Component
|
|
category: apps
|
|
metadata:
|
|
name: sonar
|
|
description: The code quality tool for better code
|
|
options:
|
|
app_group:
|
|
default: dev
|
|
examples:
|
|
- dev
|
|
type: string
|
|
backups:
|
|
default:
|
|
enable: false
|
|
endpoint: ''
|
|
key_id_key: s3-id
|
|
restic_key: bck-password
|
|
retention:
|
|
db: 30d
|
|
keepDaily: 14
|
|
keepMonthly: 12
|
|
keepWeekly: 6
|
|
keepYearly: 12
|
|
schedule:
|
|
db: 0 3 * * *
|
|
secret_key: s3-secret
|
|
secret_name: backup-settings
|
|
use_barman: false
|
|
examples:
|
|
- enable: false
|
|
endpoint: ''
|
|
key_id_key: s3-id
|
|
restic_key: bck-password
|
|
retention:
|
|
db: 30d
|
|
keepDaily: 14
|
|
keepMonthly: 12
|
|
keepWeekly: 6
|
|
keepYearly: 12
|
|
schedule:
|
|
db: 0 3 * * *
|
|
secret_key: s3-secret
|
|
secret_name: backup-settings
|
|
use_barman: false
|
|
properties:
|
|
enable:
|
|
default: false
|
|
type: boolean
|
|
endpoint:
|
|
default: ''
|
|
type: string
|
|
key_id_key:
|
|
default: s3-id
|
|
type: string
|
|
restic_key:
|
|
default: bck-password
|
|
type: string
|
|
retention:
|
|
default:
|
|
db: 30d
|
|
keepDaily: 14
|
|
keepMonthly: 12
|
|
keepWeekly: 6
|
|
keepYearly: 12
|
|
properties:
|
|
db:
|
|
default: 30d
|
|
type: string
|
|
keepDaily:
|
|
default: 14
|
|
type: integer
|
|
keepMonthly:
|
|
default: 12
|
|
type: integer
|
|
keepWeekly:
|
|
default: 6
|
|
type: integer
|
|
keepYearly:
|
|
default: 12
|
|
type: integer
|
|
type: object
|
|
schedule:
|
|
default:
|
|
db: 0 3 * * *
|
|
properties:
|
|
db:
|
|
default: 0 3 * * *
|
|
type: string
|
|
type: object
|
|
secret_key:
|
|
default: s3-secret
|
|
type: string
|
|
secret_name:
|
|
default: backup-settings
|
|
type: string
|
|
use_barman:
|
|
default: false
|
|
type: boolean
|
|
type: object
|
|
domain:
|
|
default: your-company
|
|
examples:
|
|
- your-company
|
|
type: string
|
|
domain_name:
|
|
default: your_company.com
|
|
examples:
|
|
- your_company.com
|
|
type: string
|
|
images:
|
|
default:
|
|
postgresql:
|
|
registry: ghcr.io
|
|
repository: cloudnative-pg/postgresql
|
|
tag: 15.3
|
|
sonar:
|
|
pull_policy: IfNotPresent
|
|
registry: docker.io
|
|
repository: sonarqube
|
|
tag: 10.5.1-community
|
|
examples:
|
|
- postgresql:
|
|
registry: ghcr.io
|
|
repository: cloudnative-pg/postgresql
|
|
tag: 15.3
|
|
sonar:
|
|
pull_policy: IfNotPresent
|
|
registry: docker.io
|
|
repository: sonarqube
|
|
tag: 10.5.1-community
|
|
properties:
|
|
postgresql:
|
|
default:
|
|
registry: ghcr.io
|
|
repository: cloudnative-pg/postgresql
|
|
tag: 15.3
|
|
properties:
|
|
registry:
|
|
default: ghcr.io
|
|
type: string
|
|
repository:
|
|
default: cloudnative-pg/postgresql
|
|
type: string
|
|
tag:
|
|
default: 15.3
|
|
type: number
|
|
type: object
|
|
sonar:
|
|
default:
|
|
pull_policy: IfNotPresent
|
|
registry: docker.io
|
|
repository: sonarqube
|
|
tag: 10.5.1-community
|
|
properties:
|
|
pull_policy:
|
|
default: IfNotPresent
|
|
enum:
|
|
- Always
|
|
- Never
|
|
- IfNotPresent
|
|
type: string
|
|
registry:
|
|
default: docker.io
|
|
type: string
|
|
repository:
|
|
default: sonarqube
|
|
type: string
|
|
tag:
|
|
default: 10.5.1-community
|
|
type: string
|
|
type: object
|
|
type: object
|
|
ingress_class:
|
|
default: traefik
|
|
examples:
|
|
- traefik
|
|
type: string
|
|
issuer:
|
|
default: letsencrypt-prod
|
|
examples:
|
|
- letsencrypt-prod
|
|
type: string
|
|
plugins:
|
|
default:
|
|
- https://github.com/vaulttec/sonar-auth-oidc/releases/download/v2.1.1/sonar-auth-oidc-plugin-2.1.1.jar
|
|
- https://github.com/jycr/sonar-l10n-fr/releases/download/9.9.0/sonar-l10n-fr-plugin-9.9.0.jar
|
|
- https://github.com/sbaudoin/sonar-yaml/releases/download/v1.7.0/sonar-yaml-plugin-1.7.0.jar
|
|
- https://github.com/sbaudoin/sonar-shellcheck/releases/download/v2.5.0/sonar-shellcheck-plugin-2.5.0.jar
|
|
- https://github.com/cnescatlab/sonar-hadolint-plugin/releases/download/1.1.0/sonar-hadolint-plugin-1.1.0.jar
|
|
- https://github.com/sbaudoin/sonar-ansible/releases/download/v2.5.1/sonar-ansible-extras-plugin-2.5.1.jar
|
|
examples:
|
|
- - https://github.com/vaulttec/sonar-auth-oidc/releases/download/v2.1.1/sonar-auth-oidc-plugin-2.1.1.jar
|
|
- https://github.com/jycr/sonar-l10n-fr/releases/download/9.9.0/sonar-l10n-fr-plugin-9.9.0.jar
|
|
- https://github.com/sbaudoin/sonar-yaml/releases/download/v1.7.0/sonar-yaml-plugin-1.7.0.jar
|
|
- https://github.com/sbaudoin/sonar-shellcheck/releases/download/v2.5.0/sonar-shellcheck-plugin-2.5.0.jar
|
|
- https://github.com/cnescatlab/sonar-hadolint-plugin/releases/download/1.1.0/sonar-hadolint-plugin-1.1.0.jar
|
|
- https://github.com/sbaudoin/sonar-ansible/releases/download/v2.5.1/sonar-ansible-extras-plugin-2.5.1.jar
|
|
items:
|
|
type: string
|
|
type: array
|
|
postgres:
|
|
default:
|
|
replicas: 1
|
|
examples:
|
|
- replicas: 1
|
|
properties:
|
|
replicas:
|
|
default: 1
|
|
type: integer
|
|
type: object
|
|
resources:
|
|
default:
|
|
limits:
|
|
cpu: 800m
|
|
ephemeral-storage: 512000M
|
|
memory: 6144M
|
|
requests:
|
|
cpu: 400m
|
|
ephemeral-storage: 1536M
|
|
memory: 2048M
|
|
examples:
|
|
- limits:
|
|
cpu: 800m
|
|
ephemeral-storage: 512000M
|
|
memory: 6144M
|
|
requests:
|
|
cpu: 400m
|
|
ephemeral-storage: 1536M
|
|
memory: 2048M
|
|
properties:
|
|
limits:
|
|
default:
|
|
cpu: 800m
|
|
ephemeral-storage: 512000M
|
|
memory: 6144M
|
|
properties:
|
|
cpu:
|
|
default: 800m
|
|
type: string
|
|
ephemeral-storage:
|
|
default: 512000M
|
|
type: string
|
|
memory:
|
|
default: 6144M
|
|
type: string
|
|
type: object
|
|
requests:
|
|
default:
|
|
cpu: 400m
|
|
ephemeral-storage: 1536M
|
|
memory: 2048M
|
|
properties:
|
|
cpu:
|
|
default: 400m
|
|
type: string
|
|
ephemeral-storage:
|
|
default: 1536M
|
|
type: string
|
|
memory:
|
|
default: 2048M
|
|
type: string
|
|
type: object
|
|
type: object
|
|
storage:
|
|
default:
|
|
postgres:
|
|
size: 5Gi
|
|
volume:
|
|
accessMode: ReadWriteOnce
|
|
class: ''
|
|
maxSize: 100Gi
|
|
size: 10Gi
|
|
type: Filesystem
|
|
description: Configure this app storage
|
|
examples:
|
|
- postgres:
|
|
size: 5Gi
|
|
volume:
|
|
accessMode: ReadWriteOnce
|
|
class: ''
|
|
maxSize: 100Gi
|
|
size: 10Gi
|
|
type: Filesystem
|
|
properties:
|
|
postgres:
|
|
default:
|
|
size: 5Gi
|
|
properties:
|
|
size:
|
|
default: 5Gi
|
|
type: string
|
|
type: object
|
|
volume:
|
|
default:
|
|
accessMode: ReadWriteOnce
|
|
class: ''
|
|
maxSize: 100Gi
|
|
size: 10Gi
|
|
type: Filesystem
|
|
properties:
|
|
accessMode:
|
|
default: ReadWriteOnce
|
|
enum:
|
|
- ReadWriteOnce
|
|
- ReadOnlyMany
|
|
- ReadWriteMany
|
|
type: string
|
|
class:
|
|
default: ''
|
|
type: string
|
|
maxSize:
|
|
default: 100Gi
|
|
type: string
|
|
size:
|
|
default: 10Gi
|
|
type: string
|
|
type:
|
|
default: Filesystem
|
|
enum:
|
|
- Filesystem
|
|
- Block
|
|
type: string
|
|
type: object
|
|
type: object
|
|
sub_domain:
|
|
default: sonar
|
|
examples:
|
|
- sonar
|
|
type: string
|
|
dependencies:
|
|
- dist: null
|
|
category: core
|
|
component: cert-manager-self-sign
|
|
- dist: null
|
|
category: dbo
|
|
component: pg
|
|
providers:
|
|
kubernetes: true
|
|
authentik: true
|
|
kubectl: true
|
|
postgresql: null
|
|
mysql: null
|
|
restapi: null
|
|
http: null
|
|
gitea: null
|
|
tfaddtype: null
|