|
| 1 | +--- |
| 2 | +apiVersion: apiextensions.k8s.io/v1 |
| 3 | +kind: CustomResourceDefinition |
| 4 | +metadata: |
| 5 | + annotations: |
| 6 | + controller-gen.kubebuilder.io/version: v0.13.0 |
| 7 | + name: clusterresourceusages.kwok.x-k8s.io |
| 8 | +spec: |
| 9 | + group: kwok.x-k8s.io |
| 10 | + names: |
| 11 | + kind: ClusterResourceUsage |
| 12 | + listKind: ClusterResourceUsageList |
| 13 | + plural: clusterresourceusages |
| 14 | + singular: clusterresourceusage |
| 15 | + scope: Cluster |
| 16 | + versions: |
| 17 | + - name: v1alpha1 |
| 18 | + schema: |
| 19 | + openAPIV3Schema: |
| 20 | + description: ClusterResourceUsage provides cluster-wide resource usage. |
| 21 | + properties: |
| 22 | + apiVersion: |
| 23 | + description: 'APIVersion defines the versioned schema of this representation |
| 24 | + of an object. Servers should convert recognized schemas to the latest |
| 25 | + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' |
| 26 | + type: string |
| 27 | + kind: |
| 28 | + description: 'Kind is a string value representing the REST resource this |
| 29 | + object represents. Servers may infer this from the endpoint the client |
| 30 | + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' |
| 31 | + type: string |
| 32 | + metadata: |
| 33 | + type: object |
| 34 | + spec: |
| 35 | + description: Spec holds spec for cluster resource usage. |
| 36 | + properties: |
| 37 | + selector: |
| 38 | + description: Selector is a selector to filter pods to configure. |
| 39 | + properties: |
| 40 | + matchNames: |
| 41 | + description: MatchNames is a list of names to match. if not set, |
| 42 | + all names will be matched. |
| 43 | + items: |
| 44 | + type: string |
| 45 | + type: array |
| 46 | + matchNamespaces: |
| 47 | + description: MatchNamespaces is a list of namespaces to match. |
| 48 | + if not set, all namespaces will be matched. |
| 49 | + items: |
| 50 | + type: string |
| 51 | + type: array |
| 52 | + type: object |
| 53 | + usages: |
| 54 | + description: Usages is a list of resource usage for the pod. |
| 55 | + items: |
| 56 | + description: ResourceUsageContainer holds spec for resource usage |
| 57 | + container. |
| 58 | + properties: |
| 59 | + containers: |
| 60 | + description: Containers is list of container names. |
| 61 | + items: |
| 62 | + type: string |
| 63 | + type: array |
| 64 | + usage: |
| 65 | + additionalProperties: |
| 66 | + description: ResourceUsageValue holds value for resource usage. |
| 67 | + properties: |
| 68 | + expression: |
| 69 | + description: Expression is the expression for resource |
| 70 | + usage. |
| 71 | + type: string |
| 72 | + value: |
| 73 | + anyOf: |
| 74 | + - type: integer |
| 75 | + - type: string |
| 76 | + description: Value is the value for resource usage. |
| 77 | + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ |
| 78 | + x-kubernetes-int-or-string: true |
| 79 | + type: object |
| 80 | + description: Usage is a list of resource usage for the container. |
| 81 | + type: object |
| 82 | + type: object |
| 83 | + type: array |
| 84 | + type: object |
| 85 | + status: |
| 86 | + description: Status holds status for cluster resource usage |
| 87 | + properties: |
| 88 | + conditions: |
| 89 | + description: Conditions holds conditions for cluster resource usage |
| 90 | + items: |
| 91 | + description: Condition contains details for one aspect of the current |
| 92 | + state of this API Resource. |
| 93 | + properties: |
| 94 | + lastTransitionTime: |
| 95 | + description: LastTransitionTime is the last time the condition |
| 96 | + transitioned from one status to another. This should be when |
| 97 | + the underlying condition changed. If that is not known, then |
| 98 | + using the time when the API field changed is acceptable. |
| 99 | + format: date-time |
| 100 | + type: string |
| 101 | + message: |
| 102 | + description: Message is a human readable message indicating |
| 103 | + details about the transition. This may be an empty string. |
| 104 | + maxLength: 32768 |
| 105 | + type: string |
| 106 | + reason: |
| 107 | + description: Reason contains a programmatic identifier indicating |
| 108 | + the reason for the condition's last transition. Producers |
| 109 | + of specific condition types may define expected values and |
| 110 | + meanings for this field, and whether the values are considered |
| 111 | + a guaranteed API. The value should be a CamelCase string. |
| 112 | + This field may not be empty. |
| 113 | + maxLength: 1024 |
| 114 | + minLength: 1 |
| 115 | + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ |
| 116 | + type: string |
| 117 | + status: |
| 118 | + description: Status of the condition |
| 119 | + type: string |
| 120 | + type: |
| 121 | + description: Type of condition in CamelCase or in foo.example.com/CamelCase. |
| 122 | + Many .condition.type values are consistent across resources |
| 123 | + like Available, but because arbitrary conditions can be useful |
| 124 | + (see .node.status.conditions), the ability to deconflict is |
| 125 | + important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) |
| 126 | + maxLength: 316 |
| 127 | + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ |
| 128 | + type: string |
| 129 | + required: |
| 130 | + - lastTransitionTime |
| 131 | + - message |
| 132 | + - reason |
| 133 | + - status |
| 134 | + - type |
| 135 | + type: object |
| 136 | + type: array |
| 137 | + x-kubernetes-list-map-keys: |
| 138 | + - type |
| 139 | + x-kubernetes-list-type: map |
| 140 | + type: object |
| 141 | + required: |
| 142 | + - metadata |
| 143 | + - spec |
| 144 | + type: object |
| 145 | + served: true |
| 146 | + storage: true |
| 147 | + subresources: |
| 148 | + status: {} |
0 commit comments