Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the tenancy v1alpha1 API group +kubebuilder:object:generate=true +groupName=tenancy.platform.cnr.vmware.com
Copyright 2006-2021 VMware, Inc. SPDX-License-Identifier: MIT
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "tenancy.platform.cnr.vmware.com", Version: "v1alpha1"} // 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 Condition ¶
type Condition struct { Type string `json:"type"` Status string `json:"status"` Reason string `json:"reason"` Message string `json:"message"` }
Condition sets the status.conditions field on the object
type LimitRange ¶
type LimitRange struct { DefaultCPULimit string `json:"defaultCPULimit"` DefaultMemoryLimit string `json:"defaultMemoryLimit"` DefaultCPURequest string `json:"defaultCPURequest"` DefaultMemoryRequest string `json:"defaultMemoryRequest"` MaxCPULimit string `json:"maxCPULimit"` MaxMemoryLimit string `json:"maxMemoryLimit"` }
LimitRange defines an individual limit range which belongs to a TanzuNamespace parent object
func (*LimitRange) DeepCopy ¶
func (in *LimitRange) DeepCopy() *LimitRange
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LimitRange.
func (*LimitRange) DeepCopyInto ¶
func (in *LimitRange) DeepCopyInto(out *LimitRange)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkPolicy ¶
type NetworkPolicy struct { TargetPodLabels map[string]string `json:"targetPodLabels"` IngressNamespaceLabels map[string]string `json:"ingressNamespaceLabels"` IngressPodLabels map[string]string `json:"ingressPodLabels"` IngressTCPPorts []int `json:"ingressTCPPorts"` IngressUDPPorts []int `json:"ingressUDPPorts"` EgressNamespaceLabels map[string]string `json:"egressNamespaceLabels"` EgressPodLabels map[string]string `json:"egressPodLabels"` EgressTCPPorts []int `json:"egressTCPPorts"` EgressUDPPorts []int `json:"egressUDPPorts"` }
NetworkPolicy defines an individual network policy which belongs to an array of NetworkPolicies
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.
type NetworkPort ¶
NetworkPort defines an individual network port
func (*NetworkPort) DeepCopy ¶
func (in *NetworkPort) DeepCopy() *NetworkPort
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPort.
func (*NetworkPort) DeepCopyInto ¶
func (in *NetworkPort) DeepCopyInto(out *NetworkPort)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RBAC ¶
type RBAC struct { Create bool `json:"create"` Type string `json:"type"` User string `json:"user"` Role string `json:"role"` RoleBinding string `json:"roleBinding"` Permissions string `json:"permissions"` Namespace string `json:"namespace"` }
RBAC defines default RBAC settings
func (*RBAC) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RBAC.
func (*RBAC) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceQuota ¶
type ResourceQuota struct { RequestsCPU string `json:"requestsCPU"` RequestsMemory string `json:"requestsMemory"` LimitsCPU string `json:"limitsCPU"` LimitsMemory string `json:"limitsMemory"` }
ResourceQuota defines an individual resource quota which belongs to a TanzuNamespace parent object
func (*ResourceQuota) DeepCopy ¶
func (in *ResourceQuota) DeepCopy() *ResourceQuota
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceQuota.
func (*ResourceQuota) DeepCopyInto ¶
func (in *ResourceQuota) DeepCopyInto(out *ResourceQuota)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TanzuNamespace ¶
type TanzuNamespace struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TanzuNamespaceSpec `json:"spec,omitempty"` Status TanzuNamespaceStatus `json:"status,omitempty"` }
TanzuNamespace is the Schema for the tanzunamespaces API
func (*TanzuNamespace) DeepCopy ¶
func (in *TanzuNamespace) DeepCopy() *TanzuNamespace
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TanzuNamespace.
func (*TanzuNamespace) DeepCopyInto ¶
func (in *TanzuNamespace) DeepCopyInto(out *TanzuNamespace)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TanzuNamespace) DeepCopyObject ¶
func (in *TanzuNamespace) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TanzuNamespaceList ¶
type TanzuNamespaceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []TanzuNamespace `json:"items"` }
TanzuNamespaceList contains a list of TanzuNamespace
func (*TanzuNamespaceList) DeepCopy ¶
func (in *TanzuNamespaceList) DeepCopy() *TanzuNamespaceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TanzuNamespaceList.
func (*TanzuNamespaceList) DeepCopyInto ¶
func (in *TanzuNamespaceList) DeepCopyInto(out *TanzuNamespaceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TanzuNamespaceList) DeepCopyObject ¶
func (in *TanzuNamespaceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TanzuNamespaceSpec ¶
type TanzuNamespaceSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "make" to regenerate code after modifying this file // +kubebuilder:validation:Optional Name string `json:"name"` // // // BACKWARDS COMPATIBILITY ONLY // the below is for backwards compatibility only, please use Name // // // +kubebuilder:validation:Optional TanzuNamespaceName string `json:"tanzuNamespaceName"` // +kubebuilder:default={} // +kubebuilder:validation:Optional LimitRange LimitRange `json:"limitRange"` // +kubebuilder:default="125m" // +kubebuilder:validation:Optional TanzuLimitRangeDefaultCpuLimit string `json:"tanzuLimitRangeDefaultCpuLimit"` // +kubebuilder:default="64Mi" // +kubebuilder:validation:Optional TanzuLimitRangeDefaultMemoryLimit string `json:"tanzuLimitRangeDefaultMemoryLimit"` // +kubebuilder:default="125m" // +kubebuilder:validation:Optional TanzuLimitRangeDefaultCpuRequest string `json:"tanzuLimitRangeDefaultCpuRequest"` // +kubebuilder:default="64Mi" // +kubebuilder:validation:Optional TanzuLimitRangeDefaultMemoryRequest string `json:"tanzuLimitRangeDefaultMemoryRequest"` // +kubebuilder:default="1000m" // +kubebuilder:validation:Optional TanzuLimitRangeMaxCpuLimit string `json:"tanzuLimitRangeMaxCpuLimit"` // +kubebuilder:default="2Gi" // +kubebuilder:validation:Optional TanzuLimitRangeMaxMemoryLimit string `json:"tanzuLimitRangeMaxMemoryLimit"` // +kubebuilder:default="2000m" // +kubebuilder:validation:Optional TanzuResourceQuotaCpuRequests string `json:"tanzuResourceQuotaCpuRequests"` // +kubebuilder:default="4Gi" // +kubebuilder:validation:Optional TanzuResourceQuotaMemoryRequests string `json:"tanzuResourceQuotaMemoryRequests"` // +kubebuilder:default="2000m" // +kubebuilder:validation:Optional TanzuResourceQuotaCpuLimits string `json:"tanzuResourceQuotaCpuLimits"` // +kubebuilder:default="4Gi" // +kubebuilder:validation:Optional TanzuResourceQuotaMemoryLimits string `json:"tanzuResourceQuotaMemoryLimits"` // +kubebuilder:default={} // +kubebuilder:validation:Optional ResourceQuota ResourceQuota `json:"resourceQuota"` // +kubebuilder:default=map[string]string // +kubebuilder:validation:Optional NetworkPolicies []NetworkPolicy `json:"networkPolicies"` // +kubebuilder:default={} // +kubebuilder:validation:Optional RBAC []RBAC `json:"rbac"` }
TanzuNamespaceSpec defines the desired state of TanzuNamespace
func (*TanzuNamespaceSpec) DeepCopy ¶
func (in *TanzuNamespaceSpec) DeepCopy() *TanzuNamespaceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TanzuNamespaceSpec.
func (*TanzuNamespaceSpec) DeepCopyInto ¶
func (in *TanzuNamespaceSpec) DeepCopyInto(out *TanzuNamespaceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TanzuNamespaceStatus ¶
type TanzuNamespaceStatus struct { Created bool `json:"created,omitempty"` Conditions []Condition `json:"conditions,omitempty"` }
TanzuNamespaceStatus defines the observed state of TanzuNamespace
func (*TanzuNamespaceStatus) DeepCopy ¶
func (in *TanzuNamespaceStatus) DeepCopy() *TanzuNamespaceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TanzuNamespaceStatus.
func (*TanzuNamespaceStatus) DeepCopyInto ¶
func (in *TanzuNamespaceStatus) DeepCopyInto(out *TanzuNamespaceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.