Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the osrm v1alpha1 API group +kubebuilder:object:generate=true +groupName=osrm.itayankri
Index ¶
- Constants
- Variables
- type MapBuilderSpec
- type OSRMCluster
- type OSRMClusterList
- type OSRMClusterSpec
- type OSRMClusterStatus
- type PersistenceSpec
- type Phase
- type ProfileSpec
- func (in *ProfileSpec) DeepCopy() *ProfileSpec
- func (in *ProfileSpec) DeepCopyInto(out *ProfileSpec)
- func (spec *ProfileSpec) GetInternalEndpoint() string
- func (spec *ProfileSpec) GetMinAvailable() *intstr.IntOrString
- func (spec *ProfileSpec) GetProfile() string
- func (spec *ProfileSpec) GetResources() *corev1.ResourceRequirements
- func (spec *ProfileSpec) GetSpeedUpdatesImage() string
- type ProfilesSpec
- type ServiceSpec
- type SpeedUpdatesSpec
Constants ¶
const OperatorPausedAnnotation = "osrm.itayankri/operator.paused"
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "osrm.itayankri", 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 MapBuilderSpec ¶ added in v1.4.0
type MapBuilderSpec struct { Image *string `json:"image,omitempty"` ExtractOptions *string `json:"extractOptions,omitempty"` PartitionOptions *string `json:"partitionOptions,omitempty"` CustomizeOptions *string `json:"customizeOptions,omitempty"` Resources *corev1.ResourceRequirements `json:"resources,omitempty"` }
func (*MapBuilderSpec) DeepCopy ¶ added in v1.5.0
func (in *MapBuilderSpec) DeepCopy() *MapBuilderSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MapBuilderSpec.
func (*MapBuilderSpec) DeepCopyInto ¶ added in v1.5.0
func (in *MapBuilderSpec) DeepCopyInto(out *MapBuilderSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MapBuilderSpec) GetImage ¶ added in v1.4.0
func (spec *MapBuilderSpec) GetImage() string
func (*MapBuilderSpec) GetResources ¶ added in v1.4.0
func (spec *MapBuilderSpec) GetResources() *corev1.ResourceRequirements
type OSRMCluster ¶
type OSRMCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec OSRMClusterSpec `json:"spec,omitempty"` Status OSRMClusterStatus `json:"status,omitempty"` }
OSRMCluster is the Schema for the osrmclusters API
func (*OSRMCluster) ChildResourceName ¶
func (cluster *OSRMCluster) ChildResourceName(service string, suffix string) string
func (*OSRMCluster) DeepCopy ¶
func (in *OSRMCluster) DeepCopy() *OSRMCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OSRMCluster.
func (*OSRMCluster) DeepCopyInto ¶
func (in *OSRMCluster) DeepCopyInto(out *OSRMCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OSRMCluster) DeepCopyObject ¶
func (in *OSRMCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type OSRMClusterList ¶
type OSRMClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []OSRMCluster `json:"items"` }
OSRMClusterList contains a list of OSRMCluster
func (*OSRMClusterList) DeepCopy ¶
func (in *OSRMClusterList) DeepCopy() *OSRMClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OSRMClusterList.
func (*OSRMClusterList) DeepCopyInto ¶
func (in *OSRMClusterList) DeepCopyInto(out *OSRMClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OSRMClusterList) DeepCopyObject ¶
func (in *OSRMClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type OSRMClusterSpec ¶
type OSRMClusterSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "make" to regenerate code after modifying this file PBFURL string `json:"pbfUrl,omitempty"` Profiles ProfilesSpec `json:"profiles,omitempty"` Service ServiceSpec `json:"service,omitempty"` Image *string `json:"image,omitempty"` Persistence PersistenceSpec `json:"persistence,omitempty"` MapBuilder MapBuilderSpec `json:"mapBuilder,omitempty"` }
OSRMClusterSpec defines the desired state of OSRMCluster
func (*OSRMClusterSpec) DeepCopy ¶
func (in *OSRMClusterSpec) DeepCopy() *OSRMClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OSRMClusterSpec.
func (*OSRMClusterSpec) DeepCopyInto ¶
func (in *OSRMClusterSpec) DeepCopyInto(out *OSRMClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OSRMClusterSpec) GetImage ¶
func (spec *OSRMClusterSpec) GetImage() string
func (*OSRMClusterSpec) GetOsrmFileName ¶
func (spec *OSRMClusterSpec) GetOsrmFileName() string
func (*OSRMClusterSpec) GetPbfFileName ¶
func (spec *OSRMClusterSpec) GetPbfFileName() string
type OSRMClusterStatus ¶
type OSRMClusterStatus struct { // Paused is true when the operator notices paused annotation. Paused bool `json:"paused,omitempty"` // ObservedGeneration is the latest generation observed by the operator. ObservedGeneration int64 `json:"observedGeneration,omitempty"` Phase Phase `json:"phase,omitempty"` Conditions []metav1.Condition `json:"conditions,omitempty"` }
OSRMClusterStatus defines the observed state of OSRMCluster
func (*OSRMClusterStatus) DeepCopy ¶
func (in *OSRMClusterStatus) DeepCopy() *OSRMClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OSRMClusterStatus.
func (*OSRMClusterStatus) DeepCopyInto ¶
func (in *OSRMClusterStatus) DeepCopyInto(out *OSRMClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OSRMClusterStatus) SetCondition ¶
func (status *OSRMClusterStatus) SetCondition(condition metav1.Condition)
func (*OSRMClusterStatus) SetConditions ¶
func (osrmClusterStatus *OSRMClusterStatus) SetConditions(resources []runtime.Object)
type PersistenceSpec ¶
type PersistenceSpec struct { StorageClassName string `json:"storageClassName,omitempty"` Storage *resource.Quantity `json:"storage,omitempty"` AccessMode *corev1.PersistentVolumeAccessMode `json:"accessMode,omitempty"` }
func (*PersistenceSpec) DeepCopy ¶
func (in *PersistenceSpec) DeepCopy() *PersistenceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistenceSpec.
func (*PersistenceSpec) DeepCopyInto ¶
func (in *PersistenceSpec) DeepCopyInto(out *PersistenceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PersistenceSpec) GetAccessMode ¶ added in v1.1.0
func (spec *PersistenceSpec) GetAccessMode() corev1.PersistentVolumeAccessMode
type Phase ¶
type Phase string
Phase is the current phase of the deployment
const ( // PhaseBuildingMap signals that the map building phase is in progress PhaseBuildingMap Phase = "BuildingMap" // PhaseDeployingWorkers signals that the workers are being deployed PhaseDeployingWorkers Phase = "DeployingWorkers" // PhaseWorkersDeployed signals that the resources are successfully deployed PhaseWorkersDeployed Phase = "WorkersDeployed" // PhaseDeleting signals that the resources are being removed PhaseDeleting Phase = "Deleting" // PhaseDeleted signals that the resources are deleted PhaseDeleted Phase = "Deleted" // PhaseError signals that the deployment is in an error state PhaseError Phase = "Error" // PhaseEmpty is an uninitialized phase PhaseEmpty Phase = "" )
type ProfileSpec ¶
type ProfileSpec struct { Name string `json:"name,omitempty"` EndpointName string `json:"endpointName,omitempty"` Replicas *int32 `json:"replicas,omitempty"` InternalEndpoint *string `json:"internalEndpoint,omitempty"` OSRMProfile *string `json:"osrmProfile,omitempty"` MinReplicas *int32 `json:"minReplicas,omitempty"` MaxReplicas *int32 `json:"maxReplicas,omitempty"` Resources *corev1.ResourceRequirements `json:"resources,omitempty"` SpeedUpdates *SpeedUpdatesSpec `json:"speedUpdates,omitempty"` }
func (*ProfileSpec) DeepCopy ¶
func (in *ProfileSpec) DeepCopy() *ProfileSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfileSpec.
func (*ProfileSpec) DeepCopyInto ¶
func (in *ProfileSpec) DeepCopyInto(out *ProfileSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProfileSpec) GetInternalEndpoint ¶ added in v1.4.1
func (spec *ProfileSpec) GetInternalEndpoint() string
func (*ProfileSpec) GetMinAvailable ¶
func (spec *ProfileSpec) GetMinAvailable() *intstr.IntOrString
func (*ProfileSpec) GetProfile ¶ added in v1.4.0
func (spec *ProfileSpec) GetProfile() string
func (*ProfileSpec) GetResources ¶
func (spec *ProfileSpec) GetResources() *corev1.ResourceRequirements
func (*ProfileSpec) GetSpeedUpdatesImage ¶
func (spec *ProfileSpec) GetSpeedUpdatesImage() string
type ProfilesSpec ¶
type ProfilesSpec []*ProfileSpec
func (ProfilesSpec) DeepCopy ¶
func (in ProfilesSpec) DeepCopy() ProfilesSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfilesSpec.
func (ProfilesSpec) DeepCopyInto ¶
func (in ProfilesSpec) DeepCopyInto(out *ProfilesSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceSpec ¶
type ServiceSpec struct { Type *corev1.ServiceType `json:"type,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` ExposingServices []string `json:"exposingServices,omitempty"` LoadBalancerIP *string `json:"loadBalancerIP,omitempty"` }
func (*ServiceSpec) DeepCopy ¶
func (in *ServiceSpec) DeepCopy() *ServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceSpec.
func (*ServiceSpec) DeepCopyInto ¶
func (in *ServiceSpec) DeepCopyInto(out *ServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceSpec) GetType ¶
func (spec *ServiceSpec) GetType() corev1.ServiceType
type SpeedUpdatesSpec ¶
type SpeedUpdatesSpec struct { Suspend *bool `json:"suspend,omitempty"` URL string `json:"url,omitempty"` Schedule string `json:"schedule,omitempty"` Image *string `json:"image,omitempty"` Resources *corev1.ResourceRequirements `json:"resources,omitempty"` Env []corev1.EnvVar `json:"env,omitempty"` }
func (*SpeedUpdatesSpec) DeepCopy ¶
func (in *SpeedUpdatesSpec) DeepCopy() *SpeedUpdatesSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpeedUpdatesSpec.
func (*SpeedUpdatesSpec) DeepCopyInto ¶
func (in *SpeedUpdatesSpec) DeepCopyInto(out *SpeedUpdatesSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SpeedUpdatesSpec) GetEnv ¶ added in v1.4.0
func (spec *SpeedUpdatesSpec) GetEnv() []corev1.EnvVar
func (*SpeedUpdatesSpec) GetResources ¶ added in v1.2.0
func (spec *SpeedUpdatesSpec) GetResources() *corev1.ResourceRequirements