Documentation ¶
Index ¶
Constants ¶
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 ¶
var ( SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
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 ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GDPSpec.
func (*GDPSpec) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GDPStatus.
func (*GDPStatus) DeepCopyInto ¶
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 ¶
func (in *GlobalDeploymentPolicy) DeepCopy() *GlobalDeploymentPolicy
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 ¶
func (in *GlobalDeploymentPolicyList) DeepCopy() *GlobalDeploymentPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlobalDeploymentPolicyList.
func (*GlobalDeploymentPolicyList) DeepCopyInto ¶
func (in *GlobalDeploymentPolicyList) DeepCopyInto(out *GlobalDeploymentPolicyList)
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 ¶
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.