Documentation ¶
Index ¶
Constants ¶
View Source
const ( // FinalizerAnnotation annotation string appended on finalizer slice. FinalizerAnnotation = "finalizer.operator.shipwright.io" // Ready object is providing service. ConditionReady = "Ready" )
Variables ¶
This section is empty.
Functions ¶
func RequeueOnError ¶
RequeueOnError triggers requeue when error is not nil.
Types ¶
type ShipwrightBuildReconciler ¶
type ShipwrightBuildReconciler struct { client.Client // controller kubernetes client CRDClient crdclientv1.ApiextensionsV1Interface TektonOperatorClient tektonoperatorv1alpha1client.OperatorV1alpha1Interface Logger logr.Logger // decorated logger Scheme *runtime.Scheme // runtime scheme Manifest manifestival.Manifest // release manifests render TektonManifest manifestival.Manifest // Tekton release manifest render }
ShipwrightBuildReconciler reconciles a ShipwrightBuild object
func (*ShipwrightBuildReconciler) Reconcile ¶
func (r *ShipwrightBuildReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile performs the resource reconciliation steps to deploy or remove Shipwright Build instances. When deletion-timestamp is found, the removal of the previously deploy resources is executed, otherwise the regular deploy workflow takes place.
func (*ShipwrightBuildReconciler) SetupWithManager ¶
func (r *ShipwrightBuildReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager, by instantiating Manifestival and setting up watch and predicate rules for ShipwrightBuild objects.
Click to show internal directories.
Click to hide internal directories.