mattermost

package
Version: v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SetupJobName                = "mattermost-db-setup"
	WaitForDBSetupContainerName = "init-wait-for-db-setup"
)

Variables

This section is empty.

Functions

func ClusterInstallationOwnerReference added in v1.11.0

func ClusterInstallationOwnerReference(mattermost *mattermostv1alpha1.ClusterInstallation) []metav1.OwnerReference

func EnvSourceFromSecret added in v1.12.0

func EnvSourceFromSecret(secretName, key string) *corev1.EnvVarSource

func FindContainer added in v1.12.0

func FindContainer(name string, containers []corev1.Container) (int, bool)

func GenerateDeployment

func GenerateDeployment(mattermost *mattermostv1alpha1.ClusterInstallation, dbInfo *database.Info, deploymentName, ingressName, serviceAccountName, containerImage string, minioURL string) *appsv1.Deployment

GenerateDeployment returns the deployment for Mattermost app.

func GenerateDeploymentV1Beta added in v1.12.0

func GenerateDeploymentV1Beta(mattermost *mmv1beta.Mattermost, db DatabaseConfig, fileStore *FileStoreInfo, deploymentName, ingressName, serviceAccountName, containerImage string) *appsv1.Deployment

GenerateDeploymentV1Beta returns the deployment for Mattermost app.

func GenerateIngress

func GenerateIngress(mattermost *mattermostv1alpha1.ClusterInstallation, name, ingressName string, ingressAnnotations map[string]string) *v1beta1.Ingress

GenerateIngress returns the ingress for the Mattermost app.

func GenerateIngressV1Beta added in v1.12.0

func GenerateIngressV1Beta(mattermost *mmv1beta.Mattermost) *v1beta1.Ingress

GenerateIngressV1Beta returns the ingress for the Mattermost app.

func GenerateRole added in v1.11.0

func GenerateRole(mattermost *mattermostv1alpha1.ClusterInstallation, roleName string) *rbacv1.Role

GenerateRole returns the Role for Mattermost

func GenerateRoleBinding added in v1.11.0

func GenerateRoleBinding(mattermost *mattermostv1alpha1.ClusterInstallation, roleName, saName string) *rbacv1.RoleBinding

GenerateRoleBinding returns the RoleBinding for Mattermost

func GenerateRoleBindingV1Beta added in v1.12.0

func GenerateRoleBindingV1Beta(mattermost *mmv1beta.Mattermost, roleName, saName string) *rbacv1.RoleBinding

GenerateRoleBindingV1Beta returns the RoleBinding for Mattermost

func GenerateRoleV1Beta added in v1.12.0

func GenerateRoleV1Beta(mattermost *mmv1beta.Mattermost, roleName string) *rbacv1.Role

GenerateRoleV1Beta returns the Role for Mattermost

func GenerateSecret

func GenerateSecret(mattermost *mattermostv1alpha1.ClusterInstallation, secretName string, labels map[string]string, values map[string][]byte) *corev1.Secret

GenerateSecret returns the secret for Mattermost

func GenerateSecretV1Beta added in v1.12.0

func GenerateSecretV1Beta(mattermost *mmv1beta.Mattermost, secretName string, labels map[string]string, values map[string][]byte) *corev1.Secret

GenerateSecretV1Beta returns the secret for Mattermost

func GenerateService

func GenerateService(mattermost *mattermostv1alpha1.ClusterInstallation, serviceName, selectorName string) *corev1.Service

GenerateService returns the service for the Mattermost app.

func GenerateServiceAccount added in v1.11.0

func GenerateServiceAccount(mattermost *mattermostv1alpha1.ClusterInstallation, saName string) *corev1.ServiceAccount

GenerateServiceAccount returns the Service Account for Mattermost

func GenerateServiceAccountV1Beta added in v1.12.0

func GenerateServiceAccountV1Beta(mattermost *mmv1beta.Mattermost, saName string) *corev1.ServiceAccount

GenerateServiceAccountV1Beta returns the Service Account for Mattermost

func GenerateServiceV1Beta added in v1.12.0

func GenerateServiceV1Beta(mattermost *mmv1beta.Mattermost) *corev1.Service

GenerateService returns the service for the Mattermost app.

func MattermostOwnerReference added in v1.12.0

func MattermostOwnerReference(mattermost *mmv1beta.Mattermost) []metav1.OwnerReference

func RemoveContainer added in v1.12.0

func RemoveContainer(name string, containers []corev1.Container) []corev1.Container

Types

type DatabaseConfig added in v1.12.0

type DatabaseConfig interface {
	EnvVars(mattermost *mmv1beta.Mattermost) []corev1.EnvVar
	InitContainers(mattermost *mmv1beta.Mattermost) []corev1.Container
}

type ExternalDBConfig added in v1.12.0

type ExternalDBConfig struct {
	// contains filtered or unexported fields
}

func NewExternalDBConfig added in v1.12.0

func NewExternalDBConfig(mattermost *mmv1beta.Mattermost, secret corev1.Secret) (*ExternalDBConfig, error)

func (*ExternalDBConfig) EnvVars added in v1.12.0

func (*ExternalDBConfig) InitContainers added in v1.12.0

func (e *ExternalDBConfig) InitContainers(_ *mmv1beta.Mattermost) []corev1.Container

type ExternalFileStore added in v1.12.0

type ExternalFileStore struct{}

func (*ExternalFileStore) InitContainers added in v1.12.0

func (e *ExternalFileStore) InitContainers(_ *mmv1beta.Mattermost) []corev1.Container

type FileStoreConfig added in v1.12.0

type FileStoreConfig interface {
	InitContainers(mattermost *mmv1beta.Mattermost) []corev1.Container
}

type FileStoreInfo added in v1.12.0

type FileStoreInfo struct {
	// contains filtered or unexported fields
}

func NewExternalFileStoreInfo added in v1.12.0

func NewExternalFileStoreInfo(mattermost *mmv1beta.Mattermost, secret corev1.Secret) (*FileStoreInfo, error)

func NewOperatorManagedFileStoreInfo added in v1.12.0

func NewOperatorManagedFileStoreInfo(mattermost *mmv1beta.Mattermost, secret, minioURL string) *FileStoreInfo

type MySQLDBConfig added in v1.12.0

type MySQLDBConfig struct {
	// contains filtered or unexported fields
}

func NewMySQLDBConfig added in v1.12.0

func NewMySQLDBConfig(secret corev1.Secret) (*MySQLDBConfig, error)

func (*MySQLDBConfig) EnvVars added in v1.12.0

func (m *MySQLDBConfig) EnvVars(mattermost *mmv1beta.Mattermost) []corev1.EnvVar

func (*MySQLDBConfig) InitContainers added in v1.12.0

func (m *MySQLDBConfig) InitContainers(mattermost *mmv1beta.Mattermost) []corev1.Container

type OperatorManagedMinioConfig added in v1.12.0

type OperatorManagedMinioConfig struct {
	// contains filtered or unexported fields
}

func (*OperatorManagedMinioConfig) InitContainers added in v1.12.0

func (e *OperatorManagedMinioConfig) InitContainers(mattermost *mmv1beta.Mattermost) []corev1.Container

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL