v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   "ako.vmware.com",
	Version: "v1alpha1",
}

SchemeGroupVersion schema name and the version

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type AcceptedStatus

type AcceptedStatus struct {
	Accepted bool   `json:"accepted,omitempty"`
	Reason   string `json:"reason"`
}

AcceptedStatus represents whether the MCI object was accepted or rejected. It also includes the reason for rejection.

func (*AcceptedStatus) DeepCopy

func (in *AcceptedStatus) DeepCopy() *AcceptedStatus

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

func (*AcceptedStatus) DeepCopyInto

func (in *AcceptedStatus) DeepCopyInto(out *AcceptedStatus)

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

type BackendConfig

type BackendConfig struct {
	Path           string  `json:"path,omitempty"`
	ClusterContext string  `json:"cluster,omitempty"`
	Weight         int     `json:"weight,omitempty"`
	Service        Service `json:"service,omitempty"`
}

BackendConfig contains the parameters from the tenant clusters

func (*BackendConfig) DeepCopy

func (in *BackendConfig) DeepCopy() *BackendConfig

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

func (*BackendConfig) DeepCopyInto

func (in *BackendConfig) DeepCopyInto(out *BackendConfig)

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

type BackendPort

type BackendPort struct {
	Port      int32    `json:"port,omitempty"`
	Endpoints []IPPort `json:"endpoints,omitempty"`
}

func (*BackendPort) DeepCopy

func (in *BackendPort) DeepCopy() *BackendPort

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

func (*BackendPort) DeepCopyInto

func (in *BackendPort) DeepCopyInto(out *BackendPort)

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

type ClusterConfig

type ClusterConfig struct {
	Context string `json:"context"`
}

ClusterConfig has the contains the cluster context name.

func (*ClusterConfig) DeepCopy

func (in *ClusterConfig) DeepCopy() *ClusterConfig

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

func (*ClusterConfig) DeepCopyInto

func (in *ClusterConfig) DeepCopyInto(out *ClusterConfig)

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

type ClusterSet

type ClusterSet struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// spec for MultiClusterIngress Config
	Spec ClusterSetSpec `json:"spec,omitempty"`
	// +optional
	Status ClusterSetStatus `json:"status,omitempty"`
}

ClusterSet is the top-level type

func (*ClusterSet) DeepCopy

func (in *ClusterSet) DeepCopy() *ClusterSet

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

func (*ClusterSet) DeepCopyInto

func (in *ClusterSet) DeepCopyInto(out *ClusterSet)

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

func (*ClusterSet) DeepCopyObject

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

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

type ClusterSetList

type ClusterSetList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterSet `json:"items"`
}

ClusterSetList is a list of GSLBConfig resources

func (*ClusterSetList) DeepCopy

func (in *ClusterSetList) DeepCopy() *ClusterSetList

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

func (*ClusterSetList) DeepCopyInto

func (in *ClusterSetList) DeepCopyInto(out *ClusterSetList)

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

func (*ClusterSetList) DeepCopyObject

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

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

type ClusterSetSpec

type ClusterSetSpec struct {
	Clusters   []ClusterConfig `json:"clusters,omitempty"`
	SecretName string          `json:"secretName,omitempty"`
}

ClusterSetSpec has the configuration of the cluster list which form this set. It also has the secret which contains the kubeconfig for all the clusters defined in this set.

func (*ClusterSetSpec) DeepCopy

func (in *ClusterSetSpec) DeepCopy() *ClusterSetSpec

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

func (*ClusterSetSpec) DeepCopyInto

func (in *ClusterSetSpec) DeepCopyInto(out *ClusterSetSpec)

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

type ClusterSetStatus

type ClusterSetStatus struct {
	ServiceDiscovery []ServiceDiscoveryStatus `json:"serviceDiscovery"`
}

ClusterSetStatus has the status of the clusters

func (*ClusterSetStatus) DeepCopy

func (in *ClusterSetStatus) DeepCopy() *ClusterSetStatus

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

func (*ClusterSetStatus) DeepCopyInto

func (in *ClusterSetStatus) DeepCopyInto(out *ClusterSetStatus)

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

type IPPort

type IPPort struct {
	IP   string `json:"ip,omitempty"`
	Port int32  `json:"port,omitempty"`
}

func (*IPPort) DeepCopy

func (in *IPPort) DeepCopy() *IPPort

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

func (*IPPort) DeepCopyInto

func (in *IPPort) DeepCopyInto(out *IPPort)

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

type IngressStatus

type IngressStatus struct {
	Hostname string `json:"hostname,omitempty"`
	IP       string `json:"ip,omitempty"`
}

IngressStatus contains the ingress details required for the traffic

func (*IngressStatus) DeepCopy

func (in *IngressStatus) DeepCopy() *IngressStatus

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

func (*IngressStatus) DeepCopyInto

func (in *IngressStatus) DeepCopyInto(out *IngressStatus)

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

type LoadBalancer

type LoadBalancer struct {
	Ingress []IngressStatus `json:"ingress,omitempty"`
}

