|
| 1 | +apiVersion: apiextensions.k8s.io/v1 |
| 2 | +kind: CustomResourceDefinition |
| 3 | +metadata: |
| 4 | + annotations: |
| 5 | + controller-gen.kubebuilder.io/version: (devel) |
| 6 | + creationTimestamp: null |
| 7 | + name: clusterclaims.hive.openshift.io |
| 8 | +spec: |
| 9 | + group: hive.openshift.io |
| 10 | + names: |
| 11 | + kind: ClusterClaim |
| 12 | + listKind: ClusterClaimList |
| 13 | + plural: clusterclaims |
| 14 | + singular: clusterclaim |
| 15 | + scope: Namespaced |
| 16 | + versions: |
| 17 | + - additionalPrinterColumns: |
| 18 | + - jsonPath: .spec.clusterPoolName |
| 19 | + name: Pool |
| 20 | + type: string |
| 21 | + - jsonPath: .status.conditions[?(@.type=='Pending')].reason |
| 22 | + name: Pending |
| 23 | + type: string |
| 24 | + - jsonPath: .spec.namespace |
| 25 | + name: ClusterNamespace |
| 26 | + type: string |
| 27 | + - jsonPath: .status.conditions[?(@.type=='ClusterRunning')].reason |
| 28 | + name: ClusterRunning |
| 29 | + type: string |
| 30 | + - jsonPath: .metadata.creationTimestamp |
| 31 | + name: Age |
| 32 | + type: date |
| 33 | + name: v1 |
| 34 | + schema: |
| 35 | + openAPIV3Schema: |
| 36 | + description: ClusterClaim represents a claim to a cluster from a cluster pool. |
| 37 | + properties: |
| 38 | + apiVersion: |
| 39 | + description: 'APIVersion defines the versioned schema of this representation |
| 40 | + of an object. Servers should convert recognized schemas to the latest |
| 41 | + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' |
| 42 | + type: string |
| 43 | + kind: |
| 44 | + description: 'Kind is a string value representing the REST resource this |
| 45 | + object represents. Servers may infer this from the endpoint the client |
| 46 | + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' |
| 47 | + type: string |
| 48 | + metadata: |
| 49 | + type: object |
| 50 | + spec: |
| 51 | + description: ClusterClaimSpec defines the desired state of the ClusterClaim. |
| 52 | + properties: |
| 53 | + clusterPoolName: |
| 54 | + description: ClusterPoolName is the name of the cluster pool from |
| 55 | + which to claim a cluster. |
| 56 | + type: string |
| 57 | + lifetime: |
| 58 | + description: 'Lifetime is the maximum lifetime of the claim after |
| 59 | + it is assigned a cluster. If the claim still exists when the lifetime |
| 60 | + has elapsed, the claim will be deleted by Hive. This is a Duration |
| 61 | + value; see https://pkg.go.dev/time#ParseDuration for accepted formats. |
| 62 | + Note: due to discrepancies in validation vs parsing, we use a Pattern |
| 63 | + instead of `Format=duration`. See https://bugzilla.redhat.com/show_bug.cgi?id=2050332 |
| 64 | + https://github.com/kubernetes/apimachinery/issues/131 https://github.com/kubernetes/apiextensions-apiserver/issues/56' |
| 65 | + pattern: ^([0-9]+(\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$ |
| 66 | + type: string |
| 67 | + namespace: |
| 68 | + description: Namespace is the namespace containing the ClusterDeployment |
| 69 | + (name will match the namespace) of the claimed cluster. This field |
| 70 | + will be set as soon as a suitable cluster can be found, however |
| 71 | + that cluster may still be resuming and not yet ready for use. Wait |
| 72 | + for the ClusterRunning condition to be true to avoid this issue. |
| 73 | + type: string |
| 74 | + subjects: |
| 75 | + description: Subjects hold references to which to authorize access |
| 76 | + to the claimed cluster. |
| 77 | + items: |
| 78 | + description: Subject contains a reference to the object or user |
| 79 | + identities a role binding applies to. This can either hold a |
| 80 | + direct API object reference, or a value for non-objects such as |
| 81 | + user and group names. |
| 82 | + properties: |
| 83 | + apiGroup: |
| 84 | + description: APIGroup holds the API group of the referenced |
| 85 | + subject. Defaults to "" for ServiceAccount subjects. Defaults |
| 86 | + to "rbac.authorization.k8s.io" for User and Group subjects. |
| 87 | + type: string |
| 88 | + kind: |
| 89 | + description: Kind of object being referenced. Values defined |
| 90 | + by this API group are "User", "Group", and "ServiceAccount". |
| 91 | + If the Authorizer does not recognized the kind value, the |
| 92 | + Authorizer should report an error. |
| 93 | + type: string |
| 94 | + name: |
| 95 | + description: Name of the object being referenced. |
| 96 | + type: string |
| 97 | + namespace: |
| 98 | + description: Namespace of the referenced object. If the object |
| 99 | + kind is non-namespace, such as "User" or "Group", and this |
| 100 | + value is not empty the Authorizer should report an error. |
| 101 | + type: string |
| 102 | + required: |
| 103 | + - kind |
| 104 | + - name |
| 105 | + type: object |
| 106 | + x-kubernetes-map-type: atomic |
| 107 | + type: array |
| 108 | + required: |
| 109 | + - clusterPoolName |
| 110 | + type: object |
| 111 | + status: |
| 112 | + description: ClusterClaimStatus defines the observed state of ClusterClaim. |
| 113 | + properties: |
| 114 | + conditions: |
| 115 | + description: Conditions includes more detailed status for the cluster |
| 116 | + pool. |
| 117 | + items: |
| 118 | + description: ClusterClaimCondition contains details for the current |
| 119 | + condition of a cluster claim. |
| 120 | + properties: |
| 121 | + lastProbeTime: |
| 122 | + description: LastProbeTime is the last time we probed the condition. |
| 123 | + format: date-time |
| 124 | + type: string |
| 125 | + lastTransitionTime: |
| 126 | + description: LastTransitionTime is the last time the condition |
| 127 | + transitioned from one status to another. |
| 128 | + format: date-time |
| 129 | + type: string |
| 130 | + message: |
| 131 | + description: Message is a human-readable message indicating |
| 132 | + details about last transition. |
| 133 | + type: string |
| 134 | + reason: |
| 135 | + description: Reason is a unique, one-word, CamelCase reason |
| 136 | + for the condition's last transition. |
| 137 | + type: string |
| 138 | + status: |
| 139 | + description: Status is the status of the condition. |
| 140 | + type: string |
| 141 | + type: |
| 142 | + description: Type is the type of the condition. |
| 143 | + type: string |
| 144 | + required: |
| 145 | + - status |
| 146 | + - type |
| 147 | + type: object |
| 148 | + type: array |
| 149 | + lifetime: |
| 150 | + description: Lifetime is the maximum lifetime of the claim after it |
| 151 | + is assigned a cluster. If the claim still exists when the lifetime |
| 152 | + has elapsed, the claim will be deleted by Hive. |
| 153 | + type: string |
| 154 | + type: object |
| 155 | + required: |
| 156 | + - spec |
| 157 | + type: object |
| 158 | + served: true |
| 159 | + storage: true |
| 160 | + subresources: |
| 161 | + status: {} |
0 commit comments