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
- type ConditionReason
- type ConditionType
- type DockerRegistry
- type Served
- type Serverless
- func (in *Serverless) DeepCopy() *Serverless
- func (in *Serverless) DeepCopyInto(out *Serverless)
- func (in *Serverless) DeepCopyObject() runtime.Object
- func (s *Serverless) IsCondition(conditionType ConditionType) bool
- func (s *Serverless) IsConditionTrue(conditionType ConditionType) bool
- func (s *Serverless) IsInState(state State) bool
- func (s *Serverless) IsServedEmpty() bool
- func (s *Serverless) UpdateConditionFalse(c ConditionType, r ConditionReason, err error)
- func (s *Serverless) UpdateConditionTrue(c ConditionType, r ConditionReason, msg string)
- func (s *Serverless) UpdateConditionUnknown(c ConditionType, r ConditionReason, msg string)
- type ServerlessList
- type ServerlessSpec
- type ServerlessStatus
- type State
Constants ¶
const ( DefaultEnableInternal = false DefaultRegistryAddress = "k3d-kyma-registry:5000" DefaultServerAddress = "k3d-kyma-registry:5000" DefaultPublisherProxyURL = "http://eventing-publisher-proxy.kyma-system.svc.cluster.local/publish" DefaultTraceCollectorURL = "http://telemetry-otlp-traces.kyma-system.svc.cluster.local:4318/v1/traces" )
const ( StateReady State = "Ready" StateProcessing State = "Processing" StateError State = "Error" StateDeleting State = "Deleting" ServedTrue Served = "True" ServedFalse Served = "False" // installation and deletion details ConditionTypeInstalled = ConditionType("Installed") // prerequisites and soft dependencies ConditionTypeConfigured = ConditionType("Configured") // deletion ConditionTypeDeleted = ConditionType("Deleted") ConditionReasonConfigurationCheck = ConditionReason("ConfigurationCheck") ConditionReasonConfigurationErr = ConditionReason("ConfigurationCheckErr") ConditionReasonConfigured = ConditionReason("Configured") ConditionReasonInstallation = ConditionReason("Installation") ConditionReasonInstallationErr = ConditionReason("InstallationErr") ConditionReasonInstalled = ConditionReason("Installed") ConditionReasonServerlessDuplicated = ConditionReason("ServerlessDuplicated") ConditionReasonDeletion = ConditionReason("Deletion") ConditionReasonDeletionErr = ConditionReason("DeletionErr") ConditionReasonDeleted = ConditionReason("Deleted") Finalizer = "serverless-manager.kyma-project.io/deletion-hook" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "operator.kyma-project.io", 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 ConditionReason ¶ added in v0.0.3
type ConditionReason string
type ConditionType ¶ added in v0.0.3
type ConditionType string
type DockerRegistry ¶
type DockerRegistry struct { EnableInternal *bool `json:"enableInternal,omitempty"` InternalServerAddress *string `json:"internalServerAddress,omitempty"` SecretName *string `json:"secretName,omitempty"` Gateway *string `json:"gateway,omitempty"` GatewayCert *string `json:"gatewayCert,omitempty"` }
func (*DockerRegistry) DeepCopy ¶
func (in *DockerRegistry) DeepCopy() *DockerRegistry
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DockerRegistry.
func (*DockerRegistry) DeepCopyInto ¶
func (in *DockerRegistry) DeepCopyInto(out *DockerRegistry)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DockerRegistry) IsInternalEnabled ¶
func (dr *DockerRegistry) IsInternalEnabled() bool
type Serverless ¶
type Serverless struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ServerlessSpec `json:"spec,omitempty"` Status ServerlessStatus `json:"status,omitempty"` }
Serverless is the Schema for the serverlesses API
func (*Serverless) DeepCopy ¶
func (in *Serverless) DeepCopy() *Serverless
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Serverless.
func (*Serverless) DeepCopyInto ¶
func (in *Serverless) DeepCopyInto(out *Serverless)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Serverless) DeepCopyObject ¶
func (in *Serverless) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Serverless) IsCondition ¶ added in v0.0.3
func (s *Serverless) IsCondition(conditionType ConditionType) bool
func (*Serverless) IsConditionTrue ¶ added in v0.0.3
func (s *Serverless) IsConditionTrue(conditionType ConditionType) bool
func (*Serverless) IsInState ¶ added in v0.0.3
func (s *Serverless) IsInState(state State) bool
func (*Serverless) IsServedEmpty ¶ added in v0.0.3
func (s *Serverless) IsServedEmpty() bool
func (*Serverless) UpdateConditionFalse ¶ added in v0.0.3
func (s *Serverless) UpdateConditionFalse(c ConditionType, r ConditionReason, err error)
func (*Serverless) UpdateConditionTrue ¶ added in v0.0.3
func (s *Serverless) UpdateConditionTrue(c ConditionType, r ConditionReason, msg string)
func (*Serverless) UpdateConditionUnknown ¶ added in v0.0.3
func (s *Serverless) UpdateConditionUnknown(c ConditionType, r ConditionReason, msg string)
type ServerlessList ¶
type ServerlessList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Serverless `json:"items"` }
ServerlessList contains a list of Serverless
func (*ServerlessList) DeepCopy ¶
func (in *ServerlessList) DeepCopy() *ServerlessList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerlessList.
func (*ServerlessList) DeepCopyInto ¶
func (in *ServerlessList) DeepCopyInto(out *ServerlessList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServerlessList) DeepCopyObject ¶
func (in *ServerlessList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServerlessSpec ¶
type ServerlessSpec struct { EventPublisherProxyURL *string `json:"eventPublisherProxyURL,omitempty"` TraceCollectorURL *string `json:"traceCollectorURL,omitempty"` DockerRegistry *DockerRegistry `json:"dockerRegistry,omitempty"` }
ServerlessSpec defines the desired state of Serverless
func (*ServerlessSpec) DeepCopy ¶
func (in *ServerlessSpec) DeepCopy() *ServerlessSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerlessSpec.
func (*ServerlessSpec) DeepCopyInto ¶
func (in *ServerlessSpec) DeepCopyInto(out *ServerlessSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServerlessSpec) Default ¶
func (s *ServerlessSpec) Default()
type ServerlessStatus ¶
type ServerlessStatus struct { // Used the Publisher Proxy and the Trace Collector URLs. EventPublisherProxyURL string `json:"eventPublisherProxyURL,omitempty"` TraceCollectorURL string `json:"traceCollectorURL,omitempty"` // State signifies current state of Serverless. // Value can be one of ("Ready", "Processing", "Error", "Deleting"). // +kubebuilder:validation:Required // +kubebuilder:validation:Enum=Processing;Deleting;Ready;Error State State `json:"state,omitempty"` // Served signifies that current Serverless is managed. // Value can be one of ("True", "False"). // +kubebuilder:validation:Enum=True;False Served Served `json:"served"` // Conditions associated with CustomStatus. Conditions []metav1.Condition `json:"conditions,omitempty"` }
func (*ServerlessStatus) DeepCopy ¶
func (in *ServerlessStatus) DeepCopy() *ServerlessStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerlessStatus.
func (*ServerlessStatus) DeepCopyInto ¶
func (in *ServerlessStatus) DeepCopyInto(out *ServerlessStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.