Documentation
¶
Overview ¶
Package v1alpha1 contains the shoot networking filter extension configuration. +groupName=shoot-networking-filter.extensions.config.gardener.cloud
Index ¶
- Constants
- Variables
- func Convert_config_Configuration_To_v1alpha1_Configuration(in *config.Configuration, out *Configuration, s conversion.Scope) error
- func Convert_config_DownloaderConfig_To_v1alpha1_DownloaderConfig(in *config.DownloaderConfig, out *DownloaderConfig, s conversion.Scope) error
- func Convert_config_EgressFilter_To_v1alpha1_EgressFilter(in *config.EgressFilter, out *EgressFilter, s conversion.Scope) error
- func Convert_config_EnsureConnectivity_To_v1alpha1_EnsureConnectivity(in *config.EnsureConnectivity, out *EnsureConnectivity, s conversion.Scope) error
- func Convert_config_Filter_To_v1alpha1_Filter(in *config.Filter, out *Filter, s conversion.Scope) error
- func Convert_config_Workers_To_v1alpha1_Workers(in *config.Workers, out *Workers, s conversion.Scope) error
- func Convert_v1alpha1_Configuration_To_config_Configuration(in *Configuration, out *config.Configuration, s conversion.Scope) error
- func Convert_v1alpha1_DownloaderConfig_To_config_DownloaderConfig(in *DownloaderConfig, out *config.DownloaderConfig, s conversion.Scope) error
- func Convert_v1alpha1_EgressFilter_To_config_EgressFilter(in *EgressFilter, out *config.EgressFilter, s conversion.Scope) error
- func Convert_v1alpha1_EnsureConnectivity_To_config_EnsureConnectivity(in *EnsureConnectivity, out *config.EnsureConnectivity, s conversion.Scope) error
- func Convert_v1alpha1_Filter_To_config_Filter(in *Filter, out *config.Filter, s conversion.Scope) error
- func Convert_v1alpha1_Workers_To_config_Workers(in *Workers, out *config.Workers, s conversion.Scope) error
- func Kind(kind string) schema.GroupKind
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- func SetDefaults_Configuration(obj *Configuration)
- func SetObjectDefaults_Configuration(in *Configuration)
- type Configuration
- type DownloaderConfig
- type EgressFilter
- type EnsureConnectivity
- type Filter
- type FilterListProviderType
- type Policy
- type Workers
Constants ¶
const GroupName = "shoot-networking-filter.extensions.config.gardener.cloud"
GroupName is the group name use in this package
Variables ¶
var (
// AddToScheme is a pointer to SchemeBuilder.AddToScheme.
AddToScheme = localSchemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Convert_config_Configuration_To_v1alpha1_Configuration ¶
func Convert_config_Configuration_To_v1alpha1_Configuration(in *config.Configuration, out *Configuration, s conversion.Scope) error
Convert_config_Configuration_To_v1alpha1_Configuration is an autogenerated conversion function.
func Convert_config_DownloaderConfig_To_v1alpha1_DownloaderConfig ¶
func Convert_config_DownloaderConfig_To_v1alpha1_DownloaderConfig(in *config.DownloaderConfig, out *DownloaderConfig, s conversion.Scope) error
Convert_config_DownloaderConfig_To_v1alpha1_DownloaderConfig is an autogenerated conversion function.
func Convert_config_EgressFilter_To_v1alpha1_EgressFilter ¶
func Convert_config_EgressFilter_To_v1alpha1_EgressFilter(in *config.EgressFilter, out *EgressFilter, s conversion.Scope) error
Convert_config_EgressFilter_To_v1alpha1_EgressFilter is an autogenerated conversion function.
func Convert_config_EnsureConnectivity_To_v1alpha1_EnsureConnectivity ¶
func Convert_config_EnsureConnectivity_To_v1alpha1_EnsureConnectivity(in *config.EnsureConnectivity, out *EnsureConnectivity, s conversion.Scope) error
Convert_config_EnsureConnectivity_To_v1alpha1_EnsureConnectivity is an autogenerated conversion function.
func Convert_config_Filter_To_v1alpha1_Filter ¶
func Convert_config_Filter_To_v1alpha1_Filter(in *config.Filter, out *Filter, s conversion.Scope) error
Convert_config_Filter_To_v1alpha1_Filter is an autogenerated conversion function.
func Convert_config_Workers_To_v1alpha1_Workers ¶ added in v0.21.0
func Convert_config_Workers_To_v1alpha1_Workers(in *config.Workers, out *Workers, s conversion.Scope) error
Convert_config_Workers_To_v1alpha1_Workers is an autogenerated conversion function.
func Convert_v1alpha1_Configuration_To_config_Configuration ¶
func Convert_v1alpha1_Configuration_To_config_Configuration(in *Configuration, out *config.Configuration, s conversion.Scope) error
Convert_v1alpha1_Configuration_To_config_Configuration is an autogenerated conversion function.
func Convert_v1alpha1_DownloaderConfig_To_config_DownloaderConfig ¶
func Convert_v1alpha1_DownloaderConfig_To_config_DownloaderConfig(in *DownloaderConfig, out *config.DownloaderConfig, s conversion.Scope) error
Convert_v1alpha1_DownloaderConfig_To_config_DownloaderConfig is an autogenerated conversion function.
func Convert_v1alpha1_EgressFilter_To_config_EgressFilter ¶
func Convert_v1alpha1_EgressFilter_To_config_EgressFilter(in *EgressFilter, out *config.EgressFilter, s conversion.Scope) error
Convert_v1alpha1_EgressFilter_To_config_EgressFilter is an autogenerated conversion function.
func Convert_v1alpha1_EnsureConnectivity_To_config_EnsureConnectivity ¶
func Convert_v1alpha1_EnsureConnectivity_To_config_EnsureConnectivity(in *EnsureConnectivity, out *config.EnsureConnectivity, s conversion.Scope) error
Convert_v1alpha1_EnsureConnectivity_To_config_EnsureConnectivity is an autogenerated conversion function.
func Convert_v1alpha1_Filter_To_config_Filter ¶
func Convert_v1alpha1_Filter_To_config_Filter(in *Filter, out *config.Filter, s conversion.Scope) error
Convert_v1alpha1_Filter_To_config_Filter is an autogenerated conversion function.
func Convert_v1alpha1_Workers_To_config_Workers ¶ added in v0.21.0
func Convert_v1alpha1_Workers_To_config_Workers(in *Workers, out *config.Workers, s conversion.Scope) error
Convert_v1alpha1_Workers_To_config_Workers is an autogenerated conversion function.
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
func SetDefaults_Configuration ¶
func SetDefaults_Configuration(obj *Configuration)
SetDefaults_Configuration sets default values for Configuration objects.
func SetObjectDefaults_Configuration ¶
func SetObjectDefaults_Configuration(in *Configuration)
Types ¶
type Configuration ¶
type Configuration struct { metav1.TypeMeta `json:",inline"` // EgressFilter contains the configuration for the egress filter // +optional EgressFilter *EgressFilter `json:"egressFilter,omitempty"` // HealthCheckConfig is the config for the health check controller. // +optional HealthCheckConfig *extensionsconfigv1alpha1.HealthCheckConfig `json:"healthCheckConfig,omitempty"` }
Configuration contains information about the policy filter configuration.
func (*Configuration) DeepCopy ¶
func (in *Configuration) DeepCopy() *Configuration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Configuration.
func (*Configuration) DeepCopyInto ¶
func (in *Configuration) DeepCopyInto(out *Configuration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Configuration) DeepCopyObject ¶
func (in *Configuration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DownloaderConfig ¶
type DownloaderConfig struct { // Endpoint is the endpoint URL for downloading the filter list. Endpoint string `json:"endpoint"` // OAuth2Endpoint contains the optional OAuth endpoint for fetching the access token. // If specified, the OAuth2Secret must be provided, too. // +optional OAuth2Endpoint *string `json:"oauth2Endpoint,omitempty"` // RefreshPeriod is interval for refreshing the filter list. // If unset, the filter list is only fetched on startup. // +optional RefreshPeriod *metav1.Duration `json:"refreshPeriod,omitempty"` }
DownloaderConfig contains the configuration for the filter list downloader.
func (*DownloaderConfig) DeepCopy ¶
func (in *DownloaderConfig) DeepCopy() *DownloaderConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DownloaderConfig.
func (*DownloaderConfig) DeepCopyInto ¶
func (in *DownloaderConfig) DeepCopyInto(out *DownloaderConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EgressFilter ¶
type EgressFilter struct { // BlackholingEnabled is a flag to set blackholing or firewall approach. BlackholingEnabled bool `json:"blackholingEnabled"` // Workers contains worker-specific block modes // +optional Workers *Workers `json:"workers,omitempty"` // SleepDuration is the time interval between policy updates. SleepDuration *metav1.Duration `json:"sleepDuration,omitempty"` // FilterListProviderType specifies how the filter list is retrieved. // Supported types are `static` and `download`. FilterListProviderType FilterListProviderType `json:"filterListProviderType,omitempty"` // StaticFilterList contains the static filter list. // Only used for provider type `static`. // +optional StaticFilterList []Filter `json:"staticFilterList,omitempty"` // DownloaderConfig contains the configuration for the filter list downloader. // Only used for provider type `download`. // +optional DownloaderConfig *DownloaderConfig `json:"downloaderConfig,omitempty"` // EnsureConnectivity configures the removal of seed and/or shoot load balancers IPs from the filter list. // +optional EnsureConnectivity *EnsureConnectivity `json:"ensureConnectivity,omitempty"` }
EgressFilter contains the configuration for the egress filter.
func (*EgressFilter) DeepCopy ¶
func (in *EgressFilter) DeepCopy() *EgressFilter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EgressFilter.
func (*EgressFilter) DeepCopyInto ¶
func (in *EgressFilter) DeepCopyInto(out *EgressFilter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EnsureConnectivity ¶
type EnsureConnectivity struct { // SeedNamespaces contains the seed namespaces to check for load balancers. // +optional SeedNamespaces []string `json:"seedNamespaces,omitempty"` }
EnsureConnectivity configures the removal of seed and/or shoot load balancers IPs from the filter list.
func (*EnsureConnectivity) DeepCopy ¶
func (in *EnsureConnectivity) DeepCopy() *EnsureConnectivity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnsureConnectivity.
func (*EnsureConnectivity) DeepCopyInto ¶
func (in *EnsureConnectivity) DeepCopyInto(out *EnsureConnectivity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Filter ¶
type Filter struct { // Network is the network CIDR of the filter. Network string `json:"network"` // Policy is the access policy (`BLOCK_ACCESS` or `ALLOW_ACCESS`). Policy Policy `json:"policy"` }
Filter specifies a network-CIDR policy pair.
func (*Filter) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Filter.
func (*Filter) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FilterListProviderType ¶
type FilterListProviderType string
const ( // FilterListProviderTypeStatic is the provider type for static filter list FilterListProviderTypeStatic FilterListProviderType = "static" // FilterListProviderTypeDownload is the provider type for downloading the filter list from a URL FilterListProviderTypeDownload FilterListProviderType = "download" )
type Workers ¶ added in v0.21.0
type Workers struct { // BlackholingEnabled is a flag to set blackholing or firewall approach. BlackholingEnabled bool `json:"blackholingEnabled"` // Names is a list of worker groups to use the specified blocking mode. Names []string `json:"names"` }
Workers allows to set the blocking mode for specific worker groups which may differ from the default.
func (*Workers) DeepCopy ¶ added in v0.21.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workers.
func (*Workers) DeepCopyInto ¶ added in v0.21.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.