cozystack/packages/apps/harbor/values.yaml
Aleksei Sviridkin e7ffc21743
feat(harbor): switch registry storage to S3 via COSI BucketClaim
Replace PVC-based registry storage with S3 via COSI BucketClaim/BucketAccess.
The system chart parses BucketInfo secret and creates a registry-s3 Secret
with REGISTRY_STORAGE_S3_* env vars that override Harbor's ConfigMap values.

- Add bucket-secret.yaml to system chart (BucketInfo parser)
- Remove storageType/size from registry config (S3 is now the only option)
- Use Harbor's existingSecret support for S3 credentials injection
- Add objectstorage-controller to PackageSource dependencies
- Update E2E test with COSI bucket provisioning waits and diagnostics

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-02-18 01:23:02 +03:00

84 lines
3.1 KiB
YAML

##
## @section Common parameters
##
## @param {string} [host] - Hostname for external access to Harbor (defaults to 'harbor' subdomain for the tenant host).
host: ""
## @param {string} storageClass - StorageClass used to store the data.
storageClass: ""
##
## @section Component configuration
##
## @typedef {struct} Resources - Resource configuration.
## @field {quantity} [cpu] - Number of CPU cores allocated.
## @field {quantity} [memory] - Amount of memory allocated.
## @enum {string} ResourcesPreset - Default sizing preset.
## @value nano
## @value micro
## @value small
## @value medium
## @value large
## @value xlarge
## @value 2xlarge
## @typedef {struct} Core - Core API server configuration.
## @field {Resources} [resources] - Explicit CPU and memory configuration. When omitted, the preset defined in `resourcesPreset` is applied.
## @field {ResourcesPreset} [resourcesPreset] - Default sizing preset used when `resources` is omitted.
## @param {Core} core - Core API server configuration.
core:
resources: {}
resourcesPreset: "small"
## @typedef {struct} Registry - Container image registry configuration.
## @field {Resources} [resources] - Explicit CPU and memory configuration. When omitted, the preset defined in `resourcesPreset` is applied.
## @field {ResourcesPreset} [resourcesPreset] - Default sizing preset used when `resources` is omitted.
## @param {Registry} registry - Container image registry configuration.
registry:
resources: {}
resourcesPreset: "small"
## @typedef {struct} Jobservice - Background job service configuration.
## @field {Resources} [resources] - Explicit CPU and memory configuration. When omitted, the preset defined in `resourcesPreset` is applied.
## @field {ResourcesPreset} [resourcesPreset] - Default sizing preset used when `resources` is omitted.
## @param {Jobservice} jobservice - Background job service configuration.
jobservice:
resources: {}
resourcesPreset: "nano"
## @typedef {struct} Trivy - Trivy vulnerability scanner configuration.
## @field {bool} enabled - Enable or disable the vulnerability scanner.
## @field {quantity} size - Persistent Volume size for vulnerability database cache.
## @field {Resources} [resources] - Explicit CPU and memory configuration. When omitted, the preset defined in `resourcesPreset` is applied.
## @field {ResourcesPreset} [resourcesPreset] - Default sizing preset used when `resources` is omitted.
## @param {Trivy} trivy - Trivy vulnerability scanner configuration.
trivy:
enabled: true
size: 5Gi
resources: {}
resourcesPreset: "nano"
## @typedef {struct} Database - PostgreSQL database configuration (provisioned via CloudNativePG).
## @field {quantity} size - Persistent Volume size for database storage.
## @field {int} replicas - Number of database instances.
## @param {Database} database - PostgreSQL database configuration.
database:
size: 5Gi
replicas: 2
## @typedef {struct} Redis - Redis cache configuration (provisioned via redis-operator).
## @field {quantity} size - Persistent Volume size for cache storage.
## @field {int} replicas - Number of Redis replicas.
## @param {Redis} redis - Redis cache configuration.
redis:
size: 1Gi
replicas: 2