|
| 1 | +--- |
| 2 | +apiVersion: apiextensions.k8s.io/v1 |
| 3 | +kind: CustomResourceDefinition |
| 4 | +metadata: |
| 5 | + annotations: |
| 6 | + controller-gen.kubebuilder.io/version: v0.15.0 |
| 7 | + name: approvalrequests.placement.kubernetes-fleet.io |
| 8 | +spec: |
| 9 | + group: placement.kubernetes-fleet.io |
| 10 | + names: |
| 11 | + categories: |
| 12 | + - fleet |
| 13 | + - fleet-placement |
| 14 | + kind: ApprovalRequest |
| 15 | + listKind: ApprovalRequestList |
| 16 | + plural: approvalrequests |
| 17 | + singular: approvalrequest |
| 18 | + scope: Namespaced |
| 19 | + versions: |
| 20 | + - name: v1alpha1 |
| 21 | + schema: |
| 22 | + openAPIV3Schema: |
| 23 | + description: |- |
| 24 | + ApprovalRequest defines a request for the approval from the user. |
| 25 | + The request object MUST have the following labels: |
| 26 | + - `TargetUpdateRun` which points to the update run that this approval request is for. |
| 27 | + - `TargetStage` which is the name of the stage that this approval request is for. |
| 28 | + - `IsLatestUpdateRunApproval` which indicates whether this approval request is the latest one related to this update run. |
| 29 | + properties: |
| 30 | + apiVersion: |
| 31 | + description: |- |
| 32 | + APIVersion defines the versioned schema of this representation of an object. |
| 33 | + Servers should convert recognized schemas to the latest internal value, and |
| 34 | + may reject unrecognized values. |
| 35 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
| 36 | + type: string |
| 37 | + kind: |
| 38 | + description: |- |
| 39 | + Kind is a string value representing the REST resource this object represents. |
| 40 | + Servers may infer this from the endpoint the client submits requests to. |
| 41 | + Cannot be updated. |
| 42 | + In CamelCase. |
| 43 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
| 44 | + type: string |
| 45 | + metadata: |
| 46 | + type: object |
| 47 | + spec: |
| 48 | + description: The desired state of ApprovalRequest. |
| 49 | + properties: |
| 50 | + parentStageRollout: |
| 51 | + description: The name of the staged update run that this approval |
| 52 | + request is for. |
| 53 | + type: string |
| 54 | + targetStage: |
| 55 | + description: The name of the update stage that this approval request |
| 56 | + is for. |
| 57 | + type: string |
| 58 | + required: |
| 59 | + - parentStageRollout |
| 60 | + - targetStage |
| 61 | + type: object |
| 62 | + x-kubernetes-validations: |
| 63 | + - message: The spec field is immutable |
| 64 | + rule: self == oldSelf |
| 65 | + status: |
| 66 | + description: The desired state of ApprovalRequest. |
| 67 | + properties: |
| 68 | + conditions: |
| 69 | + description: |- |
| 70 | + Conditions is an array of current observed conditions for the specific type of post update task. |
| 71 | + Known conditions are "Approved", and "ApprovalAccepted". |
| 72 | + items: |
| 73 | + description: "Condition contains details for one aspect of the current |
| 74 | + state of this API Resource.\n---\nThis struct is intended for |
| 75 | + direct use as an array at the field path .status.conditions. For |
| 76 | + example,\n\n\n\ttype FooStatus struct{\n\t // Represents the |
| 77 | + observations of a foo's current state.\n\t // Known .status.conditions.type |
| 78 | + are: \"Available\", \"Progressing\", and \"Degraded\"\n\t // |
| 79 | + +patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t |
| 80 | + \ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\" |
| 81 | + patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t |
| 82 | + \ // other fields\n\t}" |
| 83 | + properties: |
| 84 | + lastTransitionTime: |
| 85 | + description: |- |
| 86 | + lastTransitionTime is the last time the condition transitioned from one status to another. |
| 87 | + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. |
| 88 | + format: date-time |
| 89 | + type: string |
| 90 | + message: |
| 91 | + description: |- |
| 92 | + message is a human readable message indicating details about the transition. |
| 93 | + This may be an empty string. |
| 94 | + maxLength: 32768 |
| 95 | + type: string |
| 96 | + observedGeneration: |
| 97 | + description: |- |
| 98 | + observedGeneration represents the .metadata.generation that the condition was set based upon. |
| 99 | + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date |
| 100 | + with respect to the current state of the instance. |
| 101 | + format: int64 |
| 102 | + minimum: 0 |
| 103 | + type: integer |
| 104 | + reason: |
| 105 | + description: |- |
| 106 | + reason contains a programmatic identifier indicating the reason for the condition's last transition. |
| 107 | + Producers of specific condition types may define expected values and meanings for this field, |
| 108 | + and whether the values are considered a guaranteed API. |
| 109 | + The value should be a CamelCase string. |
| 110 | + This field may not be empty. |
| 111 | + maxLength: 1024 |
| 112 | + minLength: 1 |
| 113 | + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ |
| 114 | + type: string |
| 115 | + status: |
| 116 | + description: status of the condition, one of True, False, Unknown. |
| 117 | + enum: |
| 118 | + - "True" |
| 119 | + - "False" |
| 120 | + - Unknown |
| 121 | + type: string |
| 122 | + type: |
| 123 | + description: |- |
| 124 | + type of condition in CamelCase or in foo.example.com/CamelCase. |
| 125 | + --- |
| 126 | + Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be |
| 127 | + useful (see .node.status.conditions), the ability to deconflict is important. |
| 128 | + The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) |
| 129 | + maxLength: 316 |
| 130 | + 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])$ |
| 131 | + type: string |
| 132 | + required: |
| 133 | + - lastTransitionTime |
| 134 | + - message |
| 135 | + - reason |
| 136 | + - status |
| 137 | + - type |
| 138 | + type: object |
| 139 | + type: array |
| 140 | + x-kubernetes-list-map-keys: |
| 141 | + - type |
| 142 | + x-kubernetes-list-type: map |
| 143 | + type: object |
| 144 | + required: |
| 145 | + - spec |
| 146 | + type: object |
| 147 | + served: true |
| 148 | + storage: true |
| 149 | + subresources: |
| 150 | + status: {} |
0 commit comments