deployment

package
v0.0.0-...-ea047a2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerNamespace = "kyma-system"
	ControllerName      = "eventing-controller"
)
View Source
const (
	InstanceLabelKey    = "app.kubernetes.io/instance"
	InstanceLabelValue  = "eventing"
	DashboardLabelKey   = "kyma-project.io/dashboard"
	DashboardLabelValue = "eventing"
	BackendLabelKey     = "eventing.kyma-project.io/backend"

	PublisherNamespace              = "kyma-system"
	PublisherName                   = "eventing-publisher-proxy"
	AppLabelKey                     = "app.kubernetes.io/name"
	PublisherSecretClientIDKey      = "client-id"
	PublisherSecretClientSecretKey  = "client-secret"
	PublisherSecretTokenEndpointKey = "token-endpoint"
	PublisherSecretEMSURLKey        = "ems-publish-url"
	PublisherSecretBEBNamespaceKey  = "beb-namespace"
)

Variables

View Source
var (
	TerminationGracePeriodSeconds = int64(30)
)

Functions

func NewBEBPublisherDeployment

func NewBEBPublisherDeployment(publisherConfig env.PublisherConfig) *appsv1.Deployment

func NewDeployment

func NewDeployment(publisherConfig env.PublisherConfig, opts ...DeployOpt) *appsv1.Deployment

func NewNATSPublisherDeployment

func NewNATSPublisherDeployment(natsConfig env.NATSConfig, publisherConfig env.PublisherConfig) *appsv1.Deployment

Types

type DeployOpt

type DeployOpt func(deployment *appsv1.Deployment)

func WithAffinity

func WithAffinity() DeployOpt

func WithBEBEnvVars

func WithBEBEnvVars(publisherConfig env.PublisherConfig) DeployOpt

func WithContainers

func WithContainers(publisherConfig env.PublisherConfig) DeployOpt

func WithLabels

func WithLabels(backendType v1alpha1.BackendType) DeployOpt

func WithLogEnvVars

func WithLogEnvVars(publisherConfig env.PublisherConfig) DeployOpt

func WithNATSEnvVars

func WithNATSEnvVars(natsConfig env.NATSConfig, publisherConfig env.PublisherConfig) DeployOpt

Jump to

Keyboard shortcuts

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