v1alpha1

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1alpha1 contains the shoot networking filter extension configuration. +groupName=shoot-networking-filter.extensions.config.gardener.cloud

Index

Constants

View Source
const GroupName = "shoot-networking-filter.extensions.config.gardener.cloud"

GroupName is the group name use in this package

Variables

View Source
var (

	// AddToScheme is a pointer to SchemeBuilder.AddToScheme.
	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
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_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 Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

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 *healthcheckconfigv1alpha1.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"`

	// 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

func (in *Filter) DeepCopy() *Filter

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Filter.

func (*Filter) DeepCopyInto

func (in *Filter) DeepCopyInto(out *Filter)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type FilterListProviderType

type FilterListProviderType string

FilterListProviderType

const (
	// FilterListProviderTypeStatic is the provider type for static filter list
	FilterListProviderTypeStatic FilterListProviderType = "static"
	// FilterListProviderTypeDownload is the provider type for downloading the filter list from an URL
	FilterListProviderTypeDownload FilterListProviderType = "download"
)

type Policy

type Policy string

Policy is the access policy

const (
	// PolicyAllowAccess is the `ALLOW_ACCESS` policy
	PolicyAllowAccess Policy = "ALLOW_ACCESS"
	// PolicyBlockAccess is the `BLOCK_ACCESS` policy
	PolicyBlockAccess Policy = "BLOCK_ACCESS"
)

Jump to

Keyboard shortcuts

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