gitops_config.ts

Declarations
#

Configuration types and normalization for gitops multi-repo management.

Two-phase configuration system: - RawGitopsConfig - User-friendly format with optional fields and flexible types - GitopsConfig - Internal format with required fields and strict types

This allows users to provide minimal configs (e.g., just URLs as strings) while the system works with normalized configs internally for type safety.

10 declarations

view source

create_empty_gitops_config
#

CreateGitopsConfig
#

GitopsConfig
#

GitopsConfigModule
#

GitopsRepoConfig
#

gitops_config.ts view source

GitopsRepoConfig

repo_url

The HTTPS URL to the repo. Does not include a .git suffix.

type Url

repo_dir

Relative or absolute path to the repo's local directory. If null, the directory is inferred from the URL and cwd.

type string | null

branch

The branch name to use when fetching the repo. Defaults to main.

type GitBranch

load_gitops_config
#

gitops_config.ts view source

(config_path: string): Promise<GitopsConfig | null>

config_path

type string

returns

Promise<GitopsConfig | null>

normalize_gitops_config
#

RawGitopsConfig
#

RawGitopsRepoConfig
#

validate_gitops_config_module
#

gitops_config.ts view source

(config_module: any, config_path: string): asserts config_module is GitopsConfigModule

config_module

type any

config_path

type string

returns

void

Depends on
#

Imported by
#