v1

package
v0.0.0-...-e83835c Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the replicate v1 API group +kubebuilder:object:generate=true +groupName=replicate.jnytnai0613.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: "replicate.jnytnai0613.github.io", Version: "v1"}

	// 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 ClusterDetector

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

	Spec   ClusterDetectorSpec   `json:"spec,omitempty"`
	Status ClusterDetectorStatus `json:"status,omitempty"`
}

ClusterDetector is the Schema for the clusterdetectors API

func (*ClusterDetector) DeepCopy

func (in *ClusterDetector) DeepCopy() *ClusterDetector

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

func (*ClusterDetector) DeepCopyInto

func (in *ClusterDetector) DeepCopyInto(out *ClusterDetector)

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

func (*ClusterDetector) DeepCopyObject

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

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

type ClusterDetectorList

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

ClusterDetectorList contains a list of ClusterDetector

func (*ClusterDetectorList) DeepCopy

func (in *ClusterDetectorList) DeepCopy() *ClusterDetectorList

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

func (*ClusterDetectorList) DeepCopyInto

func (in *ClusterDetectorList) DeepCopyInto(out *ClusterDetectorList)

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

func (*ClusterDetectorList) DeepCopyObject

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

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

type ClusterDetectorSpec

type ClusterDetectorSpec struct {
	// The kubeconfig file context,cluster,user
	Context string `json:"context,omitempty"`
	Cluster string `json:"cluster,omitempty"`
	User    string `json:"user,omitempty"`
}

ClusterDetectorSpec defines the desired state of ClusterDetector

func (*ClusterDetectorSpec) DeepCopy

func (in *ClusterDetectorSpec) DeepCopy() *ClusterDetectorSpec

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

func (*ClusterDetectorSpec) DeepCopyInto

func (in *ClusterDetectorSpec) DeepCopyInto(out *ClusterDetectorSpec)

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

type ClusterDetectorStatus

type ClusterDetectorStatus struct {
	// If communication to the remote Kubernetes cluster is possible,
	// Running is set; if not, Unknown is set.
	ClusterStatus string `json:"clusterstatus,omitempty"`

	// An error message is output when communication with a remote Kubernetes cluster is not possible.
	// Output only when the wide option of the Kubectl get command is given.
	Reason string `json:"reason,omitempty"`
}

ClusterDetectorStatus defines the observed state of ClusterDetector

func (*ClusterDetectorStatus) DeepCopy

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

func (*ClusterDetectorStatus) DeepCopyInto

func (in *ClusterDetectorStatus) DeepCopyInto(out *ClusterDetectorStatus)

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

type DeploymentSpecApplyConfiguration

type DeploymentSpecApplyConfiguration appsv1apply.DeploymentSpecApplyConfiguration

func (*DeploymentSpecApplyConfiguration) DeepCopy

func (*DeploymentSpecApplyConfiguration) DeepCopyInto

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

type IngressSpecApplyConfiguration

type IngressSpecApplyConfiguration networkv1apply.IngressSpecApplyConfiguration

func (*IngressSpecApplyConfiguration) DeepCopy

func (*IngressSpecApplyConfiguration) DeepCopyInto

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

type PerResourceApplyStatus

type PerResourceApplyStatus struct {
	Cluster     string `json:"cluster"`
	Kind        string `json:"kind"`
	Name        string `json:"name"`
	ApplyStatus string `json:"applyStatus"`
}

func (*PerResourceApplyStatus) DeepCopy

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

func (*PerResourceApplyStatus) DeepCopyInto

func (in *PerResourceApplyStatus) DeepCopyInto(out *PerResourceApplyStatus)

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

type Replicator

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

	Spec   ReplicatorSpec   `json:"spec,omitempty"`
	Status ReplicatorStatus `json:"status,omitempty"`
}

Replicator is the Schema for the replicators API

func (*Replicator) DeepCopy

func (in *Replicator) DeepCopy() *Replicator

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

func (*Replicator) DeepCopyInto

func (in *Replicator) DeepCopyInto(out *Replicator)

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

func (*Replicator) DeepCopyObject

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

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

type ReplicatorList

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

ReplicatorList contains a list of Replicator

func (*ReplicatorList) DeepCopy

func (in *ReplicatorList) DeepCopy() *ReplicatorList

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

func (*ReplicatorList) DeepCopyInto

func (in *ReplicatorList) DeepCopyInto(out *ReplicatorList)

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

func (*ReplicatorList) DeepCopyObject

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

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

type ReplicatorSpec

type ReplicatorSpec struct {
	ReplicationNamespace string                            `json:"replicationNamespace"`
	DeploymentName       string                            `json:"deploymentName"`
	DeploymentSpec       *DeploymentSpecApplyConfiguration `json:"deploymentSpec"`

	//+optional
	ConfigMapName string `json:"configMapName"`

	//+optional
	ConfigMapData map[string]string `json:"configMapData"`

	//+optional
	ServiceName string `json:"serviceName"`

	//+optional
	ServiceSpec *ServiceSpecApplyConfiguration `json:"serviceSpec"`

	//+optional
	IngressName string `json:"ingressName"`

	//+optional
	IngressSpec *IngressSpecApplyConfiguration `json:"ingressSpec"`

	//+optional
	IngressSecureEnabled bool `json:"ingressSecureEnabled"`

	//+optional
	TargetCluster []string `json:"targetCluster"`
}

ReplicatorSpec defines the desired state of Replicator

func (*ReplicatorSpec) DeepCopy

func (in *ReplicatorSpec) DeepCopy() *ReplicatorSpec

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

func (*ReplicatorSpec) DeepCopyInto

func (in *ReplicatorSpec) DeepCopyInto(out *ReplicatorSpec)

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

type ReplicatorStatus

type ReplicatorStatus struct {
	// Synchronization status with remote Kubernetes cluster per resource
	Applied []PerResourceApplyStatus `json:"applied"`

	// The status will be as follows
	// synced: Resource Apply succeeded on all clusters
	// not synced: Resource Apply failed in any of the clusters.
	Synced string `json:"synced"`
}

ReplicatorStatus defines the observed state of Replicator

func (*ReplicatorStatus) DeepCopy

func (in *ReplicatorStatus) DeepCopy() *ReplicatorStatus

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

func (*ReplicatorStatus) DeepCopyInto

func (in *ReplicatorStatus) DeepCopyInto(out *ReplicatorStatus)

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

type ServiceSpecApplyConfiguration

type ServiceSpecApplyConfiguration corev1apply.ServiceSpecApplyConfiguration

func (*ServiceSpecApplyConfiguration) DeepCopy

func (*ServiceSpecApplyConfiguration) DeepCopyInto

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