init

package
v0.0.0-...-6cc5b44 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ConnectionCRName       = "compass-connection"
	ConnectionBackupCRName = "compass-connection-backup"
)
View Source
const (
	CRAContainerNumber          = 0
	ConfigurationSecretEnvName  = "APP_AGENT_CONFIGURATION_SECRET"
	CASecretEnvName             = "APP_CA_CERTIFICATES_SECRET"
	ClusterCertSecretEnvName    = "APP_CLUSTER_CERTIFICATES_SECRET"
	ControllerSyncPeriodEnvTime = "APP_CONTROLLER_SYNC_PERIOD"
)
View Source
const (
	CompassSystemNamespace        = "kyma-system"
	IstioSystemNamespace          = "istio-system"
	CompassRuntimeAgentDeployment = "compass-runtime-agent"
	NewCompassRuntimeConfigName   = "test-compass-runtime-agent-config"
	NewCACertSecretName           = "ca-cert-test"
	NewClientCertSecretName       = "client-cert-test"
	NewControllerSyncPeriodTime   = "15s"
	RetryAttempts                 = 6
	RetrySeconds                  = 5
)

Variables

This section is empty.

Functions

func NewCertificateSecretConfigurator

func NewCertificateSecretConfigurator(kubernetesInterface kubernetes.Interface) certificatesSecretsConfigurator

func NewCompassConfigurator

func NewCompassConfigurator(directorClient types.DirectorClient, tenant string) compassconfigurator

func NewCompassConnectionCRConfiguration

func NewCompassConnectionCRConfiguration(compassConnectionInterface CompassConnectionInterface) compassConnectionCRConfiguration

func NewConfigurationSecretConfigurator

func NewConfigurationSecretConfigurator(kubernetesInterface kubernetes.Interface) configurationSecretConfigurator

func NewDeploymentConfiguration

func NewDeploymentConfiguration(kubernetesInterface kubernetes.Interface, deploymentName, namespaceName string) deploymentConfiguration

Types

type CompassConnectionInterface

type CompassConnectionInterface interface {
	Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.CompassConnection, error)
	Create(ctx context.Context, compassConnection *v1alpha1.CompassConnection, opts v1.CreateOptions) (*v1alpha1.CompassConnection, error)
	Update(ctx context.Context, compassConnection *v1alpha1.CompassConnection, opts v1.UpdateOptions) (*v1alpha1.CompassConnection, error)
	Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
}

type CompassRuntimeAgentConfigurator

type CompassRuntimeAgentConfigurator interface {
	Do(runtimeName, formationName string) (types.RollbackFunc, error)
}

func NewCompassRuntimeAgentConfigurator

func NewCompassRuntimeAgentConfigurator(compassConfigurator types.CompassConfigurator,
	certificateSecretConfigurator types.CertificateSecretConfigurator,
	configurationSecretConfigurator types.ConfigurationSecretConfigurator,
	compassConnectionConfigurator types.CompassConnectionConfigurator,
	deploymentConfigurator types.DeploymentConfigurator,
	testNamespace string) CompassRuntimeAgentConfigurator

type Configurator

type Configurator interface {
	Configure(runtimeName, formationName string) (types.RollbackFunc, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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