Help us shape the future of Go! Take the 2026 Go Developer Survey

placement

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ServiceName -
	ServiceName = "placement"
	// DatabaseName -
	DatabaseName = "placement"

	// PlacementPublicPort -
	PlacementPublicPort int32 = 8778
	// PlacementInternalPort -
	PlacementInternalPort int32 = 8778

	// KollaConfig -
	KollaConfig = "/var/lib/config-data/merged/placement-api-config.json"
)
View Source
const (
	// DBSyncCommand -
	DBSyncCommand = "/usr/local/bin/kolla_set_configs && su -s /bin/sh -c \"placement-manage db sync\" placement"
)
View Source
const (
	// InitContainerCommand -
	InitContainerCommand = "/usr/local/bin/container-scripts/init.sh"
)
View Source
const (
	// ServiceCommand -
	ServiceCommand = "/usr/local/bin/kolla_set_configs && /usr/local/bin/kolla_start"
)

Variables

This section is empty.

Functions

func DbSyncJob

func DbSyncJob(
	instance *placementv1.PlacementAPI,
	labels map[string]string,
	annotations map[string]string,
) *batchv1.Job

DbSyncJob func

func Deployment

func Deployment(
	instance *placementv1.PlacementAPI,
	configHash string,
	labels map[string]string,
	annotations map[string]string,
) *appsv1.Deployment

Deployment func

Types

type APIDetails

type APIDetails struct {
	ContainerImage       string
	DatabaseHost         string
	DatabaseUser         string
	DatabaseName         string
	OSPSecret            string
	DBPasswordSelector   string
	UserPasswordSelector string
	VolumeMounts         []corev1.VolumeMount
}

APIDetails information

Jump to

Keyboard shortcuts

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