appdefinition

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 54 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AcornHelper     = " /acorn-helper"
	AcornHelperPath = "/.acorn"
)

Variables

View Source
var (
	ErrJobNotDone  = errors.New("job not complete")
	ErrJobNoOutput = errors.New("job has no output")
)
View Source
var (
	DigestPattern = regexp.MustCompile(`^sha256:[a-f\d]{64}$`)
)

Functions

func AcornStatus

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

func AppEndpointsStatus

func AppEndpointsStatus(req router.Request, _ router.Response) error

func AppStatus

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

func AssignNamespace

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

func CLIStatus

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

func CheckDependencies

func CheckDependencies(h router.Handler) router.Handler

func CreateSecrets

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

func DeploySpec

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

func IgnoreTerminatingNamespace

func IgnoreTerminatingNamespace(h router.Handler) router.Handler

func JobStatus

func JobStatus(req router.Request, resp router.Response) 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(req router.Request, resp router.Response) error

func ReadyStatus

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

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) (result []kclient.Object, _ error)

func UpdateGeneration

func UpdateGeneration(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