buildrun

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: AGPL-3.0 Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	JobCreated   string = "job-created"
	JobCompleted string = "job-completed"
	JobFailed    string = "job-failed"
	JobDeleted   string = "job-deleted"
)

Variables

View Source
var (
	ApplyChecklist = []rApi.CheckMeta{
		{Name: JobCreated, Title: "Job created for build"},
		{Name: JobCompleted, Title: "Job completed"},
	}

	DeleteChecklist = []rApi.CheckMeta{
		{Name: JobDeleted, Title: "Cleaning up resources"},
	}
)

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

	ServerResource Resource
	ClientResource Resource

	CacheCheckoutCmd     string
	CachePostCheckoutCmd string

	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