Skip to content

feat(gitea): add development-values.yaml for headless installation support #101

@adamancini

Description

@adamancini

Summary

The gitea application is missing a development-values.yaml file (a ConfigValues kind) that would enable headless installations and CI/CD automation via kubectl kots install --config-values.

Context

The storagebox application in this monorepo establishes a "four-way contract" pattern between:

  1. development-values.yaml - ConfigValues for headless installations
  2. kots/kots-config.yaml - Admin Console configuration UI
  3. kots/<app>-chart.yaml - HelmChart CR with KOTS template functions
  4. charts/<app>/values.yaml - Base Helm chart values

The gitea application currently has items 2-4 but is missing item 1. This was identified during the Bitnami-to-CNPG/Valkey migration (replacing Bitnami PostgreSQL and Redis with CloudNativePG and Valkey).

Proposed File

Create applications/gitea/development-values.yaml:

apiVersion: kots.io/v1beta1
kind: ConfigValues
metadata:
  name: gitea-config-values
spec:
  values:
    internal_postgres_enabled:
      default: "1"
      value: "1"
    postgres_db:
      default: "gitea"
      value: "gitea"
    postgres_user:
      default: "gitea"
      value: "gitea"
    postgres_password:
      default: "gitea"
      value: "gitea"
    postgres_host:
      default: "gitea-postgres-rw:5432"
      value: "gitea-postgres-rw:5432"
    internal_valkey_enabled:
      default: "1"
      value: "1"
    valkey_password:
      default: "changeme"
      value: "changeme"

Benefits

  • Enables headless installation for CI/CD pipelines
  • Maintains consistency with the storagebox four-way contract pattern
  • Documents expected default values in a machine-readable format

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions