deployment

package
v0.0.0-...-570755c Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConsoleOauthConfigName    = "console-oauth-config"
	DefaultConsoleReplicas    = 2
	SingleNodeConsoleReplicas = 1
)

Variables

This section is empty.

Functions

func DefaultDeployment

func DefaultDeployment(
	operatorConfig *operatorv1.Console,
	consoleConfigMap *corev1.ConfigMap,
	serviceCAConfigMap *corev1.ConfigMap,
	localOAuthServingCertConfigMap *corev1.ConfigMap,
	authServerCAConfigMap *corev1.ConfigMap,
	trustedCAConfigMap *corev1.ConfigMap,
	oAuthClientSecret *corev1.Secret,
	sessionSecret *corev1.Secret,
	proxyConfig *configv1.Proxy,
	infrastructureConfig *configv1.Infrastructure,
	canMountCustomLogo bool,
) *appsv1.Deployment

func DefaultDownloadsDeployment

func DefaultDownloadsDeployment(
	operatorConfig *operatorv1.Console,
	infrastructureConfig *configv1.Infrastructure,
) *appsv1.Deployment

func GetLogLevelFlag

func GetLogLevelFlag(logLevel operatorv1.LogLevel) string

func IsAvailable

func IsAvailable(deployment *appsv1.Deployment) bool

func IsAvailableAndUpdated

func IsAvailableAndUpdated(deployment *appsv1.Deployment) bool

func LogDeploymentAnnotationChanges

func LogDeploymentAnnotationChanges(
	client appsclientv1.DeploymentsGetter,
	updated *appsv1.Deployment,
	ctx context.Context,
)

func ShouldDeployHA

func ShouldDeployHA(infrastructureConfig *configv1.Infrastructure) bool

ShouldDeployHA returns true if the console should be deployed in HA mode. If the control plane is externalized, the console should be deployed in HA mode based on the InfrastructureTopology, otherwise it should be deployed in HA mode based on the ControlPlaneTopology.

func Stub

func Stub() *appsv1.Deployment

Types

This section is empty.

Jump to

Keyboard shortcuts

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