Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the interconnectedcloud v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=interconnectedcloud.github.io
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- type Address
- type AutoLink
- type ConditionType
- type Connector
- type DeploymentPlanType
- type Interconnect
- type InterconnectCondition
- type InterconnectList
- type InterconnectSpec
- type InterconnectStatus
- type LinkRoute
- type Listener
- type PhaseType
- type PlacementType
- type RouterRoleType
- type SslProfile
Constants ¶
const ( InterconnectPhaseNone PhaseType = "" InterconnectPhaseCreating = "Creating" InterconnectPhaseRunning = "Running" InterconnectPhaseFailed = "Failed" )
const ( PlacementAny PlacementType = "Any" PlacementEvery = "Every" PlacementAntiAffinity = "AntiAffinity" PlacementNode = "Node" )
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "interconnectedcloud.github.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func Resource ¶
func Resource(resource string) schema.GroupResource
Types ¶
type Address ¶
type Address struct { Prefix string `json:"prefix,omitempty"` Pattern string `json:"pattern,omitempty"` Distribution string `json:"distribution,omitempty"` Waypoint bool `json:"waypoint,omitempty"` IngressPhase *int32 `json:"ingressPhase,omitempty"` EgressPhase *int32 `json:"egressPhase,omitempty"` Priority *int32 `json:"priority,omitempty"` EnableFallback bool `json:"enableFallback,omitempty"` }
func (*Address) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Address.
func (*Address) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AutoLink ¶
type AutoLink struct { Address string `json:"address"` Direction string `json:"direction"` ContainerId string `json:"containerId,omitempty"` Connection string `json:"connection,omitempty"` ExternalAddress string `json:"externalAddress,omitempty"` Phase *int32 `json:"phase,omitempty"` Fallback bool `json:"fallback,omitempty"` }
func (*AutoLink) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoLink.
func (*AutoLink) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConditionType ¶
type ConditionType string
const ( InterconnectConditionProvisioning ConditionType = "Provisioning" InterconnectConditionDeployed ConditionType = "Deployed" InterconnectConditionScalingUp ConditionType = "ScalingUp" InterconnectConditionScalingDown ConditionType = "ScalingDown" InterconnectConditionUpgrading ConditionType = "Upgrading" )
type Connector ¶
type Connector struct { Name string `json:"name,omitempty"` Host string `json:"host"` Port int32 `json:"port"` RouteContainer bool `json:"routeContainer,omitempty"` Cost int32 `json:"cost,omitempty"` VerifyHostname bool `json:"verifyHostname,omitempty"` SslProfile string `json:"sslProfile,omitempty"` LinkCapacity int32 `json:"linkCapacity,omitempty"` }
func (*Connector) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Connector.
func (*Connector) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeploymentPlanType ¶
type DeploymentPlanType struct { Image string `json:"image,omitempty"` Size int32 `json:"size,omitempty"` Role RouterRoleType `json:"role,omitempty"` Placement PlacementType `json:"placement,omitempty"` Resources corev1.ResourceRequirements `json:"resources,omitempty"` Issuer string `json:"issuer,omitempty"` LivenessPort int32 `json:"livenessPort,omitempty"` ServiceType string `json:"serviceType,omitempty"` }
func (*DeploymentPlanType) DeepCopy ¶
func (in *DeploymentPlanType) DeepCopy() *DeploymentPlanType
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentPlanType.
func (*DeploymentPlanType) DeepCopyInto ¶
func (in *DeploymentPlanType) DeepCopyInto(out *DeploymentPlanType)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Interconnect ¶
type Interconnect struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec InterconnectSpec `json:"spec,omitempty"` Status InterconnectStatus `json:"status,omitempty"` }
Interconnect is the Schema for the interconnects API +k8s:openapi-gen=true
func (*Interconnect) DeepCopy ¶
func (in *Interconnect) DeepCopy() *Interconnect
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Interconnect.
func (*Interconnect) DeepCopyInto ¶
func (in *Interconnect) DeepCopyInto(out *Interconnect)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Interconnect) DeepCopyObject ¶
func (in *Interconnect) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InterconnectCondition ¶
type InterconnectCondition struct { Type ConditionType `json:"type"` TransitionTime metav1.Time `json:"transitionTime,omitempty"` Reason string `json:"reason,omitempty"` }
func (*InterconnectCondition) DeepCopy ¶
func (in *InterconnectCondition) DeepCopy() *InterconnectCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InterconnectCondition.
func (*InterconnectCondition) DeepCopyInto ¶
func (in *InterconnectCondition) DeepCopyInto(out *InterconnectCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InterconnectList ¶
type InterconnectList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Interconnect `json:"items"` }
InterconnectList contains a list of Interconnect
func (*InterconnectList) DeepCopy ¶
func (in *InterconnectList) DeepCopy() *InterconnectList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InterconnectList.
func (*InterconnectList) DeepCopyInto ¶
func (in *InterconnectList) DeepCopyInto(out *InterconnectList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InterconnectList) DeepCopyObject ¶
func (in *InterconnectList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InterconnectSpec ¶
type InterconnectSpec struct { DeploymentPlan DeploymentPlanType `json:"deploymentPlan,omitempty"` Users string `json:"users,omitempty"` Listeners []Listener `json:"listeners,omitempty"` InterRouterListeners []Listener `json:"interRouterListeners,omitempty"` EdgeListeners []Listener `json:"edgeListeners,omitempty"` SslProfiles []SslProfile `json:"sslProfiles,omitempty"` Addresses []Address `json:"addresses,omitempty"` AutoLinks []AutoLink `json:"autoLinks,omitempty"` LinkRoutes []LinkRoute `json:"linkRoutes,omitempty"` Connectors []Connector `json:"connectors,omitempty"` InterRouterConnectors []Connector `json:"interRouterConnectors,omitempty"` EdgeConnectors []Connector `json:"edgeConnectors,omitempty"` }
InterconnectSpec defines the desired state of Interconnect
func (*InterconnectSpec) DeepCopy ¶
func (in *InterconnectSpec) DeepCopy() *InterconnectSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InterconnectSpec.
func (*InterconnectSpec) DeepCopyInto ¶
func (in *InterconnectSpec) DeepCopyInto(out *InterconnectSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InterconnectStatus ¶
type InterconnectStatus struct { Phase PhaseType `json:"phase,omitempty"` RevNumber string `json:"revNumber,omitempty"` PodNames []string `json:"pods"` // Conditions keeps most recent interconnect conditions Conditions []InterconnectCondition `json:"conditions"` }
InterconnectStatus defines the observed state of Interconnect
func (*InterconnectStatus) DeepCopy ¶
func (in *InterconnectStatus) DeepCopy() *InterconnectStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InterconnectStatus.
func (*InterconnectStatus) DeepCopyInto ¶
func (in *InterconnectStatus) DeepCopyInto(out *InterconnectStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LinkRoute ¶
type LinkRoute struct { Prefix string `json:"prefix,omitempty"` Pattern string `json:"pattern,omitempty"` Direction string `json:"direction,omitempty"` ContainerId string `json:"containerId,omitempty"` Connection string `json:"connection,omitempty"` AddExternalPrefix string `json:"addExternalPrefix,omitempty"` DelExternalPrefix string `json:"delExternalPrefix,omitempty"` }
func (*LinkRoute) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LinkRoute.
func (*LinkRoute) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Listener ¶
type Listener struct { Name string `json:"name,omitempty"` Host string `json:"host,omitempty"` Port int32 `json:"port"` RouteContainer bool `json:"routeContainer,omitempty"` Http bool `json:"http,omitempty"` Cost int32 `json:"cost,omitempty"` SslProfile string `json:"sslProfile,omitempty"` SaslMechanisms string `json:"saslMechanisms,omitempty"` AuthenticatePeer bool `json:"authenticatePeer,omitempty"` Expose bool `json:"expose,omitempty"` LinkCapacity int32 `json:"linkCapacity,omitempty"` }
func (*Listener) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Listener.
func (*Listener) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PlacementType ¶
type PlacementType string
type RouterRoleType ¶
type RouterRoleType string
const ( RouterRoleInterior RouterRoleType = "interior" RouterRoleEdge = "edge" )
type SslProfile ¶
type SslProfile struct { Name string `json:"name,omitempty"` Credentials string `json:"credentials,omitempty"` CaCert string `json:"caCert,omitempty"` GenerateCredentials bool `json:"generateCredentials,omitempty"` GenerateCaCert bool `json:"generateCaCert,omitempty"` MutualAuth bool `json:"mutualAuth,omitempty"` Ciphers string `json:"ciphers,omitempty"` Protocols string `json:"protocols,omitempty"` }
func (*SslProfile) DeepCopy ¶
func (in *SslProfile) DeepCopy() *SslProfile
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SslProfile.
func (*SslProfile) DeepCopyInto ¶
func (in *SslProfile) DeepCopyInto(out *SslProfile)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.