Documentation
¶
Index ¶
- func Add(ctx context.Context, c *config.Config, mgr manager.Manager) error
- func AmendTaskSpecWithRuntimeImage(cfg *config.Config, spec *v1beta1.TaskSpec, b *buildv1alpha1.Build) error
- func ApplyCredentials(ctx context.Context, build *buildv1alpha1.Build, ...) bool
- func GenerateTaskRun(cfg *config.Config, build *buildv1alpha1.Build, ...) (*v1beta1.TaskRun, error)
- func GenerateTaskSpec(cfg *config.Config, build *buildv1alpha1.Build, ...) (*v1beta1.TaskSpec, error)
- func NewReconciler(ctx context.Context, c *config.Config, mgr manager.Manager, ...) reconcile.Reconciler
- type ReconcileBuildRun
- func (r *ReconcileBuildRun) GetBuildObject(ctx context.Context, objectName string, objectNS string, ...) error
- func (r *ReconcileBuildRun) GetBuildRunObject(ctx context.Context, objectName string, objectNS string, ...) error
- func (r *ReconcileBuildRun) Reconcile(request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcileBuildRun) ValidateBuildRegistration(ctx context.Context, build *buildv1alpha1.Build, ...) error
- func (r *ReconcileBuildRun) VerifyRequestName(ctx context.Context, request reconcile.Request, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add creates a new BuildRun Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.
func AmendTaskSpecWithRuntimeImage ¶
func AmendTaskSpecWithRuntimeImage( cfg *config.Config, spec *v1beta1.TaskSpec, b *buildv1alpha1.Build, ) error
AmendTaskSpecWithRuntimeImage add more steps to Tekton's Task in order to create the runtime-image.
func ApplyCredentials ¶
func ApplyCredentials(ctx context.Context, build *buildv1alpha1.Build, serviceAccount *corev1.ServiceAccount) bool
ApplyCredentials adds all credentials that are referenced by the build and adds them to the service account. The function returns true if the service account was modified.
func GenerateTaskRun ¶
func GenerateTaskRun( cfg *config.Config, build *buildv1alpha1.Build, buildRun *buildv1alpha1.BuildRun, serviceAccountName string, strategy buildv1alpha1.BuilderStrategy, ) (*v1beta1.TaskRun, error)
GenerateTaskRun creates a Tekton TaskRun to be used for a build run
func GenerateTaskSpec ¶
func GenerateTaskSpec( cfg *config.Config, build *buildv1alpha1.Build, buildRun *buildv1alpha1.BuildRun, buildSteps []buildv1alpha1.BuildStep, ) (*v1beta1.TaskSpec, error)
GenerateTaskSpec creates Tekton TaskRun spec to be used for a build run
func NewReconciler ¶
func NewReconciler(ctx context.Context, c *config.Config, mgr manager.Manager, ownerRef setOwnerReferenceFunc) reconcile.Reconciler
NewReconciler returns a new reconcile.Reconciler
Types ¶
type ReconcileBuildRun ¶
type ReconcileBuildRun struct {
// contains filtered or unexported fields
}
ReconcileBuildRun reconciles a BuildRun object
func (*ReconcileBuildRun) GetBuildObject ¶
func (r *ReconcileBuildRun) GetBuildObject(ctx context.Context, objectName string, objectNS string, build *buildv1alpha1.Build) error
GetBuildObject retrieves an existing Build based on a name and namespace
func (*ReconcileBuildRun) GetBuildRunObject ¶
func (r *ReconcileBuildRun) GetBuildRunObject(ctx context.Context, objectName string, objectNS string, buildRun *buildv1alpha1.BuildRun) error
GetBuildRunObject retrieves an existing BuildRun based on a name and namespace
func (*ReconcileBuildRun) Reconcile ¶
Reconcile reads that state of the cluster for a Build object and makes changes based on the state read and what is in the Build.Spec
func (*ReconcileBuildRun) ValidateBuildRegistration ¶
func (r *ReconcileBuildRun) ValidateBuildRegistration(ctx context.Context, build *buildv1alpha1.Build, buildRun *buildv1alpha1.BuildRun) error
ValidateBuildRegistration verifies that a referenced Build is properly registered
func (*ReconcileBuildRun) VerifyRequestName ¶
func (r *ReconcileBuildRun) VerifyRequestName(ctx context.Context, request reconcile.Request, buildRun *buildv1alpha1.BuildRun)
VerifyRequestName parse a Reconcile request name and looks for an associated BuildRun name If the BuildRun object exists, it will update it with an error.