v1alpha1

package
v0.0.0-...-0145ae5 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the eventsource v1alpha1 API group +kubebuilder:object:generate=true +groupName=eventsource.vilaverde.rocks

Index

Constants

View Source
const (
	ReasonSucceeded            = "Succeeded"
	ReasonReconciling          = "Reconciling"
	ReasonResourceNotAvailable = "ResourceNotAvailable"

	TypePolling = "Polling"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "eventsource.vilaverde.rocks", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func ValidatePrometheus

func ValidatePrometheus(r *Prometheus) error

Types

type AuthSpec

type AuthSpec struct {
	SecretReference corev1.SecretReference `json:"secretRef"`
}

AuthSpec Spec for references to secrets

func (*AuthSpec) DeepCopy

func (in *AuthSpec) DeepCopy() *AuthSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthSpec.

func (*AuthSpec) DeepCopyInto

func (in *AuthSpec) DeepCopyInto(out *AuthSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Prometheus

type Prometheus struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PrometheusSpec   `json:"spec,omitempty"`
	Status PrometheusStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Polling Interval",type=string,JSONPath=`.spec.pollingInterval` +kubebuilder:printcolumn:name="Include Pending",type=boolean,JSONPath=`.spec.includePending` +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.state` +kubebuilder:resource:shortName=pes Prometheus is the Schema for the prometheuses API

func (*Prometheus) DeepCopy

func (in *Prometheus) DeepCopy() *Prometheus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Prometheus.

func (*Prometheus) DeepCopyInto

func (in *Prometheus) DeepCopyInto(out *Prometheus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Prometheus) DeepCopyObject

func (in *Prometheus) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Prometheus) Default

func (r *Prometheus) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Prometheus) SetupWebhookWithManager

func (r *Prometheus) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Prometheus) ValidateCreate

func (r *Prometheus) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Prometheus) ValidateDelete

func (r *Prometheus) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Prometheus) ValidateUpdate

func (r *Prometheus) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type PrometheusList

type PrometheusList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Prometheus `json:"items"`
}

PrometheusList contains a list of Prometheus

func (*PrometheusList) DeepCopy

func (in *PrometheusList) DeepCopy() *PrometheusList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusList.

func (*PrometheusList) DeepCopyInto

func (in *PrometheusList) DeepCopyInto(out *PrometheusList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PrometheusList) DeepCopyObject

func (in *PrometheusList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PrometheusSpec

type PrometheusSpec struct {
	Service ServiceReference `json:"service"`
	// Defines a Kubernetes secret with a type indicating the authentication scheme
	// for example the type: 'kubernetes.io/basic-auth' indicates basic auth credentials
	// to prometheus.
	Auth *AuthSpec `json:"auth,omitempty"`

	PollingInterval metav1.Duration `json:"pollingInterval"`
	IncludePending  bool            `json:"includePending"`
}

PrometheusSpec defines the desired state of Prometheus

func (*PrometheusSpec) DeepCopy

func (in *PrometheusSpec) DeepCopy() *PrometheusSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusSpec.

func (*PrometheusSpec) DeepCopyInto

func (in *PrometheusSpec) DeepCopyInto(out *PrometheusSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PrometheusStatus

type PrometheusStatus struct {
	State      StateType          `json:"state,omitempty"`
	Conditions []metav1.Condition `json:"conditions"`
}

PrometheusStatus defines the observed state of Prometheus

func (*PrometheusStatus) DeepCopy

func (in *PrometheusStatus) DeepCopy() *PrometheusStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusStatus.

func (*PrometheusStatus) DeepCopyInto

func (in *PrometheusStatus) DeepCopyInto(out *PrometheusStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServiceReference

type ServiceReference struct {
	// `namespace` is the namespace of the service.
	Namespace string `json:"namespace"`
	// `name` is the name of the service.
	Name string `json:"name"`
	// `path` is an optional URL path which will be sent in any request to
	// this service.
	// +optional
	Path *string `json:"path,omitempty"`
	// `port` should be a valid port number (1-65535, inclusive).
	// +optional
	Port int32 `json:"port,omitempty"`
	// `targetPort` should be a valid name of a port in the target service.
	// +optional
	TargetPort string `json:"targetPort,omitempty"`
	// `useTls` true if the HTTPS endpoint should be used.
	// +optional
	UseTls bool `json:"useTls,omitempty"`
}

func (*ServiceReference) DeepCopy

func (in *ServiceReference) DeepCopy() *ServiceReference

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceReference.

func (*ServiceReference) DeepCopyInto

func (in *ServiceReference) DeepCopyInto(out *ServiceReference)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServiceReference) GetNamespacedName

func (s *ServiceReference) GetNamespacedName() types.NamespacedName

GetNamespacedName get the NamespacedName of the Service

type StateType

type StateType string
const (
	Polling StateType = "Polling"
	Error   StateType = "Error"
	Unknown StateType = "Unknown"
)

Jump to

Keyboard shortcuts

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