github.com/rancher/types@v0.0.0-20220328215343-4370ff10ecd5/apis/cluster.cattle.io/v3/schema/types.go (about)

     1  package schema
     2  
     3  type NodeInfo struct {
     4  	CPU        CPUInfo
     5  	Memory     MemoryInfo
     6  	OS         OSInfo
     7  	Kubernetes KubernetesInfo
     8  }
     9  
    10  type CPUInfo struct {
    11  	Count int64
    12  }
    13  
    14  type MemoryInfo struct {
    15  	MemTotalKiB int64
    16  }
    17  
    18  type OSInfo struct {
    19  	DockerVersion   string
    20  	KernelVersion   string
    21  	OperatingSystem string
    22  }
    23  
    24  type KubernetesInfo struct {
    25  	KubeletVersion   string
    26  	KubeProxyVersion string
    27  }
    28  
    29  type NamespaceResourceQuota struct {
    30  	Limit ResourceQuotaLimit `json:"limit,omitempty"`
    31  }
    32  
    33  type ResourceQuotaLimit struct {
    34  	Pods                   string `json:"pods,omitempty"`
    35  	Services               string `json:"services,omitempty"`
    36  	ReplicationControllers string `json:"replicationControllers,omitempty"`
    37  	Secrets                string `json:"secrets,omitempty"`
    38  	ConfigMaps             string `json:"configMaps,omitempty"`
    39  	PersistentVolumeClaims string `json:"persistentVolumeClaims,omitempty"`
    40  	ServicesNodePorts      string `json:"servicesNodePorts,omitempty"`
    41  	ServicesLoadBalancers  string `json:"servicesLoadBalancers,omitempty"`
    42  	RequestsCPU            string `json:"requestsCpu,omitempty"`
    43  	RequestsMemory         string `json:"requestsMemory,omitempty"`
    44  	RequestsStorage        string `json:"requestsStorage,omitempty"`
    45  	LimitsCPU              string `json:"limitsCpu,omitempty"`
    46  	LimitsMemory           string `json:"limitsMemory,omitempty"`
    47  }
    48  
    49  type NamespaceMove struct {
    50  	ProjectID string `json:"projectId,omitempty"`
    51  }
    52  
    53  type ContainerResourceLimit struct {
    54  	RequestsCPU    string `json:"requestsCpu,omitempty"`
    55  	RequestsMemory string `json:"requestsMemory,omitempty"`
    56  	LimitsCPU      string `json:"limitsCpu,omitempty"`
    57  	LimitsMemory   string `json:"limitsMemory,omitempty"`
    58  }