deployment

package
v1.87.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RunAsUser = int64(1000)
)

Variables

This section is empty.

Functions

func AdaptFunc

func AdaptFunc(
	monitor mntr.Monitor,
	nameLabels *labels.Name,
	podSelector *labels.Selector,
	force bool,
	version *string,
	namespace string,
	replicaCount int,
	affinity *k8s.Affinity,
	cmName string,
	certPath string,
	secretName string,
	secretPath string,
	consoleCMName string,
	secretVarsName string,
	secretPasswordsName string,
	nodeSelector map[string]string,
	tolerations []corev1.Toleration,
	resources *k8s.Resources,
	migrationDone operator.EnsureFunc,
	configurationDone operator.EnsureFunc,
	setupDone operator.EnsureFunc,
	customImageRegistry string,
) (
	func(
		necessaryUsers map[string]string,
		getConfigurationHashes func(k8sClient kubernetes.ClientInt, queried map[string]interface{}, necessaryUsers map[string]string) (map[string]string, error),
	) operator.QueryFunc,
	operator.DestroyFunc,
	error,
)

func GetContainer

func GetContainer(
	containerName string,
	version string,
	runAsUser int64,
	runAsNonRoot bool,
	resources *k8s.Resources,
	cmName string,
	secretName string,
	secretPath string,
	consoleCMName string,
	secretVarsName string,
	dbcerts corev1.VolumeMount,
	command string,
	customImageRegistry string,
	secretPasswordsName string,
	users []string,
) corev1.Container

func GetReadyFunc

func GetReadyFunc(monitor mntr.Monitor, namespace string, name *labels.Name) operator.EnsureFunc

func GetResourcesFromDefault

func GetResourcesFromDefault(resources *k8s.Resources) *k8s.Resources

func GetScaleFunc

func GetScaleFunc(monitor mntr.Monitor, namespace string, name *labels.Name) func(replicaCount int) operator.EnsureFunc

func GetVolumes

func GetVolumes(
	secretName string,
	secretPasswordsName string,
	consoleCMName string,
) []corev1.Volume

Types

This section is empty.

Jump to

Keyboard shortcuts

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