Documentation ¶
Index ¶
- Constants
- func AppendAffinityWithRole(p interfaces.PodCreator, a *core.PodAffinity, role string)
- func AppendArchSelector(a *core.NodeAffinity, nodeSelectorForArch core.NodeSelectorTerm)
- func AppendPodAntiAffinityDefault(p interfaces.PodCreator, a *core.PodAntiAffinity)
- func GenerateMemberEndpoint(services service.Inspector, apiObject meta.Object, spec api.DeploymentSpec, ...) (string, error)
- func GenerateMemberEndpointFromService(svc *core.Service, apiObject meta.Object, spec api.DeploymentSpec, ...) (string, error)
- func GetArchFromAffinity(a *core.Affinity) api.ArangoDeploymentArchitectureType
- func GetEncryptionFolderSecretName(name string) string
- func GetEncryptionKey(ctx context.Context, secrets generic.ReadClient[*core.Secret], name string) (string, []byte, bool, error)
- func GetEncryptionKeyFromSecret(keyfile *core.Secret) (string, []byte, error)
- func GetTLSKeyfileSecretName(i Input) string
- func GroupEncryptionSupported(mode api.DeploymentMode, group api.ServerGroup) bool
- func GroupSNISupported(spec api.DeploymentSpec, group api.ServerGroup) bool
- func IsAuthenticated(i Input) bool
- func IsEncryptionEnabled(i Input) bool
- func IsRuntimeTLSKeyfileUpdateSupported(i Input) bool
- func IsTLSEnabled(i Input) bool
- func JWTSecretFolder(name string) string
- func MultiFileMode(i Input) bool
- func SetArchInAffinity(a *core.Affinity, arch api.ArangoDeploymentArchitectureType)
- func TimezoneSecret(name string) string
- func VersionHasJWTSecretKeyfolder(v driver.Version, enterprise bool) bool
- type Builder
- type Input
- type Probe
- type Volumes
Constants ¶
View Source
const ( TimezoneNameKey string = "name" TimezoneDataKey string = "data" TimezoneTZKey string = "timezone" )
View Source
const ActiveJWTKey = "-"
Variables ¶
This section is empty.
Functions ¶
func AppendAffinityWithRole ¶
func AppendAffinityWithRole(p interfaces.PodCreator, a *core.PodAffinity, role string)
func AppendArchSelector ¶
func AppendArchSelector(a *core.NodeAffinity, nodeSelectorForArch core.NodeSelectorTerm)
func AppendPodAntiAffinityDefault ¶
func AppendPodAntiAffinityDefault(p interfaces.PodCreator, a *core.PodAntiAffinity)
func GenerateMemberEndpoint ¶
func GenerateMemberEndpoint(services service.Inspector, apiObject meta.Object, spec api.DeploymentSpec, group api.ServerGroup, member api.MemberStatus) (string, error)
func GenerateMemberEndpointFromService ¶
func GenerateMemberEndpointFromService(svc *core.Service, apiObject meta.Object, spec api.DeploymentSpec, group api.ServerGroup, member api.MemberStatus) (string, error)
func GetArchFromAffinity ¶
func GetArchFromAffinity(a *core.Affinity) api.ArangoDeploymentArchitectureType
func GetEncryptionKey ¶
func GetTLSKeyfileSecretName ¶
func GroupEncryptionSupported ¶
func GroupEncryptionSupported(mode api.DeploymentMode, group api.ServerGroup) bool
func GroupSNISupported ¶
func GroupSNISupported(spec api.DeploymentSpec, group api.ServerGroup) bool
func IsAuthenticated ¶
func IsEncryptionEnabled ¶
func IsTLSEnabled ¶
func JWTSecretFolder ¶
func MultiFileMode ¶
func SetArchInAffinity ¶
func SetArchInAffinity(a *core.Affinity, arch api.ArangoDeploymentArchitectureType)
func TimezoneSecret ¶
Types ¶
type Builder ¶
type Builder interface { Args(i Input) k8sutil.OptionPairs Volumes(i Input) ([]core.Volume, []core.VolumeMount) Envs(i Input) []core.EnvVar Verify(i Input, cachedStatus interfaces.Inspector) error }
func AutoUpgrade ¶
func AutoUpgrade() Builder
func Encryption ¶
func Encryption() Builder
func SNIGateway ¶
func SNIGateway() Builder
func UpgradeDebug ¶
func UpgradeDebug() Builder
func UpgradeVersionCheck ¶
func UpgradeVersionCheck() Builder
type Input ¶
type Input struct { ApiObject meta.Object Deployment deploymentApi.DeploymentSpec Status deploymentApi.DeploymentStatus GroupSpec deploymentApi.ServerGroupSpec Group deploymentApi.ServerGroup Version driver.Version Member deploymentApi.MemberStatus ArangoMember deploymentApi.ArangoMember Enterprise bool AutoUpgrade bool }
type Probe ¶
type Probe struct {
CanBeEnabled, EnabledByDefault bool
}
func LivenessSpec ¶
func LivenessSpec(group api.ServerGroup) Probe
func ReadinessSpec ¶
func ReadinessSpec(group api.ServerGroup) Probe
func StartupSpec ¶
func StartupSpec(group api.ServerGroup) Probe
type Volumes ¶
type Volumes interface { Append(b Builder, i Input) AddVolume(volumes ...core.Volume) AddVolumeMount(mounts ...core.VolumeMount) Volumes() []core.Volume VolumeMounts() []core.VolumeMount }
func NewVolumes ¶
func NewVolumes() Volumes
Click to show internal directories.
Click to hide internal directories.