Documentation ¶
Overview ¶
Package ingress is a generated GoMock package.
Index ¶
- func BuildOAuthProxyIngressForComponentIngress(namespace string, component v1.RadixCommonDeployComponent, ...) (*networkingv1.Ingress, error)
- func GetIngressConfig(namespace string, appName string, component radixv1.RadixCommonDeployComponent, ...) (*networkingv1.Ingress, error)
- func GetIngressSpec(hostname, serviceName, tlsSecretName string, servicePort int32) networkingv1.IngressSpec
- func GetOwnerReferenceOfIngress(ingress *networkingv1.Ingress) []metav1.OwnerReference
- func IsSecretRequiredForClientCertificate(clientCertificate *v1.ClientCertificate) bool
- func ParseClientCertificateConfiguration(clientCertificate radixv1.ClientCertificate) (certificate radixv1.ClientCertificate)
- type AnnotationConfiguration
- type AnnotationProvider
- func GetAnnotationProvider(ingressConfiguration IngressConfiguration, certificateNamespace string, ...) []AnnotationProvider
- func GetAuxOAuthProxyAnnotationProviders() []AnnotationProvider
- func NewClientCertificateAnnotationProvider(certificateNamespace string) AnnotationProvider
- func NewForceSslRedirectAnnotationProvider() AnnotationProvider
- func NewIngressConfigurationAnnotationProvider(config IngressConfiguration) AnnotationProvider
- func NewIngressPublicAllowListAnnotationProvider() AnnotationProvider
- func NewIngressPublicConfigAnnotationProvider() AnnotationProvider
- func NewOAuth2AnnotationProvider(oauth2DefaultConfig defaults.OAuth2Config) AnnotationProvider
- func NewRedirectErrorPageAnnotationProvider() AnnotationProvider
- type ClientCertificateAnnotationProvider
- type IngressConfiguration
- type MockAnnotationProvider
- type MockAnnotationProviderMockRecorder
- type MockClientCertificateAnnotationProvider
- func (m *MockClientCertificateAnnotationProvider) EXPECT() *MockClientCertificateAnnotationProviderMockRecorder
- func (m *MockClientCertificateAnnotationProvider) GetAnnotations(component v1.RadixCommonDeployComponent, namespace string) (map[string]string, error)
- func (m *MockClientCertificateAnnotationProvider) GetNamespace() string
- type MockClientCertificateAnnotationProviderMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildOAuthProxyIngressForComponentIngress ¶
func BuildOAuthProxyIngressForComponentIngress(namespace string, component v1.RadixCommonDeployComponent, componentIngress *networkingv1.Ingress, ingressAnnotationProviders []AnnotationProvider) (*networkingv1.Ingress, error)
BuildOAuthProxyIngressForComponentIngress builds OAuth proxy ingress for RadixDeploy component ingress
func GetIngressConfig ¶
func GetIngressConfig(namespace string, appName string, component radixv1.RadixCommonDeployComponent, ingressName string, ingressSpec networkingv1.IngressSpec, ingressProviders []AnnotationProvider, ownerReference []metav1.OwnerReference) (*networkingv1.Ingress, error)
GetIngressConfig Gets Ingress configuration
func GetIngressSpec ¶
func GetIngressSpec(hostname, serviceName, tlsSecretName string, servicePort int32) networkingv1.IngressSpec
GetIngressSpec Get Ingress spec
func GetOwnerReferenceOfIngress ¶
func GetOwnerReferenceOfIngress(ingress *networkingv1.Ingress) []metav1.OwnerReference
GetOwnerReferenceOfIngress Get an Ingress as an owner reference
func IsSecretRequiredForClientCertificate ¶
func IsSecretRequiredForClientCertificate(clientCertificate *v1.ClientCertificate) bool
IsSecretRequiredForClientCertificate Check is Secret is required for thr ClientCertificate
func ParseClientCertificateConfiguration ¶
func ParseClientCertificateConfiguration(clientCertificate radixv1.ClientCertificate) (certificate radixv1.ClientCertificate)
ParseClientCertificateConfiguration Parses ClientCertificate configuration
Types ¶
type AnnotationConfiguration ¶
AnnotationConfiguration Holds annotations for a single configuration
type AnnotationProvider ¶
type AnnotationProvider interface { // GetAnnotations returns annotations for use on Ingress resources GetAnnotations(component radixv1.RadixCommonDeployComponent, namespace string) (map[string]string, error) }
func GetAnnotationProvider ¶
func GetAnnotationProvider(ingressConfiguration IngressConfiguration, certificateNamespace string, oauth2DefaultConfig defaults.OAuth2Config) []AnnotationProvider
GetAnnotationProvider Gets annotation provider
func GetAuxOAuthProxyAnnotationProviders ¶
func GetAuxOAuthProxyAnnotationProviders() []AnnotationProvider
GetAuxOAuthProxyAnnotationProviders Gets aux OAuth proxy annotation providers
func NewClientCertificateAnnotationProvider ¶
func NewClientCertificateAnnotationProvider(certificateNamespace string) AnnotationProvider
func NewForceSslRedirectAnnotationProvider ¶
func NewForceSslRedirectAnnotationProvider() AnnotationProvider
func NewIngressConfigurationAnnotationProvider ¶
func NewIngressConfigurationAnnotationProvider(config IngressConfiguration) AnnotationProvider
func NewIngressPublicAllowListAnnotationProvider ¶ added in v1.61.0
func NewIngressPublicAllowListAnnotationProvider() AnnotationProvider
NewIngressPublicAllowListAnnotationProvider provides Ingress annotations for allowing only public traffic from IP addresses defined in Network.Ingress.Public.Allow field
func NewIngressPublicConfigAnnotationProvider ¶ added in v1.62.0
func NewIngressPublicConfigAnnotationProvider() AnnotationProvider
NewIngressPublicConfigAnnotationProvider provides Ingress annotations for fields in `Network.Ingress.Public`, except for `allow`
func NewOAuth2AnnotationProvider ¶
func NewOAuth2AnnotationProvider(oauth2DefaultConfig defaults.OAuth2Config) AnnotationProvider
func NewRedirectErrorPageAnnotationProvider ¶ added in v1.66.3
func NewRedirectErrorPageAnnotationProvider() AnnotationProvider
type ClientCertificateAnnotationProvider ¶
type ClientCertificateAnnotationProvider interface { AnnotationProvider GetNamespace() string }
type IngressConfiguration ¶
type IngressConfiguration struct {
AnnotationConfigurations []AnnotationConfiguration `json:"configuration" yaml:"configuration"`
}
IngressConfiguration Holds all ingress annotation configurations
type MockAnnotationProvider ¶
type MockAnnotationProvider struct {
// contains filtered or unexported fields
}
MockAnnotationProvider is a mock of AnnotationProvider interface.
func NewMockAnnotationProvider ¶
func NewMockAnnotationProvider(ctrl *gomock.Controller) *MockAnnotationProvider
NewMockAnnotationProvider creates a new mock instance.
func (*MockAnnotationProvider) EXPECT ¶
func (m *MockAnnotationProvider) EXPECT() *MockAnnotationProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAnnotationProvider) GetAnnotations ¶
func (m *MockAnnotationProvider) GetAnnotations(component v1.RadixCommonDeployComponent, namespace string) (map[string]string, error)
GetAnnotations mocks base method.
type MockAnnotationProviderMockRecorder ¶
type MockAnnotationProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockAnnotationProviderMockRecorder is the mock recorder for MockAnnotationProvider.
func (*MockAnnotationProviderMockRecorder) GetAnnotations ¶
func (mr *MockAnnotationProviderMockRecorder) GetAnnotations(component, namespace interface{}) *gomock.Call
GetAnnotations indicates an expected call of GetAnnotations.
type MockClientCertificateAnnotationProvider ¶
type MockClientCertificateAnnotationProvider struct {
// contains filtered or unexported fields
}
MockClientCertificateAnnotationProvider is a mock of ClientCertificateAnnotationProvider interface.
func NewMockClientCertificateAnnotationProvider ¶
func NewMockClientCertificateAnnotationProvider(ctrl *gomock.Controller) *MockClientCertificateAnnotationProvider
NewMockClientCertificateAnnotationProvider creates a new mock instance.
func (*MockClientCertificateAnnotationProvider) EXPECT ¶
func (m *MockClientCertificateAnnotationProvider) EXPECT() *MockClientCertificateAnnotationProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClientCertificateAnnotationProvider) GetAnnotations ¶
func (m *MockClientCertificateAnnotationProvider) GetAnnotations(component v1.RadixCommonDeployComponent, namespace string) (map[string]string, error)
GetAnnotations mocks base method.
func (*MockClientCertificateAnnotationProvider) GetNamespace ¶
func (m *MockClientCertificateAnnotationProvider) GetNamespace() string
GetNamespace mocks base method.
type MockClientCertificateAnnotationProviderMockRecorder ¶
type MockClientCertificateAnnotationProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockClientCertificateAnnotationProviderMockRecorder is the mock recorder for MockClientCertificateAnnotationProvider.
func (*MockClientCertificateAnnotationProviderMockRecorder) GetAnnotations ¶
func (mr *MockClientCertificateAnnotationProviderMockRecorder) GetAnnotations(component, namespace interface{}) *gomock.Call
GetAnnotations indicates an expected call of GetAnnotations.
func (*MockClientCertificateAnnotationProviderMockRecorder) GetNamespace ¶
func (mr *MockClientCertificateAnnotationProviderMockRecorder) GetNamespace() *gomock.Call
GetNamespace indicates an expected call of GetNamespace.