Documentation ¶
Overview ¶
TODO: (shance) this file should ideally be combined with backends/features
This file contains functionality and constants for the L7-ILB feature Since this also currently affects backend resources (since they are alpha-regional instead of ga-global), this feature is also included in pkg/backends/features.go
Index ¶
- Constants
- Variables
- func ILBSubnetSourceRange(cloud *gce.Cloud, region string, logger klog.Logger) (string, error)
- func L7ILBScope() meta.KeyType
- func RXLBSubnetSourceRange(cloud *gce.Cloud, region string, logger klog.Logger) (string, error)
- func ScopeFromIngress(ing *v1.Ingress) meta.KeyType
- type ResourceVersions
Constants ¶
const ( FeatureL7ILB = "L7ILB" FeatureL7XLBRegional = "L7XLBRegional" )
Variables ¶
var ErrSubnetNotFound = errors.New("active subnet not found")
var GAResourceVersions = NewResourceVersions()
Functions ¶
func ILBSubnetSourceRange ¶
ILBSubnetSourceRange gets Subnet source range for ILB TODO: (shance) refactor to use filter
func RXLBSubnetSourceRange ¶ added in v1.28.0
RXLBSubnetSourceRange gets Subnet source range for RXLB.
Types ¶
type ResourceVersions ¶
type ResourceVersions struct { UrlMap meta.Version ForwardingRule meta.Version TargetHttpProxy meta.Version TargetHttpsProxy meta.Version SslCertificate meta.Version // This is *only* used for backend annotations // TODO(shance): find a way to remove these BackendService meta.Version HealthCheck meta.Version }
ResourceVersions allows you to define all the versions required for each resource for a feature.
func L7ILBVersions ¶
func L7ILBVersions() *ResourceVersions
L7ILBVersions is a helper to get the version of L7-ILB
func NewResourceVersions ¶
func NewResourceVersions() *ResourceVersions
func VersionsFromIngress ¶
func VersionsFromIngress(ing *v1.Ingress) *ResourceVersions
VersionsFromIngress returns a ResourceVersions struct containing all of the resources per version