appdefinition

package
v0.10.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 59 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AcornHelper            = " /acorn-helper"
	AcornHelperPath        = "/.acorn"
	AcornHelperSleepPath   = "/.acorn/sleep"
	AcornHelperBusyboxPath = "/.acorn/busybox"
)

Variables

This section is empty.

Functions

func AddAcornProjectLabel

func AddAcornProjectLabel(req router.Request, resp router.Response) error

func AssignNamespace

func AssignNamespace(req router.Request, resp router.Response) (err error)

func DeploySpec

func DeploySpec(req router.Request, resp router.Response) (err error)

func FilterLabelsAndAnnotationsConfig

func FilterLabelsAndAnnotationsConfig(h router.Handler) router.Handler

func IgnoreTerminatingNamespace

func IgnoreTerminatingNamespace(h router.Handler) router.Handler

func ImagePulled

func ImagePulled(h router.Handler) router.Handler

func LookupExistingPV added in v0.9.1

func LookupExistingPV(req router.Request, appInstance *v1.AppInstance, volumeName string) (string, error)

func OnError

func OnError(req router.Request, resp router.Response, err error) error

func ParseAppImage

func ParseAppImage(req router.Request, resp router.Response) error

func PullAppImage

func PullAppImage(transport http.RoundTripper, recorder event.Recorder) router.HandlerFunc

func ReleaseVolume

func ReleaseVolume(req router.Request, resp router.Response) error

func RequireNamespace

func RequireNamespace(h router.Handler) router.Handler

func ToDeployments

func ToDeployments(req router.Request, appInstance *v1.AppInstance, tag name.Reference, pullSecrets *PullSecrets, secrets *secrets.Interpolator) (result []kclient.Object, _ error)

func ToFunctions added in v0.10.0

func ToFunctions(req router.Request, appInstance *v1.AppInstance, tag name.Reference, pullSecrets *PullSecrets, secrets *secrets.Interpolator) (result []kclient.Object, _ error)

func UpdateObservedFields

func UpdateObservedFields(req router.Request, resp router.Response) error

Types

type PullSecrets

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

func NewPullSecrets

func NewPullSecrets(req router.Request, appInstance *v1.AppInstance) (*PullSecrets, error)

func (*PullSecrets) Err

func (p *PullSecrets) Err() error

func (*PullSecrets) ForAcorn

func (p *PullSecrets) ForAcorn(acornName, image string) []corev1.LocalObjectReference

func (*PullSecrets) ForContainer

func (p *PullSecrets) ForContainer(containerName string, containers []corev1.Container) []corev1.LocalObjectReference

func (*PullSecrets) Objects

func (p *PullSecrets) Objects() []kclient.Object

Jump to

Keyboard shortcuts

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