controllers

package
v0.0.1-beta.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppAPIInfo

type AppAPIInfo struct {
	ClusterUUID string `json:"cluster_uuid"`
	AppUUID     string `json:"app_uuid"`
	AppName     string `json:"app_name"`
	Type        string `json:"type"`
	HosstedHelm bool   `json:"hossted_helm"`
}

AppAPIInfo contains basic information about the application API.

type AppInfo

type AppInfo struct {
	HelmInfo    hosstedcomv1.HelmInfo `json:"helm_info"`
	PodInfo     []PodInfo             `json:"pod_info"`
	ServiceInfo []ServiceInfo         `json:"service_info"`
	VolumeInfo  []VolumeInfo          `json:"volume_info"`
	IngressInfo []IngressInfo         `json:"ingress_info"`
}

type Collector

type Collector struct {
	AppAPIInfo AppAPIInfo `json:"app_api_info"`
	AppInfo    AppInfo    `json:"app_info"`
}

type HosstedProjectReconciler

type HosstedProjectReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

HosstedProjectReconciler reconciles a HosstedProject object

func (*HosstedProjectReconciler) Reconcile

+kubebuilder:rbac:groups=hossted.com,resources=hosstedprojects,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=hossted.com,resources=hosstedprojects/status,verbs=get;update;patch +kubebuilder:rbac:groups=hossted.com,resources=hosstedprojects/finalizers,verbs=update +kubebuilder:rbac:groups=networking.k8s.io,resources=ingresses,verbs=list;get;watch +kubebuilder:rbac:groups="",resources=namespaces,verbs=list;get;watch +kubebuilder:rbac:groups="",resources=pods,verbs=list;get;watch +kubebuilder:rbac:groups="",resources=configmaps,verbs=list;get;watch +kubebuilder:rbac:groups="",resources=services,verbs=list;get;watch +kubebuilder:rbac:groups="",resources=secrets,verbs=list;get;watch +kubebuilder:rbac:groups="",resources=persistentvolumeclaims,verbs=list;get;watch Reconcile reconciles the Hosstedproject custom resource.

func (*HosstedProjectReconciler) SetupWithManager

func (r *HosstedProjectReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type IngressInfo

type IngressInfo struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	Domain    string `json:"domain"`
}

type PodInfo

type PodInfo struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	Image     string `json:"image"`
	Status    string `json:"status"`
}

PodInfo contains information about a Kubernetes pod.

type ServiceInfo

type ServiceInfo struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	Port      int32  `json:"port"`
}

ServiceInfo contains information about a Kubernetes service.

type TransformStatusFunc

type TransformStatusFunc func(obj client.Object) client.Object

TransformStatusFunc is a function type for transforming status objects.

type VerbType

type VerbType string

VerbType defines the type for action verbs.

const (
	VerbPatched   VerbType = "Patched"
	VerbUnchanged VerbType = "Unchanged"
)

type VolumeInfo

type VolumeInfo struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	Size      int    `json:"size"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL