Documentation
¶
Index ¶
- Constants
- func ToAppHealthProbes(health *config.ComponentHealthConfig) app.ComponentHealthProbes
- func ToAppHealthProbesFromList(probes []config.ComponentHealthProbeConfig) app.ComponentHealthProbes
- func ToAppRequiredChecks(names []string) app.ComponentHealthRequiredChecks
- func ValidateBuildTimeout(timeout string) error
- func ValidateCronSchedule(cronExpr string) error
- func ValidateDNSName(name string, minLen, maxLen int) error
- func ValidateDNSSubdomain(name string) error
- func ValidateDeployTimeout(timeout string) error
- func ValidateEntityName(name string) error
- func ValidateHealthProbeList(probes []config.ComponentHealthProbeConfig) error
- func ValidateHealthProbes(health *config.ComponentHealthConfig) error
- func ValidateHealthStabilizationWindow(window string) error
- func ValidateInterpolatedName(name string) error
- func ValidateMaxAutoRetries(maxAutoRetries int) error
- func ValidateRequiredChecks(names []string) error
- func ValidateTerraformMinVersion(version string) error
- func ValidateTerraformVersion(version string, minVersion string, maxVersion string) error
Constants ¶
const MinTerraformVersion = "1.8.0"
Variables ¶
This section is empty.
Functions ¶
func ToAppHealthProbes ¶
func ToAppHealthProbes(health *config.ComponentHealthConfig) app.ComponentHealthProbes
ToAppHealthProbes converts declared probes into the JSONB payload persisted on the component config connection.
func ToAppHealthProbesFromList ¶
func ToAppHealthProbesFromList(probes []config.ComponentHealthProbeConfig) app.ComponentHealthProbes
ToAppHealthProbesFromList converts an already-flattened probe list into the JSONB payload persisted on the component config connection.
func ToAppRequiredChecks ¶
func ToAppRequiredChecks(names []string) app.ComponentHealthRequiredChecks
func ValidateBuildTimeout ¶
ValidateBuildTimeout validates a build timeout duration string. Returns an error if the format is invalid or the value is out of range.
func ValidateCronSchedule ¶
ValidateCronSchedule validates a cron expression string. Returns an error if the cron expression is invalid or fires more frequently than validatorPkg.MinCronInterval. Duplicates logic from services/ctl-api/internal/pkg/validator/cron_schedule.go
func ValidateDNSName ¶
ValidateDNSName validates a DNS RFC 1035 label (used for Helm chart names, K8s resources, etc). Must be 1-63 characters, start with a letter, and contain only lowercase letters, numbers, and hyphens.
func ValidateDNSSubdomain ¶
ValidateDNSSubdomain validates a DNS RFC 1123 subdomain, the form Kubernetes object names take.
func ValidateDeployTimeout ¶
ValidateDeployTimeout validates a deploy timeout duration string. Returns an error if the format is invalid or the value is out of range.
func ValidateEntityName ¶
ValidateEntityName validates a standard entity name. Allows: lowercase letters, numbers, underscores, and hyphens Duplicates logic from services/ctl-api/internal/pkg/validator/entity_name.go
func ValidateHealthProbeList ¶
func ValidateHealthProbeList(probes []config.ComponentHealthProbeConfig) error
ValidateHealthProbeList validates an already-flattened probe list.
func ValidateHealthProbes ¶
func ValidateHealthProbes(health *config.ComponentHealthConfig) error
ValidateHealthProbes validates the probes declared on a component health block, using the same rules the CLI applies before sync.
func ValidateHealthStabilizationWindow ¶
ValidateHealthStabilizationWindow validates a health stabilization window duration string. Returns an error if the format is invalid or the value is out of range.
func ValidateInterpolatedName ¶
ValidateInterpolatedName validates a name that allows interpolation syntax. Allows: lowercase letters, numbers, underscores, dots, and curly braces Duplicates logic from services/ctl-api/internal/pkg/validator/interpolated_name.go
func ValidateMaxAutoRetries ¶
ValidateMaxAutoRetries validates a max auto retries value.
func ValidateRequiredChecks ¶
ValidateRequiredChecks rejects names the push endpoint would refuse, so a deploy cannot be gated on a check that can never be reported.
func ValidateTerraformMinVersion ¶
ValidateTerraformMinVersion validates a Terraform version string against only the minimum constraint. Used by the DB syncer which does not have access to tfClient.GetLatestVersion() for the upper bound.
Types ¶
This section is empty.