Documentation
¶
Index ¶
- func ApplyAuthConfiguration(deployment *appsv1.Deployment, config *operatorv1alpha1.AuthSpec, ...) *appsv1.Deployment
- func ApplyCertificateTemplate(cert *certmanagerv1.Certificate, tpl *operatorv1alpha1.CertificateTemplate) *certmanagerv1.Certificate
- func ApplyCommonShardConfig(deployment *appsv1.Deployment, spec *operatorv1alpha1.CommonShardSpec) *appsv1.Deployment
- func ApplyCommonShardDeploymentProperties(deployment *appsv1.Deployment) *appsv1.Deployment
- func ApplyDeploymentTemplate(dep *appsv1.Deployment, tpl *operatorv1alpha1.DeploymentTemplate) *appsv1.Deployment
- func ApplyResources(container corev1.Container, resources *corev1.ResourceRequirements) corev1.Container
- func ApplyServiceTemplate(svc *corev1.Service, tpl *operatorv1alpha1.ServiceTemplate) *corev1.Service
- func ExtractHostnameFromURL(rawURL string) string
- func GetCompiledRootShardBatteries(rootShard *deployv1alpha1.CompiledRootShard) []string
- func GetCompiledShardBatteries(shard *deployv1alpha1.CompiledShard) []string
- func GetFrontProxyExternalPort(fp operatorv1alpha1.FrontProxySpec, rootShard operatorv1alpha1.RootShardSpec) int
- func GetLoggingArgs(spec *operatorv1alpha1.LoggingSpec) []string
- func GetRootShardBatteries(rootShard *operatorv1alpha1.RootShard) []string
- func GetShardBatteries(shard *operatorv1alpha1.Shard) []string
- func MergeCertificateSecrets(secrets ...*corev1.Secret) ([]byte, error)
- func MergeCertificates(certs ...[]byte) []byte
- func ShardNames(shards []operatorv1alpha1.Shard) []string
- type SecretMount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyAuthConfiguration ¶ added in v0.2.0
func ApplyAuthConfiguration(deployment *appsv1.Deployment, config *operatorv1alpha1.AuthSpec, rootShardName string, shardNames []string) *appsv1.Deployment
ApplyAuthConfiguration applies the auth configuration to a deployment, including ServiceAccount authentication, which loads the service-account public key of the root shard and of every shard in shardNames.
func ApplyCertificateTemplate ¶
func ApplyCertificateTemplate(cert *certmanagerv1.Certificate, tpl *operatorv1alpha1.CertificateTemplate) *certmanagerv1.Certificate
func ApplyCommonShardConfig ¶
func ApplyCommonShardConfig(deployment *appsv1.Deployment, spec *operatorv1alpha1.CommonShardSpec) *appsv1.Deployment
func ApplyCommonShardDeploymentProperties ¶ added in v0.5.0
func ApplyCommonShardDeploymentProperties(deployment *appsv1.Deployment) *appsv1.Deployment
func ApplyDeploymentTemplate ¶
func ApplyDeploymentTemplate(dep *appsv1.Deployment, tpl *operatorv1alpha1.DeploymentTemplate) *appsv1.Deployment
func ApplyResources ¶
func ApplyServiceTemplate ¶
func ApplyServiceTemplate(svc *corev1.Service, tpl *operatorv1alpha1.ServiceTemplate) *corev1.Service
func ExtractHostnameFromURL ¶ added in v0.7.1
ExtractHostnameFromURL extracts the hostname from a URL string. Returns empty string if the URL is invalid or empty.
func GetCompiledRootShardBatteries ¶ added in v0.9.0
func GetCompiledRootShardBatteries(rootShard *deployv1alpha1.CompiledRootShard) []string
func GetCompiledShardBatteries ¶ added in v0.9.0
func GetCompiledShardBatteries(shard *deployv1alpha1.CompiledShard) []string
func GetFrontProxyExternalPort ¶ added in v0.7.1
func GetFrontProxyExternalPort(fp operatorv1alpha1.FrontProxySpec, rootShard operatorv1alpha1.RootShardSpec) int
func GetLoggingArgs ¶ added in v0.3.0
func GetLoggingArgs(spec *operatorv1alpha1.LoggingSpec) []string
GetLoggingArgs returns the command line arguments for logging configuration.
func GetRootShardBatteries ¶
func GetRootShardBatteries(rootShard *operatorv1alpha1.RootShard) []string
func GetShardBatteries ¶
func GetShardBatteries(shard *operatorv1alpha1.Shard) []string
func MergeCertificateSecrets ¶ added in v0.8.0
MergeCertificateSecrets merges the CA certificate data from multiple secrets.
func MergeCertificates ¶ added in v0.8.0
MergeCertificates concatenates multiple PEM certificate bundles with newlines. Empty or nil certificates are skipped.
func ShardNames ¶ added in v0.9.0
func ShardNames(shards []operatorv1alpha1.Shard) []string
ShardNames extracts the names of the given shards.
Types ¶
type SecretMount ¶
func (SecretMount) Build ¶
func (sm SecretMount) Build() (corev1.Volume, corev1.VolumeMount)
Click to show internal directories.
Click to hide internal directories.