Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ClusterName string `yaml:"clusterName"` Namespaces map[string]K8SObjects `yaml:"namespaces"` ExternalDNS ExternalDNS `yaml:"externalDNS"` NginxIngressController NginxIngressController `yaml:"nginxIngressController"` ModsecIngressController ModsecIngressController `yaml:"modsecIngressController"` FilesExist []string `yaml:"filesExist"` }
Config holds the basic structure of test's YAML file
func ParseConfigFile ¶
ParseConfigFile loads the test file supplied
func (*Config) GetExpectedDaemonSets ¶
defaultsFromEnvs process the mandatory fields in the config. If they are not set, it tries to load them from environment variables
func (*Config) GetExpectedServiceMonitors ¶
GetServiceMonitors process the mandatory fields in the config. If they are not set, it tries to load them from environment variables
func (*Config) GetExpectedServices ¶
GetExpectedServices returns a slice of all the services that are expected to be in the cluster.
type ExternalDNS ¶
type ExternalDNS struct { NamespacePrefix string `yaml:"namespacePrefix"` HostedZoneId string `yaml:"hostedZoneId"` Domain string `yaml:"domain"` }
ExternalDNS holds the config for externalDNS component
func (*ExternalDNS) GetNamespaceName ¶
func (e *ExternalDNS) GetNamespaceName() string
GetNamespaceName returns random namespace name, it considers (if set) the prefix specified in the configuration
type K8SObjects ¶
type K8SObjects struct { Servicemonitors []string `yaml:"servicemonitors"` Daemonsets []string `yaml:"daemonsets"` Services []string `yaml:"services"` Secrets []string `yaml:"secrets"` }
K8SObjects are kubernetes objects nested from namespaces, we need to check these resources are checked for its existence
type ModsecIngressController ¶
type ModsecIngressController struct {
NamespacePrefix string `yaml:"namespacePrefix"`
}
type NginxIngressController ¶
type NginxIngressController struct {
NamespacePrefix string `yaml:"namespacePrefix"`
}
NginxIngressController holds the config for nginx ingress controller component