Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the operator v1alpha1 API group +kubebuilder:object:generate=true +groupName=operator.kyma-project.io
Index ¶
- Constants
- Variables
- func ConditionEquals(existing, expected kmetav1.Condition) bool
- func ConditionsEqual(existing, expected []kmetav1.Condition) bool
- func IsEventingAuthStatusEqual(oldStatus, newStatus EventingAuthStatus) bool
- func MakeApplicationReadyCondition(eventingAuth *EventingAuth, err error) []kmetav1.Condition
- func MakeSecretReadyCondition(eventingAuth *EventingAuth, err error) []kmetav1.Condition
- type AuthSecret
- type ConditionReason
- type ConditionType
- type EventingAuth
- type EventingAuthList
- type EventingAuthSpec
- type EventingAuthStatus
- type IASApplication
- type State
Constants ¶
const ( ConditionReasonApplicationCreated string = "IASApplicationCreated" ConditionReasonSecretCreated string = "SecretCreated" ConditionReasonApplicationCreationFailed string = "IASApplicationCreationFailed" ConditionReasonSecretCreationFailed string = "SecretCreationFailed" )
const ( ConditionMessageApplicationCreated string = "IAS application is successfully created." ConditionMessageSecretCreated string = "Eventing webhook authentication secret is successfully created." )
Variables ¶
var ( // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = schemeBuilder.AddToScheme //nolint:gochecknoglobals // Used outside the package. )
Functions ¶
func ConditionEquals ¶
ConditionEquals checks if two conditions are equal.
func ConditionsEqual ¶
ConditionsEqual checks if two list of conditions are equal.
func IsEventingAuthStatusEqual ¶
func IsEventingAuthStatusEqual(oldStatus, newStatus EventingAuthStatus) bool
func MakeApplicationReadyCondition ¶
func MakeApplicationReadyCondition(eventingAuth *EventingAuth, err error) []kmetav1.Condition
MakeApplicationReadyCondition updates the ConditionApplicationActive condition based on the given error value.
func MakeSecretReadyCondition ¶
func MakeSecretReadyCondition(eventingAuth *EventingAuth, err error) []kmetav1.Condition
MakeSecretReadyCondition updates the ConditionSecretReady condition based on the given error value.
Types ¶
type AuthSecret ¶
type AuthSecret struct { // NamespacedName of the secret on the managed runtime cluster NamespacedName string `json:"namespacedName"` // Runtime ID of the cluster where the secret is created ClusterID string `json:"clusterId"` }
func (*AuthSecret) DeepCopy ¶
func (in *AuthSecret) DeepCopy() *AuthSecret
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthSecret.
func (*AuthSecret) DeepCopyInto ¶
func (in *AuthSecret) DeepCopyInto(out *AuthSecret)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConditionReason ¶
type ConditionReason string
type ConditionType ¶
type ConditionType string
const ( ConditionApplicationReady ConditionType = "IASApplicationReady" ConditionSecretReady ConditionType = "SecretReady" )
type EventingAuth ¶
type EventingAuth struct { kmetav1.TypeMeta `json:",inline"` kmetav1.ObjectMeta `json:"metadata,omitempty"` Spec EventingAuthSpec `json:"spec,omitempty"` Status EventingAuthStatus `json:"status,omitempty"` }
EventingAuth is the Schema for the eventingauths API.
func (*EventingAuth) DeepCopy ¶
func (in *EventingAuth) DeepCopy() *EventingAuth
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventingAuth.
func (*EventingAuth) DeepCopyInto ¶
func (in *EventingAuth) DeepCopyInto(out *EventingAuth)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EventingAuth) DeepCopyObject ¶
func (in *EventingAuth) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EventingAuthList ¶
type EventingAuthList struct { kmetav1.TypeMeta `json:",inline"` kmetav1.ListMeta `json:"metadata,omitempty"` Items []EventingAuth `json:"items"` }
EventingAuthList contains a list of EventingAuth.
func (*EventingAuthList) DeepCopy ¶
func (in *EventingAuthList) DeepCopy() *EventingAuthList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventingAuthList.
func (*EventingAuthList) DeepCopyInto ¶
func (in *EventingAuthList) DeepCopyInto(out *EventingAuthList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EventingAuthList) DeepCopyObject ¶
func (in *EventingAuthList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EventingAuthSpec ¶
type EventingAuthSpec struct { }
EventingAuthSpec defines the desired state of EventingAuth.
func (*EventingAuthSpec) DeepCopy ¶
func (in *EventingAuthSpec) DeepCopy() *EventingAuthSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventingAuthSpec.
func (*EventingAuthSpec) DeepCopyInto ¶
func (in *EventingAuthSpec) DeepCopyInto(out *EventingAuthSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EventingAuthStatus ¶
type EventingAuthStatus struct { // State signifies current state of CustomObject. Value // can be one of ("Ready", "NotReady"). // +kubebuilder:validation:Required // +kubebuilder:validation:Enum=Ready;NotReady State State `json:"state,omitempty"` // Application contains information about a created IAS application Application *IASApplication `json:"iasApplication,omitempty"` // AuthSecret contains information about created K8s secret AuthSecret *AuthSecret `json:"secret,omitempty"` // Conditions associated with EventingAuthStatus. Conditions []kmetav1.Condition `json:"conditions,omitempty"` }
EventingAuthStatus defines the observed state of EventingAuth.
func UpdateConditionAndState ¶
func UpdateConditionAndState(eventingAuth *EventingAuth, conditionType ConditionType, err error) (EventingAuthStatus, error)
func (*EventingAuthStatus) DeepCopy ¶
func (in *EventingAuthStatus) DeepCopy() *EventingAuthStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventingAuthStatus.
func (*EventingAuthStatus) DeepCopyInto ¶
func (in *EventingAuthStatus) DeepCopyInto(out *EventingAuthStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IASApplication ¶
type IASApplication struct { // Name of the application in IAS Name string `json:"name"` // Application ID in IAS UUID string `json:"uuid"` }
func (*IASApplication) DeepCopy ¶
func (in *IASApplication) DeepCopy() *IASApplication
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IASApplication.
func (*IASApplication) DeepCopyInto ¶
func (in *IASApplication) DeepCopyInto(out *IASApplication)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.