v1alpha1

package
v3.20.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the status v1alpha1 API group +kubebuilder:object:generate=true +groupName=status.gatekeeper.sh

Index

Constants

View Source
const (
	UpsertConnectionError connectionErrorType = "UpsertConnection"
	PublishError          connectionErrorType = "Publish"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "status.gatekeeper.sh", 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 KeyForConnection

func KeyForConnection(id string, connectionNamespace string, connectionName string) (string, error)

KeyForConnection returns a unique status object name given the Pod ID and a connection object.

Types

type ConnectionError

type ConnectionError struct {
	Type    connectionErrorType `json:"type"`
	Message string              `json:"message"`
}

func (*ConnectionError) DeepCopy

func (in *ConnectionError) DeepCopy() *ConnectionError

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

func (*ConnectionError) DeepCopyInto

func (in *ConnectionError) DeepCopyInto(out *ConnectionError)

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

type ConnectionPodStatus

type ConnectionPodStatus struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// No spec field is defined here, as this is a status-only resource.
	Status ConnectionPodStatusStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true ConnectionPodStatus is the Schema for the connectionpodstatuses API

func NewConnectionStatusForPod

func NewConnectionStatusForPod(pod *corev1.Pod, connectionNamespace, connectionName string, scheme *runtime.Scheme) (*ConnectionPodStatus, error)

NewConnectionStatusForPod returns a connection status object that has been initialized with the bare minimum of fields to make it functional with the connection status controller.

func (*ConnectionPodStatus) DeepCopy

func (in *ConnectionPodStatus) DeepCopy() *ConnectionPodStatus

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

func (*ConnectionPodStatus) DeepCopyInto

func (in *ConnectionPodStatus) DeepCopyInto(out *ConnectionPodStatus)

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

func (*ConnectionPodStatus) DeepCopyObject

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

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

type ConnectionPodStatusList

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

+kubebuilder:object:root=true ConnectionPodStatusList contains a list of ConnectionPodStatus

func (*ConnectionPodStatusList) DeepCopy

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

func (*ConnectionPodStatusList) DeepCopyInto

func (in *ConnectionPodStatusList) DeepCopyInto(out *ConnectionPodStatusList)

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

func (*ConnectionPodStatusList) DeepCopyObject

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

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

type ConnectionPodStatusStatus

type ConnectionPodStatusStatus struct {
	// ID is the unique identifier for the pod that wrote the status
	ID                 string    `json:"id,omitempty"`
	ConnectionUID      types.UID `json:"connectionUID,omitempty"`
	Operations         []string  `json:"operations,omitempty"`
	ObservedGeneration int64     `json:"observedGeneration,omitempty"`
	// Indicator for alive connection with at least one successful publish
	Active bool               `json:"active,omitempty"`
	Errors []*ConnectionError `json:"errors,omitempty"`
}

ConnectionPodStatusStatus defines the observed state of ConnectionPodStatus

func (*ConnectionPodStatusStatus) DeepCopy

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

func (*ConnectionPodStatusStatus) DeepCopyInto

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