v1alpha2

package
v0.0.0-...-87a21aa Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RouteObj only applies to openshift Routes
	RouteObj = "ROUTE"
	// IngressObj applies to K8S Ingresses
	IngressObj = "INGRESS"
	// LBSvc applies to service type LoadBalancer
	LBSvcObj = "LBSVC"
	// NSObj applies to namespaces
	NSObj = "Namespace"
)

Objects on which rules will be applied

Variables

View Source
var (
	SchemeBuilder runtime.SchemeBuilder

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

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type AppSelector

type AppSelector struct {
	Label map[string]string `json:"label,omitempty"`
}

AppSelector selects the applications based on their labels

func (*AppSelector) DeepCopy

func (in *AppSelector) DeepCopy() *AppSelector

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

func (*AppSelector) DeepCopyInto

func (in *AppSelector) DeepCopyInto(out *AppSelector)

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

type ClusterProperty

type ClusterProperty struct {
	Cluster     string `json:"cluster,omitempty"`
	SyncVipOnly bool   `json:"syncVipOnly,omitempty"`
}

ClusterProperty specifies all the properties required for a Cluster. Cluster is the cluster context name (already added as part of the GSLBConfig object). SyncVIPOnly will ask AMKO to sync only the third party vips for this cluster.

func (*ClusterProperty) DeepCopy

func (in *ClusterProperty) DeepCopy() *ClusterProperty

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

func (*ClusterProperty) DeepCopyInto

func (in *ClusterProperty) DeepCopyInto(out *ClusterProperty)

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

type GDPSpec

type GDPSpec struct {
	MatchRules            MatchRules                         `json:"matchRules,omitempty"`
	MatchClusters         []ClusterProperty                  `json:"matchClusters,omitempty"`
	TrafficSplit          []TrafficSplitElem                 `json:"trafficSplit,omitempty"`
	HealthMonitorRefs     []string                           `json:"healthMonitorRefs,omitempty"`
	HealthMonitorTemplate *string                            `json:"healthMonitorTemplate,omitempty"`
	TTL                   *int                               `json:"ttl,omitempty"`
	SitePersistenceRef    *string                            `json:"sitePersistenceRef,omitempty"`
	PKIProfileRef         *string                            `json:"pkiProfileRef,omitempty"`
	PoolAlgorithmSettings *gslbalphav1.PoolAlgorithmSettings `json:"poolAlgorithmSettings,omitempty"`
	DownResponse          *gslbalphav1.DownResponse          `json:"downResponse,omitempty"`
	ControlPlaneHmOnly    *bool                              `json:"controlPlaneHmOnly,omitempty"`
}

GDPSpec encloses all the properties of a GDP object.

func (*GDPSpec) DeepCopy

func (in *GDPSpec) DeepCopy() *GDPSpec

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

func (*GDPSpec) DeepCopyInto

func (in *GDPSpec) DeepCopyInto(out *GDPSpec)

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

type GDPStatus

type GDPStatus struct {
	ErrorStatus string `json:"errorStatus,omitempty"`
}

GDPStatus gives the current status of the policy object.

func (*GDPStatus) DeepCopy

func (in *GDPStatus) DeepCopy() *GDPStatus

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

func (*GDPStatus) DeepCopyInto

func (in *GDPStatus) DeepCopyInto(out *GDPStatus)

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

type GlobalDeploymentPolicy

type GlobalDeploymentPolicy struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// spec for GSLB Config
	Spec GDPSpec `json:"spec,omitempty"`
	// +optional
	Status GDPStatus `json:"status,omitempty"`
}

GlobalDeploymentPolicy is the top-level type: Global Deployment Policy encloses all the rules, actions and configuration required for deploying applications.

func (*GlobalDeploymentPolicy) DeepCopy

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

func (*GlobalDeploymentPolicy) DeepCopyInto

func (in *GlobalDeploymentPolicy) DeepCopyInto(out *GlobalDeploymentPolicy)

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

func (*GlobalDeploymentPolicy) DeepCopyObject

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

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

type GlobalDeploymentPolicyList

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

GlobalDeploymentPolicyList is a list of GDP resources

func (*GlobalDeploymentPolicyList) DeepCopy

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

func (*GlobalDeploymentPolicyList) DeepCopyInto

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

func (*GlobalDeploymentPolicyList) DeepCopyObject

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

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

type MatchRules

type MatchRules struct {
	AppSelector       `json:"appSelector,omitempty"`
	NamespaceSelector `json:"namespaceSelector,omitempty"`
}

MatchRules is the match criteria needed to select the kubernetes/openshift objects.

func (*MatchRules) DeepCopy

func (in *MatchRules) DeepCopy() *MatchRules

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

func (*MatchRules) DeepCopyInto

func (in *MatchRules) DeepCopyInto(out *MatchRules)

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

type NamespaceSelector

type NamespaceSelector struct {
	Label map[string]string `json:"label,omitempty"`
}

NamespaceSelector selects the applications based on their labels

func (*NamespaceSelector) DeepCopy

func (in *NamespaceSelector) DeepCopy() *NamespaceSelector

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

func (*NamespaceSelector) DeepCopyInto

func (in *NamespaceSelector) DeepCopyInto(out *NamespaceSelector)

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

type TrafficSplitElem

type TrafficSplitElem struct {
	// Cluster is the cluster context
	Cluster  string `json:"cluster,omitempty"`
	Weight   uint32 `json:"weight,omitempty"`
	Priority uint32 `json:"priority,omitempty"`
}

TrafficSplitElem determines how much traffic to be routed to a cluster.

func (*TrafficSplitElem) DeepCopy

func (in *TrafficSplitElem) DeepCopy() *TrafficSplitElem

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

func (*TrafficSplitElem) DeepCopyInto

func (in *TrafficSplitElem) DeepCopyInto(out *TrafficSplitElem)

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