Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the status v1alpha1 API group +kubebuilder:object:generate=true +groupName=status.gatekeeper.sh
Index ¶
Constants ¶
const ( UpsertConnectionError connectionErrorType = "UpsertConnection" PublishError connectionErrorType = "Publish" )
Variables ¶
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 ¶
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 ¶
func (in *ConnectionPodStatusList) DeepCopy() *ConnectionPodStatusList
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 ¶
func (in *ConnectionPodStatusStatus) DeepCopy() *ConnectionPodStatusStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionPodStatusStatus.
func (*ConnectionPodStatusStatus) DeepCopyInto ¶
func (in *ConnectionPodStatusStatus) DeepCopyInto(out *ConnectionPodStatusStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.