Documentation ¶
Overview ¶
Package v1alpha contains API Schema definitions for the networking v1alpha API group. +kubebuilder:object:generate=true +groupName=networking.datumapis.com
Index ¶
- Constants
- Variables
- type GCPLocationProvider
- type IPBlock
- type IPFamily
- type LocalNetworkContextRef
- type LocalNetworkRef
- type LocalSubnetReference
- type Location
- type LocationList
- type LocationProvider
- type LocationReference
- type LocationSpec
- type LocationStatus
- type Network
- type NetworkBinding
- type NetworkBindingList
- type NetworkBindingObjectReference
- type NetworkBindingSpec
- type NetworkBindingStatus
- type NetworkContext
- type NetworkContextList
- type NetworkContextRef
- type NetworkContextSpec
- type NetworkContextStatus
- type NetworkIPAM
- type NetworkIPAMMode
- type NetworkList
- type NetworkPolicy
- type NetworkPolicyIngressRule
- type NetworkPolicyList
- type NetworkPolicyPeer
- type NetworkPolicyPort
- type NetworkPolicySpec
- type NetworkPolicyStatus
- type NetworkRef
- type NetworkSpec
- type NetworkStatus
- type Subnet
- type SubnetClaim
- type SubnetClaimList
- type SubnetClaimSpec
- type SubnetClaimStatus
- type SubnetList
- type SubnetSpec
- type SubnetStatus
Constants ¶
const ( // NetworkBindingReady indicates that the network binding has been associated // with a NetworkContext and the owning resource should expect functional // network features. NetworkBindingReady = "Ready" )
const (
// NetworkContextReady indicates that the network context is ready for use.
NetworkContextReady = "Ready"
)
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "networking.datumapis.com", Version: "v1alpha"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme. SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type GCPLocationProvider ¶
type GCPLocationProvider struct { // The GCP project servicing the location // // For locations with the class of `datum-managed`, a service account will be // required for each unique GCP project ID across all locations registered in a // namespace. // // +kubebuilder:validation:Required ProjectID string `json:"projectId,omitempty"` // The GCP region servicing the location // // +kubebuilder:validation:Required Region string `json:"region,omitempty"` // The GCP zone servicing the location // // +kubebuilder:validation:Required Zone string `json:"zone,omitempty"` }
func (*GCPLocationProvider) DeepCopy ¶
func (in *GCPLocationProvider) DeepCopy() *GCPLocationProvider
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCPLocationProvider.
func (*GCPLocationProvider) DeepCopyInto ¶
func (in *GCPLocationProvider) DeepCopyInto(out *GCPLocationProvider)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPBlock ¶
type IPBlock struct { // cidr is a string representing the IPBlock // Valid examples are "192.168.1.0/24" or "2001:db8::/64" // // +kubebuilder:validation:Required CIDR string `json:"cidr"` // except is a slice of CIDRs that should not be included within an IPBlock // Valid examples are "192.168.1.0/24" or "2001:db8::/64" // Except values will be rejected if they are outside the cidr range // // +listType=atomic // +kubebuilder:validation:Optional Except []string `json:"except,omitempty"` }
IPBlock describes a particular CIDR (Ex. "192.168.1.0/24","2001:db8::/64") that is allowed to the targets matched by a network policy. The except entry describes CIDRs that should not be included within this rule.
func (*IPBlock) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPBlock.
func (*IPBlock) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LocalNetworkContextRef ¶
type LocalNetworkContextRef struct { // The network context name // // +kubebuilder:validation:Required Name string `json:"name"` }
func (*LocalNetworkContextRef) DeepCopy ¶
func (in *LocalNetworkContextRef) DeepCopy() *LocalNetworkContextRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalNetworkContextRef.
func (*LocalNetworkContextRef) DeepCopyInto ¶
func (in *LocalNetworkContextRef) DeepCopyInto(out *LocalNetworkContextRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LocalNetworkRef ¶
type LocalNetworkRef struct { // The network name // // +kubebuilder:validation:Required Name string `json:"name,omitempty"` }
func (*LocalNetworkRef) DeepCopy ¶
func (in *LocalNetworkRef) DeepCopy() *LocalNetworkRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalNetworkRef.
func (*LocalNetworkRef) DeepCopyInto ¶
func (in *LocalNetworkRef) DeepCopyInto(out *LocalNetworkRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LocalSubnetReference ¶
type LocalSubnetReference struct {
Name string `json:"name"`
}
func (*LocalSubnetReference) DeepCopy ¶
func (in *LocalSubnetReference) DeepCopy() *LocalSubnetReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalSubnetReference.
func (*LocalSubnetReference) DeepCopyInto ¶
func (in *LocalSubnetReference) DeepCopyInto(out *LocalSubnetReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Location ¶
type Location struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec LocationSpec `json:"spec,omitempty"` Status LocationStatus `json:"status,omitempty"` }
Location is the Schema for the locations API.
func (*Location) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Location.
func (*Location) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Location) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LocationList ¶
type LocationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Location `json:"items"` }
LocationList contains a list of Location.
func (*LocationList) DeepCopy ¶
func (in *LocationList) DeepCopy() *LocationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocationList.
func (*LocationList) DeepCopyInto ¶
func (in *LocationList) DeepCopyInto(out *LocationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LocationList) DeepCopyObject ¶
func (in *LocationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LocationProvider ¶
type LocationProvider struct {
GCP *GCPLocationProvider `json:"gcp,omitempty"`
}
func (*LocationProvider) DeepCopy ¶
func (in *LocationProvider) DeepCopy() *LocationProvider
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocationProvider.
func (*LocationProvider) DeepCopyInto ¶
func (in *LocationProvider) DeepCopyInto(out *LocationProvider)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LocationReference ¶
type LocationReference struct { // Name of a datum location // // +kubebuilder:validation:Required Name string `json:"name"` // Namespace for the datum location // // +kubebuilder:validation:Required Namespace string `json:"namespace"` }
func (*LocationReference) DeepCopy ¶
func (in *LocationReference) DeepCopy() *LocationReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocationReference.
func (*LocationReference) DeepCopyInto ¶
func (in *LocationReference) DeepCopyInto(out *LocationReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LocationSpec ¶
type LocationSpec struct { // The location class that indicates control plane behavior of entities // associated with the location. // // Valid values are: // - datum-managed // - self-managed // // +kubebuilder:validation:Required LocationClassName string `json:"locationClassName,omitempty"` // The topology of the location // // This may contain arbitrary topology keys. Some keys may be well known, such // as: // - topology.datum.net/city-code // // +kubebuilder:validation:Required Topology map[string]string `json:"topology"` // The location provider // // +kubebuilder:validation:Required Provider LocationProvider `json:"provider"` }
LocationSpec defines the desired state of Location.
func (*LocationSpec) DeepCopy ¶
func (in *LocationSpec) DeepCopy() *LocationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocationSpec.
func (*LocationSpec) DeepCopyInto ¶
func (in *LocationSpec) DeepCopyInto(out *LocationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LocationStatus ¶
type LocationStatus struct { // Represents the observations of a location's current state. Conditions []metav1.Condition `json:"conditions,omitempty"` }
LocationStatus defines the observed state of Location.
func (*LocationStatus) DeepCopy ¶
func (in *LocationStatus) DeepCopy() *LocationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocationStatus.
func (*LocationStatus) DeepCopyInto ¶
func (in *LocationStatus) DeepCopyInto(out *LocationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Network ¶
type Network struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:Required Spec NetworkSpec `json:"spec,omitempty"` Status NetworkStatus `json:"status,omitempty"` }
Network is the Schema for the networks API
func (*Network) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Network.
func (*Network) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Network) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetworkBinding ¶
type NetworkBinding struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:Required Spec NetworkBindingSpec `json:"spec,omitempty"` Status NetworkBindingStatus `json:"status,omitempty"` }
NetworkBinding is the Schema for the networkbindings API
func (*NetworkBinding) DeepCopy ¶
func (in *NetworkBinding) DeepCopy() *NetworkBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkBinding.
func (*NetworkBinding) DeepCopyInto ¶
func (in *NetworkBinding) DeepCopyInto(out *NetworkBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkBinding) DeepCopyObject ¶
func (in *NetworkBinding) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetworkBindingList ¶
type NetworkBindingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []NetworkBinding `json:"items"` }
NetworkBindingList contains a list of NetworkBinding
func (*NetworkBindingList) DeepCopy ¶
func (in *NetworkBindingList) DeepCopy() *NetworkBindingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkBindingList.
func (*NetworkBindingList) DeepCopyInto ¶
func (in *NetworkBindingList) DeepCopyInto(out *NetworkBindingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkBindingList) DeepCopyObject ¶
func (in *NetworkBindingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetworkBindingObjectReference ¶
type NetworkBindingObjectReference struct { // API version of the referent. // // +kubebuilder:validation:Required APIVersion string `json:"apiVersion"` // Kind of the referent. // // +kubebuilder:validation:Required Kind string `json:"kind,omitempty"` // Namespace of the referent. // // +kubebuilder:validation:Required Namespace string `json:"namespace,omitempty"` // Name of the referent. // // +kubebuilder:validation:Required Name string `json:"name,omitempty"` }
NetworkBindingObjectReference contains sufficient information for controllers to leverage unstructured or structured clients to interact with the bound resources.
func (*NetworkBindingObjectReference) DeepCopy ¶
func (in *NetworkBindingObjectReference) DeepCopy() *NetworkBindingObjectReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkBindingObjectReference.
func (*NetworkBindingObjectReference) DeepCopyInto ¶
func (in *NetworkBindingObjectReference) DeepCopyInto(out *NetworkBindingObjectReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkBindingSpec ¶
type NetworkBindingSpec struct { // The network that the binding is for. // // +kubebuilder:validation:Required Network NetworkRef `json:"network,omitempty"` // The location of where a network binding exists. // // +kubebuilder:validation:Required Location LocationReference `json:"location,omitempty"` }
NetworkBindingSpec defines the desired state of NetworkBinding
func (*NetworkBindingSpec) DeepCopy ¶
func (in *NetworkBindingSpec) DeepCopy() *NetworkBindingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkBindingSpec.
func (*NetworkBindingSpec) DeepCopyInto ¶
func (in *NetworkBindingSpec) DeepCopyInto(out *NetworkBindingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkBindingStatus ¶
type NetworkBindingStatus struct { NetworkContextRef *NetworkContextRef `json:"networkContextRef,omitempty"` // Represents the observations of a network binding's current state. Conditions []metav1.Condition `json:"conditions,omitempty"` }
NetworkBindingStatus defines the observed state of NetworkBinding
func (*NetworkBindingStatus) DeepCopy ¶
func (in *NetworkBindingStatus) DeepCopy() *NetworkBindingStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkBindingStatus.
func (*NetworkBindingStatus) DeepCopyInto ¶
func (in *NetworkBindingStatus) DeepCopyInto(out *NetworkBindingStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkContext ¶
type NetworkContext struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NetworkContextSpec `json:"spec,omitempty"` Status NetworkContextStatus `json:"status,omitempty"` }
NetworkContext is the Schema for the networkcontexts API
func (*NetworkContext) DeepCopy ¶
func (in *NetworkContext) DeepCopy() *NetworkContext
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkContext.
func (*NetworkContext) DeepCopyInto ¶
func (in *NetworkContext) DeepCopyInto(out *NetworkContext)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkContext) DeepCopyObject ¶
func (in *NetworkContext) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetworkContextList ¶
type NetworkContextList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []NetworkContext `json:"items"` }
NetworkContextList contains a list of NetworkContext
func (*NetworkContextList) DeepCopy ¶
func (in *NetworkContextList) DeepCopy() *NetworkContextList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkContextList.
func (*NetworkContextList) DeepCopyInto ¶
func (in *NetworkContextList) DeepCopyInto(out *NetworkContextList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkContextList) DeepCopyObject ¶
func (in *NetworkContextList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetworkContextRef ¶
type NetworkContextRef struct { // The network context namespace // // +kubebuilder:validation:Required Namespace string `json:"namespace"` // The network context name // // +kubebuilder:validation:Required Name string `json:"name"` }
func (*NetworkContextRef) DeepCopy ¶
func (in *NetworkContextRef) DeepCopy() *NetworkContextRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkContextRef.
func (*NetworkContextRef) DeepCopyInto ¶
func (in *NetworkContextRef) DeepCopyInto(out *NetworkContextRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkContextSpec ¶
type NetworkContextSpec struct { // The attached network // // +kubebuilder:validation:Required Network LocalNetworkRef `json:"network"` // The location of where a network context exists. // // +kubebuilder:validation:Required Location LocationReference `json:"location,omitempty"` }
NetworkContextSpec defines the desired state of NetworkContext
func (*NetworkContextSpec) DeepCopy ¶
func (in *NetworkContextSpec) DeepCopy() *NetworkContextSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkContextSpec.
func (*NetworkContextSpec) DeepCopyInto ¶
func (in *NetworkContextSpec) DeepCopyInto(out *NetworkContextSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkContextStatus ¶
type NetworkContextStatus struct { // Represents the observations of a network context's current state. Conditions []metav1.Condition `json:"conditions,omitempty"` }
NetworkContextStatus defines the observed state of NetworkContext
func (*NetworkContextStatus) DeepCopy ¶
func (in *NetworkContextStatus) DeepCopy() *NetworkContextStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkContextStatus.
func (*NetworkContextStatus) DeepCopyInto ¶
func (in *NetworkContextStatus) DeepCopyInto(out *NetworkContextStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkIPAM ¶
type NetworkIPAM struct { // IPAM mode // // +kubebuilder:validation:Required // +kubebuilder:validation:Enum=Auto;Policy Mode NetworkIPAMMode `json:"mode"` // IPv4 range to use in auto mode networks. Defaults to 10.128.0.0/9. // // +kubebuilder:validation:Optional IPV4Range *string `json:"ipv4Range,omitempty"` // IPv6 range to use in auto mode networks. Defaults to a /48 allocated from `fd20::/20`. // // +kubebuilder:validation:Optional IPV6Range *string `json:"ipv6Range,omitempty"` }
func (*NetworkIPAM) DeepCopy ¶
func (in *NetworkIPAM) DeepCopy() *NetworkIPAM
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkIPAM.
func (*NetworkIPAM) DeepCopyInto ¶
func (in *NetworkIPAM) DeepCopyInto(out *NetworkIPAM)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkIPAMMode ¶
type NetworkIPAMMode string
const ( // Automatically allocate subnets in the network NetworkIPAMModeAuto NetworkIPAMMode = "Auto" // Leverage allocation policies or manually created subnets NetworkIPAMModePolicy NetworkIPAMMode = "Policy" )
type NetworkList ¶
type NetworkList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Network `json:"items"` }
NetworkList contains a list of Network
func (*NetworkList) DeepCopy ¶
func (in *NetworkList) DeepCopy() *NetworkList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkList.
func (*NetworkList) DeepCopyInto ¶
func (in *NetworkList) DeepCopyInto(out *NetworkList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkList) DeepCopyObject ¶
func (in *NetworkList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetworkPolicy ¶
type NetworkPolicy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NetworkPolicySpec `json:"spec,omitempty"` Status NetworkPolicyStatus `json:"status,omitempty"` }
NetworkPolicy is the Schema for the networkpolicies API
func (*NetworkPolicy) DeepCopy ¶
func (in *NetworkPolicy) DeepCopy() *NetworkPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicy.
func (*NetworkPolicy) DeepCopyInto ¶
func (in *NetworkPolicy) DeepCopyInto(out *NetworkPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkPolicy) DeepCopyObject ¶
func (in *NetworkPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetworkPolicyIngressRule ¶
type NetworkPolicyIngressRule struct { // ports is a list of ports which should be made accessible on the instances selected for // this rule. Each item in this list is combined using a logical OR. If this field is // empty or missing, this rule matches all ports (traffic not restricted by port). // If this field is present and contains at least one item, then this rule allows // traffic only if the traffic matches at least one port in the list. // // +kubebuilder:validation:Optional // +listType=atomic Ports []NetworkPolicyPort `json:"ports,omitempty"` // from is a list of sources which should be able to access the instances selected for this rule. // Items in this list are combined using a logical OR operation. If this field is // empty or missing, this rule matches all sources (traffic not restricted by // source). If this field is present and contains at least one item, this rule // allows traffic only if the traffic matches at least one item in the from list. // // +kubebuilder:validation:Optional // +listType=atomic From []NetworkPolicyPeer `json:"from,omitempty"` }
See k8s network policy types for inspiration here
func (*NetworkPolicyIngressRule) DeepCopy ¶
func (in *NetworkPolicyIngressRule) DeepCopy() *NetworkPolicyIngressRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyIngressRule.
func (*NetworkPolicyIngressRule) DeepCopyInto ¶
func (in *NetworkPolicyIngressRule) DeepCopyInto(out *NetworkPolicyIngressRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkPolicyList ¶
type NetworkPolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []NetworkPolicy `json:"items"` }
NetworkPolicyList contains a list of NetworkPolicy
func (*NetworkPolicyList) DeepCopy ¶
func (in *NetworkPolicyList) DeepCopy() *NetworkPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyList.
func (*NetworkPolicyList) DeepCopyInto ¶
func (in *NetworkPolicyList) DeepCopyInto(out *NetworkPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkPolicyList) DeepCopyObject ¶
func (in *NetworkPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetworkPolicyPeer ¶
type NetworkPolicyPeer struct { // ipBlock defines policy on a particular IPBlock. If this field is set then // neither of the other fields can be. // // +kubebuilder:validation:Optional IPBlock *IPBlock `json:"ipBlock,omitempty"` }
NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed
func (*NetworkPolicyPeer) DeepCopy ¶
func (in *NetworkPolicyPeer) DeepCopy() *NetworkPolicyPeer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPeer.
func (*NetworkPolicyPeer) DeepCopyInto ¶
func (in *NetworkPolicyPeer) DeepCopyInto(out *NetworkPolicyPeer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkPolicyPort ¶
type NetworkPolicyPort struct { // protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. // If not specified, this field defaults to TCP. // // +kubebuilder:validation:Optional Protocol *corev1.Protocol `json:"protocol,omitempty"` // port represents the port on the given protocol. This can either be a numerical or named // port on an instance. If this field is not provided, this matches all port names and // numbers. // If present, only traffic on the specified protocol AND port will be matched. // // +kubebuilder:validation:Optional Port *intstr.IntOrString `json:"port,omitempty"` // endPort indicates that the range of ports from port to endPort if set, inclusive, // should be allowed by the policy. This field cannot be defined if the port field // is not defined or if the port field is defined as a named (string) port. // The endPort must be equal or greater than port. // // +kubebuilder:validation:Optional EndPort *int32 `json:"endPort,omitempty"` }
NetworkPolicyPort describes a port to allow traffic on
func (*NetworkPolicyPort) DeepCopy ¶
func (in *NetworkPolicyPort) DeepCopy() *NetworkPolicyPort
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPort.
func (*NetworkPolicyPort) DeepCopyInto ¶
func (in *NetworkPolicyPort) DeepCopyInto(out *NetworkPolicyPort)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkPolicySpec ¶
type NetworkPolicySpec struct { }
NetworkPolicySpec defines the desired state of NetworkPolicy
func (*NetworkPolicySpec) DeepCopy ¶
func (in *NetworkPolicySpec) DeepCopy() *NetworkPolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicySpec.
func (*NetworkPolicySpec) DeepCopyInto ¶
func (in *NetworkPolicySpec) DeepCopyInto(out *NetworkPolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkPolicyStatus ¶
type NetworkPolicyStatus struct { }
NetworkPolicyStatus defines the observed state of NetworkPolicy
func (*NetworkPolicyStatus) DeepCopy ¶
func (in *NetworkPolicyStatus) DeepCopy() *NetworkPolicyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyStatus.
func (*NetworkPolicyStatus) DeepCopyInto ¶
func (in *NetworkPolicyStatus) DeepCopyInto(out *NetworkPolicyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkRef ¶
type NetworkRef struct { // The network namespace. // // Defaults to the namespace for the type the reference is embedded in. // // +kubebuilder:validation:Optional Namespace string `json:"namespace,omitempty"` // The network name // // +kubebuilder:validation:Required Name string `json:"name,omitempty"` }
func (*NetworkRef) DeepCopy ¶
func (in *NetworkRef) DeepCopy() *NetworkRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkRef.
func (*NetworkRef) DeepCopyInto ¶
func (in *NetworkRef) DeepCopyInto(out *NetworkRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkSpec ¶
type NetworkSpec struct { // IPAM settings for the network. // // +kubebuilder:validation:Required IPAM NetworkIPAM `json:"ipam,omitempty"` // IP Families to permit on a network. Defaults to IPv4. // // +kubebuilder:validation:Optional // +kubebuilder:default={IPv4} IPFamilies []IPFamily `json:"ipFamilies,omitempty"` // Network MTU. May be between 1300 and 8856. // // +kubebuilder:validation:Minimum=1300 // +kubebuilder:validation:Maximum=8856 // +kubebuilder:validation:Optional // +kubebuilder:default=1460 MTU int32 `json:"mtu,omitempty"` }
NetworkSpec defines the desired state of a Network
func (*NetworkSpec) DeepCopy ¶
func (in *NetworkSpec) DeepCopy() *NetworkSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkSpec.
func (*NetworkSpec) DeepCopyInto ¶
func (in *NetworkSpec) DeepCopyInto(out *NetworkSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkStatus ¶
type NetworkStatus struct { // Represents the observations of a network's current state. Conditions []metav1.Condition `json:"conditions,omitempty"` }
NetworkStatus defines the observed state of Network
func (*NetworkStatus) DeepCopy ¶
func (in *NetworkStatus) DeepCopy() *NetworkStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkStatus.
func (*NetworkStatus) DeepCopyInto ¶
func (in *NetworkStatus) DeepCopyInto(out *NetworkStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Subnet ¶
type Subnet struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SubnetSpec `json:"spec,omitempty"` Status SubnetStatus `json:"status,omitempty"` }
Subnet is the Schema for the subnets API
func (*Subnet) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subnet.
func (*Subnet) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Subnet) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SubnetClaim ¶
type SubnetClaim struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SubnetClaimSpec `json:"spec,omitempty"` Status SubnetClaimStatus `json:"status,omitempty"` }
SubnetClaim is the Schema for the subnetclaims API
func (*SubnetClaim) DeepCopy ¶
func (in *SubnetClaim) DeepCopy() *SubnetClaim
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetClaim.
func (*SubnetClaim) DeepCopyInto ¶
func (in *SubnetClaim) DeepCopyInto(out *SubnetClaim)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SubnetClaim) DeepCopyObject ¶
func (in *SubnetClaim) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SubnetClaimList ¶
type SubnetClaimList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SubnetClaim `json:"items"` }
SubnetClaimList contains a list of SubnetClaim
func (*SubnetClaimList) DeepCopy ¶
func (in *SubnetClaimList) DeepCopy() *SubnetClaimList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetClaimList.
func (*SubnetClaimList) DeepCopyInto ¶
func (in *SubnetClaimList) DeepCopyInto(out *SubnetClaimList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SubnetClaimList) DeepCopyObject ¶
func (in *SubnetClaimList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SubnetClaimSpec ¶
type SubnetClaimSpec struct { // The class of subnet required // // +kubebuilder:validation:Required SubnetClass string `json:"subnetClass"` // The network context to claim a subnet in // // +kubebuilder:validation:Required NetworkContext LocalNetworkContextRef `json:"networkContext"` // The location which a subnet claim is associated with // // +kubebuilder:validation:Required Location LocationReference `json:"location,omitempty"` // The IP family of a subnet claim // // +kubebuilder:validation:Required IPFamily IPFamily `json:"ipFamily"` // The start address of a subnet claim // // +kubebuilder:validation:Optional StartAddress *string `json:"startAddress,omitempty"` // The prefix length of a subnet claim // // +kubebuilder:validation:Optional PrefixLength *int32 `json:"prefixLength,omitempty"` }
SubnetClaimSpec defines the desired state of SubnetClaim
func (*SubnetClaimSpec) DeepCopy ¶
func (in *SubnetClaimSpec) DeepCopy() *SubnetClaimSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetClaimSpec.
func (*SubnetClaimSpec) DeepCopyInto ¶
func (in *SubnetClaimSpec) DeepCopyInto(out *SubnetClaimSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubnetClaimStatus ¶
type SubnetClaimStatus struct { // The subnet which has been claimed from SubnetRef *LocalSubnetReference `json:"subnetRef,omitempty"` // The start address of a subnet claim StartAddress *string `json:"startAddress,omitempty"` // The prefix length of a subnet claim PrefixLength *int32 `json:"prefixLength,omitempty"` // Represents the observations of a subnet claim's current state. Conditions []metav1.Condition `json:"conditions,omitempty"` }
SubnetClaimStatus defines the observed state of SubnetClaim
func (*SubnetClaimStatus) DeepCopy ¶
func (in *SubnetClaimStatus) DeepCopy() *SubnetClaimStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetClaimStatus.
func (*SubnetClaimStatus) DeepCopyInto ¶
func (in *SubnetClaimStatus) DeepCopyInto(out *SubnetClaimStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubnetList ¶
type SubnetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Subnet `json:"items"` }
SubnetList contains a list of Subnet
func (*SubnetList) DeepCopy ¶
func (in *SubnetList) DeepCopy() *SubnetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetList.
func (*SubnetList) DeepCopyInto ¶
func (in *SubnetList) DeepCopyInto(out *SubnetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SubnetList) DeepCopyObject ¶
func (in *SubnetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SubnetSpec ¶
type SubnetSpec struct { // The class of subnet // // +kubebuilder:validation:Required SubnetClass string `json:"subnetClass"` // A subnet's network context // // +kubebuilder:validation:Required NetworkContext LocalNetworkContextRef `json:"networkContext"` // The location which a subnet is associated with // // +kubebuilder:validation:Required Location LocationReference `json:"location,omitempty"` // The IP family of a subnet // // +kubebuilder:validation:Required IPFamily IPFamily `json:"ipFamily"` // The start address of a subnet // // +kubebuilder:validation:Required StartAddress string `json:"startAddress"` // The prefix length of a subnet // // +kubebuilder:validation:Required PrefixLength int32 `json:"prefixLength"` }
SubnetSpec defines the desired state of Subnet
func (*SubnetSpec) DeepCopy ¶
func (in *SubnetSpec) DeepCopy() *SubnetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetSpec.
func (*SubnetSpec) DeepCopyInto ¶
func (in *SubnetSpec) DeepCopyInto(out *SubnetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubnetStatus ¶
type SubnetStatus struct { // The start address of a subnet StartAddress *string `json:"startAddress,omitempty"` // The prefix length of a subnet PrefixLength *int32 `json:"prefixLength,omitempty"` // Represents the observations of a subnet's current state. Conditions []metav1.Condition `json:"conditions,omitempty"` }
SubnetStatus defines the observed state of a Subnet
func (*SubnetStatus) DeepCopy ¶
func (in *SubnetStatus) DeepCopy() *SubnetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetStatus.
func (*SubnetStatus) DeepCopyInto ¶
func (in *SubnetStatus) DeepCopyInto(out *SubnetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.