Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeHash ¶ added in v0.0.2
func ComputeHash(obj interface{}) string
ComputeHash computes hash value of a interface
func PathExists ¶
PathExists checks if the target path exist or not
Types ¶
type ErrorSlice ¶
type ErrorSlice []error
ErrorSlice is a collection of errors
func (ErrorSlice) String ¶
func (e ErrorSlice) String() (result string)
String returns a readable string
type ReleaserReconciler ¶
type ReleaserReconciler struct { client.Client Scheme *runtime.Scheme GitCacheDir string // contains filtered or unexported fields }
ReleaserReconciler reconciles a Releaser object
func (*ReleaserReconciler) Reconcile ¶
func (r *ReleaserReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. the Releaser object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile
func (*ReleaserReconciler) SetupWithManager ¶
func (r *ReleaserReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type StatusController ¶ added in v0.0.14
type StatusController struct { client.Client Scheme *runtime.Scheme // contains filtered or unexported fields }
StatusController is responsible for reporting errors to git provider
func (*StatusController) Reconcile ¶ added in v0.0.14
func (c *StatusController) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)
Reconcile responsible for reporting the error status of a releaser
func (*StatusController) SetupWithManager ¶ added in v0.0.14
func (r *StatusController) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.