Documentation
¶
Index ¶
- Constants
- func GetOperatorNamespace() (string, error)
- func GetWatchNamespace() (string, error)
- func InitContainer(cluster *v1beta1.PostgresCluster, componentName, image string, ...) corev1.Container
- func InitImage(ctx context.Context, cl client.Reader, cluster *v1beta1.PostgresCluster, ...) (string, error)
- func ObjectHash(obj runtime.Object) (string, error)
- type ComponentWithInit
Constants ¶
View Source
const WatchNamespaceEnvVar = "WATCH_NAMESPACE"
Variables ¶
This section is empty.
Functions ¶
func GetOperatorNamespace ¶
GetOperatorNamespace returns the namespace of the operator pod
func GetWatchNamespace ¶
GetWatchNamespace returns the namespace the operator should be watching for changes
func InitContainer ¶
func InitContainer(cluster *v1beta1.PostgresCluster, componentName, image string, pullPolicy corev1.PullPolicy, secCtx *corev1.SecurityContext, resources corev1.ResourceRequirements, component ComponentWithInit, ) corev1.Container
Types ¶
type ComponentWithInit ¶
type ComponentWithInit interface {
GetInitContainer() *v1beta1.InitContainerSpec
}
Click to show internal directories.
Click to hide internal directories.