Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=app.dac.nokia.com
Index ¶
- Variables
- func CreateAppInstance() common_types.OperatorCr
- type AppReportedData
- type Consul
- func (in *Consul) DeepCopy() *Consul
- func (in *Consul) DeepCopyInto(out *Consul)
- func (in *Consul) DeepCopyObject() runtime.Object
- func (in *Consul) GetObjectMeta() metav1.ObjectMeta
- func (in *Consul) GetSpec() common_types.OperatorSpec
- func (in *Consul) GetStatus() common_types.OperatorStatus
- func (in *Consul) GetTypeMeta() metav1.TypeMeta
- type ConsulList
- type ConsulSpec
- type ConsulStatus
- func (in *ConsulStatus) DeepCopy() *ConsulStatus
- func (in *ConsulStatus) DeepCopyInto(out *ConsulStatus)
- func (in *ConsulStatus) GetAppReportedData() common_types.AppReportedData
- func (in *ConsulStatus) GetAppStatus() common_types.AppStatus
- func (in *ConsulStatus) GetAppliedResources() []k8sdynamic.ResourceDescriptor
- func (in *ConsulStatus) GetPrevSpec() common_types.OperatorSpec
- func (in *ConsulStatus) GetPrevSpecDeepCopy() common_types.OperatorSpec
- func (in *ConsulStatus) SetAppStatus(status common_types.AppStatus)
- func (in *ConsulStatus) SetAppliedResources(resources []k8sdynamic.ResourceDescriptor)
- func (in *ConsulStatus) SetPrevSpec(spec common_types.OperatorSpec) error
- type Ports
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "app.dac.nokia.com", 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 CreateAppInstance ¶
func CreateAppInstance() common_types.OperatorCr
Types ¶
type AppReportedData ¶
type AppReportedData struct { //Ip addresses of the services that received IP address from the private network PrivateNetworkIpAddress map[string]string `json:"privateNetworkIpAddresses,omitempty"` }
func (*AppReportedData) DeepCopy ¶
func (in *AppReportedData) DeepCopy() *AppReportedData
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppReportedData.
func (*AppReportedData) DeepCopyInto ¶
func (in *AppReportedData) DeepCopyInto(out *AppReportedData)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AppReportedData) SetPrivateNetworkIpAddress ¶
func (in *AppReportedData) SetPrivateNetworkIpAddress(privateNetworkIpAddress map[string]string)
type Consul ¶
type Consul struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ConsulSpec `json:"spec,omitempty"` Status ConsulStatus `json:"status,omitempty"` }
Consul is the Schema for the consuls API +kubebuilder:subresource:status +kubebuilder:resource:path=consuls,scope=Namespaced +k8s:openapi-gen=true
func (*Consul) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Consul.
func (*Consul) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Consul) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Consul) GetObjectMeta ¶
func (in *Consul) GetObjectMeta() metav1.ObjectMeta
func (*Consul) GetSpec ¶
func (in *Consul) GetSpec() common_types.OperatorSpec
func (*Consul) GetStatus ¶
func (in *Consul) GetStatus() common_types.OperatorStatus
func (*Consul) GetTypeMeta ¶
type ConsulList ¶
type ConsulList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Consul `json:"items"` }
ConsulList contains a list of Consul
func (*ConsulList) DeepCopy ¶
func (in *ConsulList) DeepCopy() *ConsulList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsulList.
func (*ConsulList) DeepCopyInto ¶
func (in *ConsulList) DeepCopyInto(out *ConsulList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConsulList) DeepCopyObject ¶
func (in *ConsulList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConsulSpec ¶
type ConsulSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "make generate" to regenerate code after modifying this file // Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html ReplicaCount int `json:"replicaCount"` Ports Ports `json:"ports"` PrivateNetworkAccess *common_types.PrivateNetworkAccess `json:"privateNetworkAccess,omitempty"` }
ConsulSpec defines the desired state of Consul
func (*ConsulSpec) DeepCopy ¶
func (in *ConsulSpec) DeepCopy() *ConsulSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsulSpec.
func (*ConsulSpec) DeepCopyInto ¶
func (in *ConsulSpec) DeepCopyInto(out *ConsulSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConsulSpec) GetPrivateNetworkAccess ¶
func (in *ConsulSpec) GetPrivateNetworkAccess() *common_types.PrivateNetworkAccess
type ConsulStatus ¶
type ConsulStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make generate" to regenerate code after modifying this file // Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html PrevSpec *ConsulSpec `json:"prevSpec,omitempty"` AppStatus common_types.AppStatus `json:"appStatus,omitempty"` AppReportedData AppReportedData `json:"appReportedData,omitempty"` AppliedResources []k8sdynamic.ResourceDescriptor `json:"appliedResources,omitempty"` }
ConsulStatus defines the observed state of Consul
func (*ConsulStatus) DeepCopy ¶
func (in *ConsulStatus) DeepCopy() *ConsulStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsulStatus.
func (*ConsulStatus) DeepCopyInto ¶
func (in *ConsulStatus) DeepCopyInto(out *ConsulStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConsulStatus) GetAppReportedData ¶
func (in *ConsulStatus) GetAppReportedData() common_types.AppReportedData
func (*ConsulStatus) GetAppStatus ¶
func (in *ConsulStatus) GetAppStatus() common_types.AppStatus
func (*ConsulStatus) GetAppliedResources ¶
func (in *ConsulStatus) GetAppliedResources() []k8sdynamic.ResourceDescriptor
func (*ConsulStatus) GetPrevSpec ¶
func (in *ConsulStatus) GetPrevSpec() common_types.OperatorSpec
func (*ConsulStatus) GetPrevSpecDeepCopy ¶
func (in *ConsulStatus) GetPrevSpecDeepCopy() common_types.OperatorSpec
func (*ConsulStatus) SetAppStatus ¶
func (in *ConsulStatus) SetAppStatus(status common_types.AppStatus)
func (*ConsulStatus) SetAppliedResources ¶
func (in *ConsulStatus) SetAppliedResources(resources []k8sdynamic.ResourceDescriptor)
func (*ConsulStatus) SetPrevSpec ¶
func (in *ConsulStatus) SetPrevSpec(spec common_types.OperatorSpec) error
type Ports ¶
type Ports struct { UiPort int `json:"uiPort,omitempty"` AltPort int `json:"altPort,omitempty"` UdpPort int `json:"udpPort,omitempty"` HttpPort int `json:"httpPort,omitempty"` HttpsPort int `json:"httpsPort,omitempty"` Serflan int `json:"serflan,omitempty"` Serfwan int `json:"serfwan,omitempty"` ConsulDns int `json:"consulDns,omitempty"` Server int `json:"server,omitempty"` }
func (*Ports) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ports.
func (*Ports) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.