Documentation ¶
Index ¶
- Constants
- func NewCertificateSecretConfigurator(kubernetesInterface kubernetes.Interface) certificatesSecretsConfigurator
- func NewCompassConfigurator(directorClient types.DirectorClient, tenant string) compassconfigurator
- func NewCompassConnectionCRConfiguration(compassConnectionInterface CompassConnectionInterface) compassConnectionCRConfiguration
- func NewConfigurationSecretConfigurator(kubernetesInterface kubernetes.Interface) configurationSecretConfigurator
- func NewDeploymentConfiguration(kubernetesInterface kubernetes.Interface, deploymentName, namespaceName string) deploymentConfiguration
- type CompassConnectionInterface
- type CompassRuntimeAgentConfigurator
- type Configurator
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)
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.