common

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCappConfig

func GetCappConfig(ctx context.Context, k8sClient client.Client) (*cappv1alpha1.CappConfig, error)

GetCappConfig returns an instance of Capp Config.

func IsDomainNameTaken added in v0.5.3

func IsDomainNameTaken(domainName string) (bool, error)

IsDomainNameTaken checks if the given hostname is already in use.

func ValidateDomainName

func ValidateDomainName(domainName string, allowedPatterns []cappv1alpha1.HostnamePattern) (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 failed.

func ValidateLogSpec

func ValidateLogSpec(logSpec cappv1alpha1.LogSpec) *apis.FieldError

ValidateLogSpec checks if the LogSpec is valid based on the Type field.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL