Documentation ¶
Overview ¶
Package features configures additional extra features for the Ingress. Examples for how to implement additional features can be found in the *_example.go files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Affinity = &AffinityFeature{}
Affinity is a feature in BackendConfig that supports using session affinity on GCP LBs.
var All = []fuzz.Feature{ AllowHTTP, PresharedCert, CDN, IAP, SecurityPolicy, Affinity, }
All is the set of all features.
var AllowHTTP = &AllowHTTPFeature{}
AllowHTTP is the "kubernetes.io/ingress.allow-http" annotation. If the annotation is set to false, then disable serving HTTP.
var BackendConfigExample = &BackendConfigExampleFeature{}
BackendConfigExample is an example of how a Feature will integrate with the BackendConfig referenced from a Service.
var CDN = &CDNFeature{}
CDN is a feature in BackendConfig that supports using GCP CDN.
var IAP = &IAPFeature{}
IAP is a feature in BackendConfig that supports using GCP Identity-Aware Proxy (IAP).
PresharedCert is the "kubernetes.io/pre-shared-cert" annotation.
var SecurityPolicy = &SecurityPolicyFeature{}
SecurityPolicy is a feature in BackendConfig that supports using GCP Security Policy.
Functions ¶
This section is empty.
Types ¶
type AffinityFeature ¶ added in v1.5.0
type AffinityFeature struct{}
AffinityFeature implements the associated feature.
func (*AffinityFeature) Name ¶ added in v1.5.0
func (*AffinityFeature) Name() string
Name implements fuzz.Feature.
func (AffinityFeature) NewValidator ¶ added in v1.5.0
func (AffinityFeature) NewValidator() fuzz.FeatureValidator
NewValidator implements fuzz.Feature.
type AllowHTTPFeature ¶
type AllowHTTPFeature struct {
fuzz.NullValidator
}
AllowHTTPFeature implements the associated feature.
func (*AllowHTTPFeature) ConfigureAttributes ¶
func (*AllowHTTPFeature) ConfigureAttributes(env fuzz.ValidatorEnv, ing *v1beta1.Ingress, a *fuzz.IngressValidatorAttributes) error
ConfigureAttributes implements fuzz.Feature.
func (*AllowHTTPFeature) Name ¶
func (*AllowHTTPFeature) Name() string
Name implements fuzz.Feature.
func (*AllowHTTPFeature) NewValidator ¶
func (f *AllowHTTPFeature) NewValidator() fuzz.FeatureValidator
NewValidator implements fuzz.Feature.
type BackendConfigExampleFeature ¶
type BackendConfigExampleFeature struct{}
BackendConfigExampleFeature is the example BackendConfig feature.
func (*BackendConfigExampleFeature) Name ¶
func (*BackendConfigExampleFeature) Name() string
Name implements fuzz.Feature.
func (BackendConfigExampleFeature) NewValidator ¶
func (BackendConfigExampleFeature) NewValidator() fuzz.FeatureValidator
NewValidator implements fuzz.Feature.
type CDNFeature ¶
type CDNFeature struct{}
CDNFeature implements the associated feature.
func (CDNFeature) NewValidator ¶
func (CDNFeature) NewValidator() fuzz.FeatureValidator
NewValidator implements fuzz.Feature.
type IAPFeature ¶
type IAPFeature struct{}
IAPFeature implements the associated feature.
func (IAPFeature) NewValidator ¶
func (IAPFeature) NewValidator() fuzz.FeatureValidator
NewValidator implements fuzz.Feature.
type PresharedCertFeature ¶
type PresharedCertFeature struct {
}PresharedCertFeature implements the Feature associated with PresharedCert.
func (*PresharedCertFeature) ConfigureAttributes ¶
func (*PresharedCertFeature) ConfigureAttributes(env fuzz.ValidatorEnv, ing *v1beta1.Ingress, a *fuzz.IngressValidatorAttributes) error
ConfigureAttributes implements fuzz.Feature.
func (*PresharedCertFeature) Name ¶
func (*PresharedCertFeature) Name() string
Name implements fuzz.Feature.
func (*PresharedCertFeature) NewValidator ¶
func (f *PresharedCertFeature) NewValidator() fuzz.FeatureValidator
NewValidator implements fuzz.Feature.
type SecurityPolicyFeature ¶
type SecurityPolicyFeature struct{}
SecurityPolicyFeature implements the associated feature.
func (*SecurityPolicyFeature) Name ¶
func (*SecurityPolicyFeature) Name() string
Name implements fuzz.Feature.
func (SecurityPolicyFeature) NewValidator ¶
func (SecurityPolicyFeature) NewValidator() fuzz.FeatureValidator
NewValidator implements fuzz.Feature.