LoadBalancer status is updated by AKO in the MultiClusterIngress object. It contains the VIP fetched from the load balancer and the host fqdn this vip is mapped to.

func (*LoadBalancer) DeepCopy

func (in *LoadBalancer) DeepCopy() *LoadBalancer

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

func (*LoadBalancer) DeepCopyInto

func (in *LoadBalancer) DeepCopyInto(out *LoadBalancer)

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

type MultiClusterIngress

type MultiClusterIngress struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// spec for MultiClusterIngress Config
	Spec MultiClusterIngressSpec `json:"spec,omitempty"`
	// +optional
	Status MultiClusterIngressStatus `json:"status,omitempty"`
}

MultiClusterIngress is the top-level type

func (*MultiClusterIngress) DeepCopy

func (in *MultiClusterIngress) DeepCopy() *MultiClusterIngress

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

func (*MultiClusterIngress) DeepCopyInto

func (in *MultiClusterIngress) DeepCopyInto(out *MultiClusterIngress)

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

func (*MultiClusterIngress) DeepCopyObject

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

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

type MultiClusterIngressList

type MultiClusterIngressList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []MultiClusterIngress `json:"items"`
}

MultiClusterIngressList is a list of GSLBConfig resources

func (*MultiClusterIngressList) DeepCopy

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

func (*MultiClusterIngressList) DeepCopyInto

func (in *MultiClusterIngressList) DeepCopyInto(out *MultiClusterIngressList)

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

func (*MultiClusterIngressList) DeepCopyObject

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

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

type MultiClusterIngressSpec

type MultiClusterIngressSpec struct {
	Hostname   string          `json:"hostName,omitempty"`
	SecretName string          `json:"secretName,omitempty"`
	Config     []BackendConfig `json:"config,omitempty"`
}

MultiClusterIngressSpec is the spec for a MultiClusterIngress object

func (*MultiClusterIngressSpec) DeepCopy

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

func (*MultiClusterIngressSpec) DeepCopyInto

func (in *MultiClusterIngressSpec) DeepCopyInto(out *MultiClusterIngressSpec)

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

type MultiClusterIngressStatus

type MultiClusterIngressStatus struct {
	LoadBalancer LoadBalancer   `json:"loadBalancer,omitempty"`
	Status       AcceptedStatus `json:"status,omitempty"`
}

MultiClusterIngressStatus represents the current status of the MultiClusterIngress object

func (*MultiClusterIngressStatus) DeepCopy

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

func (*MultiClusterIngressStatus) DeepCopyInto

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

type Service

type Service struct {
	Name      string `json:"name,omitempty"`
	Port      int    `json:"port,omitempty"`
	Namespace string `json:"namespace,omitempty"`
}

Service contains the backend service configuration and endpoints

func (*Service) DeepCopy

func (in *Service) DeepCopy() *Service

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

func (*Service) DeepCopyInto

func (in *Service) DeepCopyInto(out *Service)

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

type ServiceDiscoveryStatus

type ServiceDiscoveryStatus struct {
	Cluster string `json:"cluster,omitempty"`
	Status  string `json:"status,omitempty"`
}

ServiceDiscoveryStatus contains the cluster and it's last status: connected or not.

func (*ServiceDiscoveryStatus) DeepCopy

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

func (*ServiceDiscoveryStatus) DeepCopyInto

func (in *ServiceDiscoveryStatus) DeepCopyInto(out *ServiceDiscoveryStatus)

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

type ServiceImport

type ServiceImport struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// spec for MultiClusterIngress Config
	Spec ServiceImportSpec `json:"spec,omitempty"`
}

ServiceImport is the top-level type

func (*ServiceImport) DeepCopy

func (in *ServiceImport) DeepCopy() *ServiceImport

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

func (*ServiceImport) DeepCopyInto

func (in *ServiceImport) DeepCopyInto(out *ServiceImport)

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

func (*ServiceImport) DeepCopyObject

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

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

type ServiceImportList

type ServiceImportList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ServiceImport `json:"items"`
}

ServiceImportList is a list of ServiceImport resources

func (*ServiceImportList) DeepCopy

func (in *ServiceImportList) DeepCopy() *ServiceImportList

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

func (*ServiceImportList) DeepCopyInto

func (in *ServiceImportList) DeepCopyInto(out *ServiceImportList)

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

func (*ServiceImportList) DeepCopyObject

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

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

type ServiceImportSpec

type ServiceImportSpec struct {
	Cluster   string        `json:"cluster,omitempty"`
	Namespace string        `json:"namespace,omitempty"`
	Service   string        `json:"service,omitempty"`
	SvcPorts  []BackendPort `json:"svcPorts,omitempty"`
}

func (*ServiceImportSpec) DeepCopy

func (in *ServiceImportSpec) DeepCopy() *ServiceImportSpec

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

func (*ServiceImportSpec) DeepCopyInto

func (in *ServiceImportSpec) DeepCopyInto(out *ServiceImportSpec)

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