Documentation ¶
Index ¶
- Constants
- Variables
- func GetPublisherClusterRoleBindingName(eventing v1alpha1.Eventing) string
- func GetPublisherClusterRoleName(eventing v1alpha1.Eventing) string
- func GetPublisherDeploymentName(eventing v1alpha1.Eventing) string
- func GetPublisherHealthServiceName(eventing v1alpha1.Eventing) string
- func GetPublisherMetricsServiceName(eventing v1alpha1.Eventing) string
- func GetPublisherPublishServiceName(eventing v1alpha1.Eventing) string
- func GetPublisherServiceAccountName(eventing v1alpha1.Eventing) string
- type DeployOpt
- func WithAffinity(publisherName string) DeployOpt
- func WithBEBEnvVars(publisherName string, publisherConfig env.PublisherConfig, ...) DeployOpt
- func WithContainers(publisherConfig env.PublisherConfig, eventing *v1alpha1.Eventing) DeployOpt
- func WithLabels(publisherName string, backendType v1alpha1.BackendType) DeployOpt
- func WithLogEnvVars(publisherConfig env.PublisherConfig, eventing *v1alpha1.Eventing) DeployOpt
- func WithNATSEnvVars(natsConfig env.NATSConfig, publisherConfig env.PublisherConfig, ...) DeployOpt
- func WithPriorityClassName(name string) DeployOpt
- func WithSelector(publisherName string) DeployOpt
- type EventingManager
- func (em EventingManager) DeletePublisherProxyResources(ctx context.Context, eventing *v1alpha1.Eventing) error
- func (em EventingManager) DeployPublisherProxy(ctx context.Context, eventing *v1alpha1.Eventing, natsConfig *env.NATSConfig, ...) (*kappsv1.Deployment, error)
- func (em EventingManager) DeployPublisherProxyResources(ctx context.Context, eventing *v1alpha1.Eventing, ...) error
- func (em EventingManager) GetBackendConfig() *env.BackendConfig
- func (em EventingManager) IsNATSAvailable(ctx context.Context, namespace string) (bool, error)
- func (em *EventingManager) SetBackendConfig(config env.BackendConfig)
- func (em *EventingManager) SubscriptionExists(ctx context.Context) (bool, error)
- type Manager
Constants ¶
View Source
const ( PublisherName = "eventing-publisher-proxy" PublisherSecretClientIDKey = "client-id" PublisherSecretClientSecretKey = "client-secret" PublisherSecretTokenEndpointKey = "token-endpoint" PublisherSecretEMSURLKey = "ems-publish-url" //nolint:gosec // no hardcoded secret, just a lookup key PublisherSecretBEBNamespaceKey = "beb-namespace" PriorityClassName = "eventing-manager-priority-class" TerminationGracePeriodSeconds = int64(30) )
Variables ¶
View Source
var ( ErrUnknownBackendType = errors.New("unknown backend type") ErrEPPDeployFailed = errors.New("failed to apply Publisher Proxy deployment") )
Functions ¶
Types ¶
type DeployOpt ¶
type DeployOpt func(deployment *kappsv1.Deployment)
func WithAffinity ¶
func WithBEBEnvVars ¶
func WithContainers ¶
func WithContainers(publisherConfig env.PublisherConfig, eventing *v1alpha1.Eventing) DeployOpt
func WithLabels ¶
func WithLabels(publisherName string, backendType v1alpha1.BackendType) DeployOpt
func WithLogEnvVars ¶
func WithLogEnvVars(publisherConfig env.PublisherConfig, eventing *v1alpha1.Eventing) DeployOpt
func WithNATSEnvVars ¶
func WithNATSEnvVars(natsConfig env.NATSConfig, publisherConfig env.PublisherConfig, eventing *v1alpha1.Eventing, ) DeployOpt
func WithPriorityClassName ¶
func WithSelector ¶
type EventingManager ¶
func (EventingManager) DeletePublisherProxyResources ¶
func (EventingManager) DeployPublisherProxy ¶
func (em EventingManager) DeployPublisherProxy( ctx context.Context, eventing *v1alpha1.Eventing, natsConfig *env.NATSConfig, backendType v1alpha1.BackendType, ) (*kappsv1.Deployment, error)
func (EventingManager) DeployPublisherProxyResources ¶
func (em EventingManager) DeployPublisherProxyResources( ctx context.Context, eventing *v1alpha1.Eventing, publisherDeployment *kappsv1.Deployment, ) error
func (EventingManager) GetBackendConfig ¶
func (em EventingManager) GetBackendConfig() *env.BackendConfig
func (EventingManager) IsNATSAvailable ¶
func (*EventingManager) SetBackendConfig ¶
func (em *EventingManager) SetBackendConfig(config env.BackendConfig)
func (*EventingManager) SubscriptionExists ¶
func (em *EventingManager) SubscriptionExists(ctx context.Context) (bool, error)
type Manager ¶
type Manager interface { IsNATSAvailable(ctx context.Context, namespace string) (bool, error) DeployPublisherProxy( ctx context.Context, eventing *v1alpha1.Eventing, natsConfig *env.NATSConfig, backendType v1alpha1.BackendType) (*kappsv1.Deployment, error) DeployPublisherProxyResources(ctx context.Context, eventing *v1alpha1.Eventing, deploy *kappsv1.Deployment) error DeletePublisherProxyResources(ctx context.Context, eventing *v1alpha1.Eventing) error GetBackendConfig() *env.BackendConfig SetBackendConfig(config env.BackendConfig) SubscriptionExists(ctx context.Context) (bool, error) }
func NewEventingManager ¶
Click to show internal directories.
Click to hide internal directories.