Documentation
¶
Index ¶
- Constants
- func ComputeReadyCondition(conditions greenhousemetav1alpha1.StatusConditions) (readyCondition greenhousemetav1alpha1.Condition)
- func IncrementHelmChartTestRunsTotal(plugin *greenhousev1alpha1.Plugin, testRunResult string)
- func InitPluginStatus(plugin *greenhousev1alpha1.Plugin) greenhousev1alpha1.PluginStatus
- func ListPluginsAsReconcileRequests(ctx context.Context, c client.Client, listOpts ...client.ListOption) []ctrl.Request
- func UpdatePluginReadyMetric(plugin *greenhousev1alpha1.Plugin, ready bool)
- func UpdatePluginWorkloadMetrics(plugin *greenhousev1alpha1.Plugin, status float64)
- type PayloadStatus
- type PluginPresetReconciler
- func (r *PluginPresetReconciler) EnsureCreated(ctx context.Context, resource lifecycle.RuntimeObject) (ctrl.Result, lifecycle.ReconcileResult, error)
- func (r *PluginPresetReconciler) EnsureDeleted(ctx context.Context, resource lifecycle.RuntimeObject) (ctrl.Result, lifecycle.ReconcileResult, error)
- func (r *PluginPresetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *PluginPresetReconciler) SetupWithManager(name string, mgr ctrl.Manager) error
- type PluginReconciler
- func (r *PluginReconciler) EnsureCreated(ctx context.Context, resource lifecycle.RuntimeObject) (ctrl.Result, lifecycle.ReconcileResult, error)
- func (r *PluginReconciler) EnsureDeleted(ctx context.Context, resource lifecycle.RuntimeObject) (ctrl.Result, lifecycle.ReconcileResult, error)
- func (r *PluginReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *PluginReconciler) SetupWithManager(name string, mgr ctrl.Manager) error
- type ReleaseStatus
Constants ¶
View Source
const (
StatusRequeueInterval = 2 * time.Minute
)
Variables ¶
This section is empty.
Functions ¶
func ComputeReadyCondition ¶ added in v0.6.0
func ComputeReadyCondition( conditions greenhousemetav1alpha1.StatusConditions, ) (readyCondition greenhousemetav1alpha1.Condition)
ComputeReadyCondition computes the ReadyCondition for the Plugin based on various status conditions
func IncrementHelmChartTestRunsTotal ¶ added in v0.6.0
func IncrementHelmChartTestRunsTotal(plugin *greenhousev1alpha1.Plugin, testRunResult string)
func InitPluginStatus ¶ added in v0.6.0
func InitPluginStatus(plugin *greenhousev1alpha1.Plugin) greenhousev1alpha1.PluginStatus
InitPluginStatus initializes all empty Plugin Conditions to "unknown"
func ListPluginsAsReconcileRequests ¶ added in v0.6.0
func UpdatePluginReadyMetric ¶ added in v0.6.0
func UpdatePluginReadyMetric(plugin *greenhousev1alpha1.Plugin, ready bool)
func UpdatePluginWorkloadMetrics ¶ added in v0.6.0
func UpdatePluginWorkloadMetrics(plugin *greenhousev1alpha1.Plugin, status float64)
setWorkloadMetrics sets the workload status metric to the given status
Types ¶
type PayloadStatus ¶
type PayloadStatus struct {
Kind string `json:"kind,omitempty"`
Name string `json:"name,omitempty"`
Replicas int32 `json:"replicas,omitempty" protobuf:"varint,2,opt,name=replicas"`
UpdatedReplicas int32 `json:"updatedReplicas,omitempty" protobuf:"varint,3,opt,name=updatedReplicas"`
ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,7,opt,name=readyReplicas"`
AvailableReplicas int32 `json:"availableReplicas,omitempty" protobuf:"varint,4,opt,name=availableReplicas"`
Ready bool `json:"ready,omitempty"`
Message string `json:"message,omitempty"`
}
type PluginPresetReconciler ¶
PluginPresetReconciler reconciles a PluginPreset object
func (*PluginPresetReconciler) EnsureCreated ¶
func (r *PluginPresetReconciler) EnsureCreated(ctx context.Context, resource lifecycle.RuntimeObject) (ctrl.Result, lifecycle.ReconcileResult, error)
func (*PluginPresetReconciler) EnsureDeleted ¶
func (r *PluginPresetReconciler) EnsureDeleted(ctx context.Context, resource lifecycle.RuntimeObject) (ctrl.Result, lifecycle.ReconcileResult, error)
func (*PluginPresetReconciler) SetupWithManager ¶
func (r *PluginPresetReconciler) SetupWithManager(name string, mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type PluginReconciler ¶
type PluginReconciler struct {
client.Client
KubeRuntimeOpts clientutil.RuntimeOptions
// contains filtered or unexported fields
}
PluginReconciler reconciles a Plugin object.
func (*PluginReconciler) EnsureCreated ¶
func (r *PluginReconciler) EnsureCreated(ctx context.Context, resource lifecycle.RuntimeObject) (ctrl.Result, lifecycle.ReconcileResult, error)
func (*PluginReconciler) EnsureDeleted ¶
func (r *PluginReconciler) EnsureDeleted(ctx context.Context, resource lifecycle.RuntimeObject) (ctrl.Result, lifecycle.ReconcileResult, error)
func (*PluginReconciler) SetupWithManager ¶
func (r *PluginReconciler) SetupWithManager(name string, mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ReleaseStatus ¶
type ReleaseStatus struct {
ReleaseName string `json:"releaseName,omitempty" protobuf:"bytes,1,opt,name=releaseName"`
ReleaseNamespace string `json:"releaseNamespace,omitempty" protobuf:"bytes,3,opt,name=namespace"`
HelmStatus string `json:"helmStatus,omitempty"`
ClusterName string `json:"clusterName,omitempty"`
PayloadStatus []PayloadStatus
}
Click to show internal directories.
Click to hide internal directories.