v1alpha1

package
v0.0.0-...-ed5af19 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the event v1alpha1 API group +kubebuilder:object:generate=true +groupName=event.redhat-cne.org

Index

Constants

View Source
const (
	AmqScheme            = "amqp"
	DefaultTransportHost = "http://hw-event-publisher-service.openshift-bare-metal-events.svc.cluster.local:9043"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "event.redhat-cne.org", 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

This section is empty.

Types

type HardwareEvent

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

	Spec   HardwareEventSpec   `json:"spec,omitempty"`
	Status HardwareEventStatus `json:"status,omitempty"`
}

HardwareEvent is the Schema for the hardwareevents API +operator-sdk:csv:customresourcedefinitions:displayName="Hardware Event",resources={{Namespace, v1},{Deployment,apps/v1}}

func (*HardwareEvent) DeepCopy

func (in *HardwareEvent) DeepCopy() *HardwareEvent

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

func (*HardwareEvent) DeepCopyInto

func (in *HardwareEvent) DeepCopyInto(out *HardwareEvent)

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

func (*HardwareEvent) DeepCopyObject

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

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

func (*HardwareEvent) SetupWebhookWithManager

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

func (*HardwareEvent) ValidateCreate

func (r *HardwareEvent) ValidateCreate() (admission.Warnings, error)

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

func (*HardwareEvent) ValidateDelete

func (r *HardwareEvent) ValidateDelete() (admission.Warnings, error)

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

func (*HardwareEvent) ValidateUpdate

func (r *HardwareEvent) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

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

type HardwareEventList

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

HardwareEventList contains a list of HardwareEvent

func (*HardwareEventList) DeepCopy

func (in *HardwareEventList) DeepCopy() *HardwareEventList

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

func (*HardwareEventList) DeepCopyInto

func (in *HardwareEventList) DeepCopyInto(out *HardwareEventList)

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

func (*HardwareEventList) DeepCopyObject

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

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

type HardwareEventSpec

type HardwareEventSpec struct {

	// TransportHost format is <protocol>://<transport-service>.<namespace>.svc.cluster.local:<transport-port>"
	// Example HTTP transport: "http://hw-event-publisher-service.openshift-bare-metal-events.svc.cluster.local:9043"
	// Example AMQP transport: "amqp://amq-router-service-name.amq-namespace.svc.cluster.local"
	//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Transport Host",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:text"}
	TransportHost string `json:"transportHost,omitempty"`
	// +kubebuilder:validation:Optional
	// +kubebuilder:default=debug
	//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Log Level",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:text"}
	LogLevel string `json:"logLevel,omitempty"`
	// +kubebuilder:validation:Optional
	// +kubebuilder:default=10
	//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Message Parser Timeout",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:text"}
	MsgParserTimeout int `json:"msgParserTimeout,omitempty"`

	// +kubebuilder:validation:Required
	//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Node Selector",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:text"}
	NodeSelector map[string]string `json:"nodeSelector"`

	// StorageType is the name of StorageClass providing persist storage used by HTTP transport to store subscription data
	//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Storage Type",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:text"}
	StorageType string `json:"storageType,omitempty"`
}

HardwareEventSpec defines the desired state of HardwareEvent

func (*HardwareEventSpec) DeepCopy

func (in *HardwareEventSpec) DeepCopy() *HardwareEventSpec

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

func (*HardwareEventSpec) DeepCopyInto

func (in *HardwareEventSpec) DeepCopyInto(out *HardwareEventSpec)

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

type HardwareEventStatus

type HardwareEventStatus struct {

	// LastSynced time of the custom resource
	// +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Last Synced"
	LastSynced *metav1.Time `json:"lastSyncTimestamp,omitempty"`
}

HardwareEventStatus defines the observed state of HardwareEvent

func (*HardwareEventStatus) DeepCopy

func (in *HardwareEventStatus) DeepCopy() *HardwareEventStatus

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

func (*HardwareEventStatus) DeepCopyInto

func (in *HardwareEventStatus) DeepCopyInto(out *HardwareEventStatus)

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

Jump to

Keyboard shortcuts

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