v1alpha1

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the mesh-manager v1alpha1 API group +kubebuilder:object:generate=true +groupName=mesh-manager.nadundesilva.github.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "mesh-manager.nadundesilva.github.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 Microservice

type Microservice struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   MicroserviceSpec   `json:"spec,omitempty"`
	Status MicroserviceStatus `json:"status,omitempty"`
}

Microservice is the Schema for the microservices API

func (*Microservice) DeepCopy

func (in *Microservice) DeepCopy() *Microservice

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Microservice.

func (*Microservice) DeepCopyInto

func (in *Microservice) DeepCopyInto(out *Microservice)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Microservice) DeepCopyObject

func (in *Microservice) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Microservice) Default added in v0.2.0

func (r *Microservice) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Microservice) SetupWebhookWithManager added in v0.2.0

func (r *Microservice) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Microservice) ValidateCreate added in v0.2.0

func (r *Microservice) ValidateCreate() (warnings admission.Warnings, err error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Microservice) ValidateDelete added in v0.2.0

func (r *Microservice) ValidateDelete() (warnings admission.Warnings, err error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Microservice) ValidateUpdate added in v0.2.0

func (r *Microservice) ValidateUpdate(old runtime.Object) (warnings admission.Warnings, err error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type MicroserviceList

type MicroserviceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Microservice `json:"items"`
}

MicroserviceList contains a list of Microservice

func (*MicroserviceList) DeepCopy

func (in *MicroserviceList) DeepCopy() *MicroserviceList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroserviceList.

func (*MicroserviceList) DeepCopyInto

func (in *MicroserviceList) DeepCopyInto(out *MicroserviceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MicroserviceList) DeepCopyObject

func (in *MicroserviceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MicroserviceRef

type MicroserviceRef struct {
	// Namespace is the namespace in which the microservice resides in
	Namespace string `json:"namespace,omitempty"`

	// Name is the name of the microservice
	Name string `json:"name"`
}

MicroserviceRef defines a reference to an microservice

func (*MicroserviceRef) DeepCopy

func (in *MicroserviceRef) DeepCopy() *MicroserviceRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroserviceRef.

func (*MicroserviceRef) DeepCopyInto

func (in *MicroserviceRef) DeepCopyInto(out *MicroserviceRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MicroserviceSpec

type MicroserviceSpec struct {
	// Replicas specifies the replicas count of the deployment
	Replicas *int32 `json:"replicas,omitempty"`

	// PodSpec describes the pods that will be created
	PodSpec corev1.PodSpec `json:"podSpec"`

	// Dependencies defines the list of microservices this microservice depends on
	Dependencies []MicroserviceRef `json:"dependencies,omitempty"`

	// AllowedIngressPeers defines the list of network peers from which ingress traffic is allowed.
	// These ingress peers should be only used for traffic originating from non Microservice
	// workloads. This is useful for allowing traffic from ingress controllers and legacy workloads.
	AllowedIngressPeers []networkingv1.NetworkPolicyPeer `json:"allowedIngressPeers,omitempty"`
}

MicroserviceSpec defines the desired state of Microservice

func (*MicroserviceSpec) DeepCopy

func (in *MicroserviceSpec) DeepCopy() *MicroserviceSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroserviceSpec.

func (*MicroserviceSpec) DeepCopyInto

func (in *MicroserviceSpec) DeepCopyInto(out *MicroserviceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MicroserviceStatus

type MicroserviceStatus struct {
	// Replicas describes the current actual replica count
	Replicas int32 `json:"replicas"`

	// Selector describes the string form of the selector
	Selector string `json:"selector"`

	// MissingDependencies describes the number of dependencies that are not there in the cluster
	MissingDependencies *[]MicroserviceRef `json:"missingDependencies,omitempty"`

	// Dependents defines the list of microservices which depends on this
	Dependents []MicroserviceRef `json:"dependents,omitempty"`
}

MicroserviceStatus defines the observed state of Microservice

func (*MicroserviceStatus) DeepCopy

func (in *MicroserviceStatus) DeepCopy() *MicroserviceStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroserviceStatus.

func (*MicroserviceStatus) DeepCopyInto

func (in *MicroserviceStatus) DeepCopyInto(out *MicroserviceStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL