Documentation
¶
Index ¶
- func GetCappConfig(ctx context.Context, k8sClient client.Client) (*v1alpha2.CappConfig, error)
- func IsDomainNameTaken(domainName string) (bool, error)
- func ValidateDomainName(domainName string, allowedPatterns []string) (errs *apis.FieldError)
- func ValidateLogSpec(logSpec v1alpha2.LogSpec) *apis.FieldError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCappConfig ¶
GetCappConfig returns an instance of Capp Config.
func IsDomainNameTaken ¶ added in v0.5.3
IsDomainNameTaken checks if the given hostname is already in use.
func ValidateDomainName ¶
func ValidateDomainName(domainName string, allowedPatterns []string) (errs *apis.FieldError)
ValidateDomainName checks if the hostname is valid domain name and not part of the cluster's domain. it returns aggregated error if any of the validations falied.
func ValidateLogSpec ¶
func ValidateLogSpec(logSpec v1alpha2.LogSpec) *apis.FieldError
ValidateLogSpec checks if the LogSpec is valid based on the Type field.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.