Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the submariner v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=submariner.io
Package v1alpha1 contains API Schema definitions for the submariner v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=submariner.io
SPDX-License-Identifier: Apache-2.0
Copyright Contributors to the Submariner project.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- Variables
- type Broker
- type BrokerList
- type BrokerSpec
- type BrokerStatus
- type CloudProvider
- type CoreDNSCustomConfig
- type DaemonSetStatus
- type DeploymentInfo
- type HealthCheckSpec
- type KubernetesType
- type LoadBalancerStatus
- type ServiceDiscovery
- type ServiceDiscoveryList
- type ServiceDiscoverySpec
- type ServiceDiscoveryStatus
- type Submariner
- type SubmarinerList
- type SubmarinerSpec
- type SubmarinerStatus
Constants ¶
const ( DefaultColorCode = "blue" K8s KubernetesType = "k8s" OCP = "ocp" EKS = "eks" AKS = "aks" GKE = "gke" DefaultKubernetesType = K8s Kind CloudProvider = "kind" AWS = "aws" GCP = "gcp" Azure = "azure" Openstack = "openstack" )
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "submariner.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} AddToScheme = SchemeBuilder.AddToScheme )
var ( DefaultRepo = "quay.io/submariner" DefaultSubmarinerOperatorVersion = "0.12.0-m0" DefaultSubmarinerVersion = "0.12.0-m0" DefaultLighthouseVersion = "0.12.0-m0" )
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BrokerSpec `json:"spec,omitempty"` Status BrokerStatus `json:"status,omitempty"` }
Broker is the Schema for the brokers API +k8s:openapi-gen=true +kubebuilder:subresource:status +kubebuilder:resource:path=brokers,scope=Namespaced +genclient +operator-sdk:csv:customresourcedefinitions:displayName="Broker"
func (*Broker) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Broker.
func (*Broker) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Broker) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BrokerList ¶
type BrokerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Broker `json:"items"` }
BrokerList contains a list of Broker
func (*BrokerList) DeepCopy ¶
func (in *BrokerList) DeepCopy() *BrokerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BrokerList.
func (*BrokerList) DeepCopyInto ¶
func (in *BrokerList) DeepCopyInto(out *BrokerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BrokerList) DeepCopyObject ¶
func (in *BrokerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BrokerSpec ¶
type BrokerSpec struct { Components []string `json:"components,omitempty"` DefaultCustomDomains []string `json:"defaultCustomDomains,omitempty"` GlobalnetCIDRRange string `json:"globalnetCIDRRange,omitempty"` DefaultGlobalnetClusterSize uint `json:"defaultGlobalnetClusterSize,omitempty"` GlobalnetEnabled bool `json:"globalnetEnabled,omitempty"` }
BrokerSpec defines the desired state of Broker +k8s:openapi-gen=true
func (*BrokerSpec) DeepCopy ¶
func (in *BrokerSpec) DeepCopy() *BrokerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BrokerSpec.
func (*BrokerSpec) DeepCopyInto ¶
func (in *BrokerSpec) DeepCopyInto(out *BrokerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BrokerStatus ¶
type BrokerStatus struct { }
BrokerStatus defines the observed state of Broker +k8s:openapi-gen=true
func (*BrokerStatus) DeepCopy ¶
func (in *BrokerStatus) DeepCopy() *BrokerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BrokerStatus.
func (*BrokerStatus) DeepCopyInto ¶
func (in *BrokerStatus) DeepCopyInto(out *BrokerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudProvider ¶
type CloudProvider string
type CoreDNSCustomConfig ¶
type CoreDNSCustomConfig struct { ConfigMapName string `json:"configMapName,omitempty"` Namespace string `json:"namespace,omitempty"` }
func (*CoreDNSCustomConfig) DeepCopy ¶
func (in *CoreDNSCustomConfig) DeepCopy() *CoreDNSCustomConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CoreDNSCustomConfig.
func (*CoreDNSCustomConfig) DeepCopyInto ¶
func (in *CoreDNSCustomConfig) DeepCopyInto(out *CoreDNSCustomConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DaemonSetStatus ¶
type DaemonSetStatus struct { LastResourceVersion string `json:"lastResourceVersion,omitempty"` Status *appsv1.DaemonSetStatus `json:"status,omitempty"` NonReadyContainerStates *[]corev1.ContainerState `json:"nonReadyContainerStates,omitempty"` MismatchedContainerImages bool `json:"mismatchedContainerImages"` }
func (*DaemonSetStatus) DeepCopy ¶
func (in *DaemonSetStatus) DeepCopy() *DaemonSetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSetStatus.
func (*DaemonSetStatus) DeepCopyInto ¶
func (in *DaemonSetStatus) DeepCopyInto(out *DaemonSetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeploymentInfo ¶
type DeploymentInfo struct { KubernetesType KubernetesType `json:"kubernetesType,omitempty"` KubernetesTypeVersion string `json:"kubernetesTypeVersion,omitempty"` KubernetesVersion string `json:"kubernetesVersion,omitempty"` CloudProvider CloudProvider `json:"cloudProvider,omitempty"` }
func (*DeploymentInfo) DeepCopy ¶
func (in *DeploymentInfo) DeepCopy() *DeploymentInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentInfo.
func (*DeploymentInfo) DeepCopyInto ¶
func (in *DeploymentInfo) DeepCopyInto(out *DeploymentInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HealthCheckSpec ¶
type HealthCheckSpec struct { Enabled bool `json:"enabled,omitempty"` // The interval at which health check pings are sent. IntervalSeconds uint64 `json:"intervalSeconds,omitempty"` // The maximum number of packets lost at which the health checker will mark the connection as down. MaxPacketLossCount uint64 `json:"maxPacketLossCount,omitempty"` }
func (*HealthCheckSpec) DeepCopy ¶
func (in *HealthCheckSpec) DeepCopy() *HealthCheckSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthCheckSpec.
func (*HealthCheckSpec) DeepCopyInto ¶
func (in *HealthCheckSpec) DeepCopyInto(out *HealthCheckSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubernetesType ¶
type KubernetesType string
type LoadBalancerStatus ¶
type LoadBalancerStatus struct {
Status *corev1.LoadBalancerStatus `json:"status,omitempty"`
}
func (*LoadBalancerStatus) DeepCopy ¶
func (in *LoadBalancerStatus) DeepCopy() *LoadBalancerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerStatus.
func (*LoadBalancerStatus) DeepCopyInto ¶
func (in *LoadBalancerStatus) DeepCopyInto(out *LoadBalancerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceDiscovery ¶
type ServiceDiscovery struct { Status ServiceDiscoveryStatus `json:"status,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ServiceDiscoverySpec `json:"spec,omitempty"` metav1.TypeMeta `json:",inline"` }
ServiceDiscovery is the Schema for the servicediscoveries API +k8s:openapi-gen=true +kubebuilder:subresource:status +kubebuilder:resource:path=servicediscoveries,scope=Namespaced +genclient +operator-sdk:csv:customresourcedefinitions:displayName="Lighthouse"
func (*ServiceDiscovery) DeepCopy ¶
func (in *ServiceDiscovery) DeepCopy() *ServiceDiscovery
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceDiscovery.
func (*ServiceDiscovery) DeepCopyInto ¶
func (in *ServiceDiscovery) DeepCopyInto(out *ServiceDiscovery)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceDiscovery) DeepCopyObject ¶
func (in *ServiceDiscovery) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ServiceDiscovery) UnmarshalJSON ¶
func (sd *ServiceDiscovery) UnmarshalJSON(data []byte) error
type ServiceDiscoveryList ¶
type ServiceDiscoveryList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ServiceDiscovery `json:"items"` }
ServiceDiscoveryList contains a list of ServiceDiscovery
func (*ServiceDiscoveryList) DeepCopy ¶
func (in *ServiceDiscoveryList) DeepCopy() *ServiceDiscoveryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceDiscoveryList.
func (*ServiceDiscoveryList) DeepCopyInto ¶
func (in *ServiceDiscoveryList) DeepCopyInto(out *ServiceDiscoveryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceDiscoveryList) DeepCopyObject ¶
func (in *ServiceDiscoveryList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceDiscoverySpec ¶
type ServiceDiscoverySpec struct { BrokerK8sApiServer string `json:"brokerK8sApiServer"` BrokerK8sApiServerToken string `json:"brokerK8sApiServerToken"` BrokerK8sCA string `json:"brokerK8sCA"` BrokerK8sRemoteNamespace string `json:"brokerK8sRemoteNamespace"` ClusterID string `json:"clusterID"` Namespace string `json:"namespace"` Repository string `json:"repository,omitempty"` Version string `json:"version,omitempty"` Debug bool `json:"debug"` GlobalnetEnabled bool `json:"globalnetEnabled,omitempty"` CoreDNSCustomConfig *CoreDNSCustomConfig `json:"coreDNSCustomConfig,omitempty"` // +listType=set CustomDomains []string `json:"customDomains,omitempty"` ImageOverrides map[string]string `json:"imageOverrides,omitempty"` }
ServiceDiscoverySpec defines the desired state of ServiceDiscovery +k8s:openapi-gen=true
func (*ServiceDiscoverySpec) DeepCopy ¶
func (in *ServiceDiscoverySpec) DeepCopy() *ServiceDiscoverySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceDiscoverySpec.
func (*ServiceDiscoverySpec) DeepCopyInto ¶
func (in *ServiceDiscoverySpec) DeepCopyInto(out *ServiceDiscoverySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceDiscoveryStatus ¶
type ServiceDiscoveryStatus struct {
DeploymentInfo DeploymentInfo `json:"deploymentInfo,omitempty"`
}
ServiceDiscoveryStatus defines the observed state of ServiceDiscovery +k8s:openapi-gen=true
func (*ServiceDiscoveryStatus) DeepCopy ¶
func (in *ServiceDiscoveryStatus) DeepCopy() *ServiceDiscoveryStatus
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 Submariner ¶
type Submariner struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SubmarinerSpec `json:"spec,omitempty"` Status SubmarinerStatus `json:"status,omitempty"` }
Submariner is the Schema for the submariners API +k8s:openapi-gen=true +kubebuilder:subresource:status +kubebuilder:resource:path=submariners,scope=Namespaced +genclient +operator-sdk:csv:customresourcedefinitions:displayName="Submariner"
func (*Submariner) DeepCopy ¶
func (in *Submariner) DeepCopy() *Submariner
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Submariner.
func (*Submariner) DeepCopyInto ¶
func (in *Submariner) DeepCopyInto(out *Submariner)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Submariner) DeepCopyObject ¶
func (in *Submariner) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Submariner) UnmarshalJSON ¶
func (s *Submariner) UnmarshalJSON(data []byte) error
type SubmarinerList ¶
type SubmarinerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Submariner `json:"items"` }
SubmarinerList contains a list of Submariner
func (*SubmarinerList) DeepCopy ¶
func (in *SubmarinerList) DeepCopy() *SubmarinerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubmarinerList.
func (*SubmarinerList) DeepCopyInto ¶
func (in *SubmarinerList) DeepCopyInto(out *SubmarinerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SubmarinerList) DeepCopyObject ¶
func (in *SubmarinerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SubmarinerSpec ¶
type SubmarinerSpec struct { Broker string `json:"broker"` BrokerK8sApiServer string `json:"brokerK8sApiServer"` BrokerK8sApiServerToken string `json:"brokerK8sApiServerToken"` BrokerK8sCA string `json:"brokerK8sCA"` BrokerK8sRemoteNamespace string `json:"brokerK8sRemoteNamespace"` CableDriver string `json:"cableDriver,omitempty"` CeIPSecPSK string `json:"ceIPSecPSK"` ClusterCIDR string `json:"clusterCIDR"` ClusterID string `json:"clusterID"` ColorCodes string `json:"colorCodes,omitempty"` Repository string `json:"repository,omitempty"` ServiceCIDR string `json:"serviceCIDR"` GlobalCIDR string `json:"globalCIDR,omitempty"` Namespace string `json:"namespace"` Version string `json:"version,omitempty"` CeIPSecIKEPort int `json:"ceIPSecIKEPort,omitempty"` CeIPSecNATTPort int `json:"ceIPSecNATTPort,omitempty"` CeIPSecDebug bool `json:"ceIPSecDebug"` CeIPSecPreferredServer bool `json:"ceIPSecPreferredServer,omitempty"` CeIPSecForceUDPEncaps bool `json:"ceIPSecForceUDPEncaps,omitempty"` Debug bool `json:"debug"` NatEnabled bool `json:"natEnabled"` LoadBalancerEnabled bool `json:"loadBalancerEnabled,omitempty"` ServiceDiscoveryEnabled bool `json:"serviceDiscoveryEnabled,omitempty"` CoreDNSCustomConfig *CoreDNSCustomConfig `json:"coreDNSCustomConfig,omitempty"` // +listType=set CustomDomains []string `json:"customDomains,omitempty"` ImageOverrides map[string]string `json:"imageOverrides,omitempty"` // +optional ConnectionHealthCheck *HealthCheckSpec `json:"connectionHealthCheck,omitempty"` }
SubmarinerSpec defines the desired state of Submariner +k8s:openapi-gen=true
func (*SubmarinerSpec) DeepCopy ¶
func (in *SubmarinerSpec) DeepCopy() *SubmarinerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubmarinerSpec.
func (*SubmarinerSpec) DeepCopyInto ¶
func (in *SubmarinerSpec) DeepCopyInto(out *SubmarinerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubmarinerStatus ¶
type SubmarinerStatus struct { NatEnabled bool `json:"natEnabled"` ColorCodes string `json:"colorCodes,omitempty"` ClusterID string `json:"clusterID"` ServiceCIDR string `json:"serviceCIDR,omitempty"` ClusterCIDR string `json:"clusterCIDR,omitempty"` GlobalCIDR string `json:"globalCIDR,omitempty"` NetworkPlugin string `json:"networkPlugin,omitempty"` GatewayDaemonSetStatus DaemonSetStatus `json:"gatewayDaemonSetStatus,omitempty"` RouteAgentDaemonSetStatus DaemonSetStatus `json:"routeAgentDaemonSetStatus,omitempty"` GlobalnetDaemonSetStatus DaemonSetStatus `json:"globalnetDaemonSetStatus,omitempty"` LoadBalancerStatus LoadBalancerStatus `json:"loadBalancerStatus,omitempty"` Gateways *[]submv1.GatewayStatus `json:"gateways,omitempty"` DeploymentInfo DeploymentInfo `json:"deploymentInfo,omitempty"` }
SubmarinerStatus defines the observed state of Submariner +k8s:openapi-gen=true
func (*SubmarinerStatus) DeepCopy ¶
func (in *SubmarinerStatus) DeepCopy() *SubmarinerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubmarinerStatus.
func (*SubmarinerStatus) DeepCopyInto ¶
func (in *SubmarinerStatus) DeepCopyInto(out *SubmarinerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.