buildrun

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CredsAvailable string = "creds-available"

	PVCReady     string = "pvc-ready"
	JobCreated   string = "job-created"
	JobCompleted string = "job-completed"
	JobFailed    string = "job-failed"
	JobDeleted   string = "job-deleted"
)

Variables

This section is empty.

Functions

func BuildUrl

func BuildUrl(repo string, pullToken []byte) (string, error)

Types

type BuildObj

type BuildObj struct {
	Name             string
	Namespace        string
	Labels           map[string]string
	Annotations      map[string]string
	AccountName      string
	RegistryHost     string
	RegistryReponame string
	RegistryUsername string
	RegistryPassword string

	RegistryTags string

	GitRepoUrl    string
	GitRepoBranch string
	BuildOptions  BuildOptions
	BuildCacheKey *string

	ServerResource  Resource
	ClientResource  Resource
	OwnerReferences []metav1.OwnerReference
}

type BuildOptions

type BuildOptions struct {
	BuildArgs         string
	BuildContexts     string
	DockerfilePath    string
	DockerfileContent *string
	TargetPlatforms   string
	ContextDir        string
}

type Reconciler

type Reconciler struct {
	client.Client
	Scheme *runtime.Scheme

	Name string

	Env *env.Env
	// contains filtered or unexported fields
}

func (*Reconciler) GetName

func (r *Reconciler) GetName() string

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager, logger logging.Logger) error

type Resource

type Resource struct {
	Cpu    int
	Memory int
}

Jump to

Keyboard shortcuts

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