ingress

package
v1.50.4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package ingress is a generated GoMock package.

Index

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

type AnnotationConfiguration struct {
	Name        string
	Annotations map[string]string
}

AnnotationConfiguration Holds annotations for a single configuration

type AnnotationProvider

type AnnotationProvider interface {
	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 NewOAuth2AnnotationProvider

func NewOAuth2AnnotationProvider(oauth2DefaultConfig defaults.OAuth2Config) 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

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

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

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

GetNamespace indicates an expected call of GetNamespace.

Jump to

Keyboard shortcuts

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