Documentation
¶
Index ¶
- func GetItems(resources client.ObjectList) []interface{}
- type Config
- type Shipper
- type ShipperConfig
- type SubjectVersion
- type VersionTrackerReconciler
- func (r *VersionTrackerReconciler) ExtractSubjectVersion(v v1alpha1.VersionTracker, items []interface{}) SubjectVersion
- func (r *VersionTrackerReconciler) PrepareThePayload(sv SubjectVersion) controlplane.AgentPayload
- func (r *VersionTrackerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *VersionTrackerReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *VersionTrackerReconciler) ShipToControlPlane(ver SubjectVersion) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetItems ¶
func GetItems(resources client.ObjectList) []interface{}
Returns the list of items from the resources based on the resource type
Types ¶
type Shipper ¶
func NewShipper ¶
func NewShipper(config *ShipperConfig) *Shipper
func (*Shipper) Post ¶
func (s *Shipper) Post(payload controlplane.AgentPayload) error
type ShipperConfig ¶
type SubjectVersion ¶
type VersionTrackerReconciler ¶
type VersionTrackerReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme Config *Config }
VersionTrackerReconciler reconciles a VersionTracker object
func (*VersionTrackerReconciler) ExtractSubjectVersion ¶
func (r *VersionTrackerReconciler) ExtractSubjectVersion(v v1alpha1.VersionTracker, items []interface{}) SubjectVersion
ExtractSubjectVersion looks at the feild of each individuel resource and extracts the version based on the extraction configuration in the VersionTracker
func (*VersionTrackerReconciler) PrepareThePayload ¶
func (r *VersionTrackerReconciler) PrepareThePayload(sv SubjectVersion) controlplane.AgentPayload
func (*VersionTrackerReconciler) Reconcile ¶
func (r *VersionTrackerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
For more details, check Reconcile and its Result here: - https://pkgo.dev/sigs.k8s.io/[email protected]/pkg/reconcile
func (*VersionTrackerReconciler) SetupWithManager ¶
func (r *VersionTrackerReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
func (*VersionTrackerReconciler) ShipToControlPlane ¶
func (r *VersionTrackerReconciler) ShipToControlPlane(ver SubjectVersion) error
Directories
¶
Path | Synopsis |
---|---|
api
|
|
v1alpha1
Package v1alpha1 contains API Schema definitions for the opvic v1alpha1 API group +kubebuilder:object:generate=true +groupName=opvic.skillz.com
|
Package v1alpha1 contains API Schema definitions for the opvic v1alpha1 API group +kubebuilder:object:generate=true +groupName=opvic.skillz.com |
Click to show internal directories.
Click to hide internal directories.