|
| 1 | +apiVersion: apiextensions.k8s.io/v1 # Hack because controller-gen complains if we don't have this |
| 2 | +name: "PacemakerStatus" |
| 3 | +crdName: pacemakerstatuses.tnf.etcd.openshift.io |
| 4 | +featureGates: |
| 5 | +- DualReplica |
| 6 | +tests: |
| 7 | + onCreate: |
| 8 | + - name: Should be able to create a minimal PacemakerStatus |
| 9 | + initial: | |
| 10 | + apiVersion: tnf.etcd.openshift.io/v1alpha1 |
| 11 | + kind: PacemakerStatus |
| 12 | + metadata: |
| 13 | + name: cluster |
| 14 | + spec: {} |
| 15 | + expected: | |
| 16 | + apiVersion: tnf.etcd.openshift.io/v1alpha1 |
| 17 | + kind: PacemakerStatus |
| 18 | + metadata: |
| 19 | + name: cluster |
| 20 | + spec: {} |
| 21 | +--- |
| 22 | +apiVersion: apiextensions.k8s.io/v1 |
| 23 | +kind: CustomResourceDefinition |
| 24 | +metadata: |
| 25 | + annotations: |
| 26 | + api-approved.openshift.io: https://github.com/openshift/api/pull/TBD |
| 27 | + include.release.openshift.io/ibm-cloud-managed: "true" |
| 28 | + include.release.openshift.io/self-managed-high-availability: "true" |
| 29 | + release.openshift.io/feature-set: DualReplica |
| 30 | + name: pacemakerstatuses.tnf.etcd.openshift.io |
| 31 | +spec: |
| 32 | + group: tnf.etcd.openshift.io |
| 33 | + names: |
| 34 | + kind: PacemakerStatus |
| 35 | + listKind: PacemakerStatusList |
| 36 | + plural: pacemakerstatuses |
| 37 | + singular: pacemakerstatus |
| 38 | + scope: Cluster |
| 39 | + versions: |
| 40 | + - name: v1alpha1 |
| 41 | + schema: |
| 42 | + openAPIV3Schema: |
| 43 | + description: 'PacemakerStatus represents the current state of the Pacemaker cluster as reported by the pcs status command' |
| 44 | + type: object |
| 45 | + properties: |
| 46 | + apiVersion: |
| 47 | + description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' |
| 48 | + type: string |
| 49 | + kind: |
| 50 | + description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' |
| 51 | + type: string |
| 52 | + metadata: |
| 53 | + type: object |
| 54 | + spec: |
| 55 | + description: spec is reserved for future use but is currently unused. |
| 56 | + type: object |
| 57 | + properties: |
| 58 | + nodeName: |
| 59 | + description: Reserved for future use |
| 60 | + type: string |
| 61 | + status: |
| 62 | + description: status contains the actual pacemaker cluster status information collected from the cluster. |
| 63 | + type: object |
| 64 | + properties: |
| 65 | + collectionError: |
| 66 | + description: collectionError contains any error encountered while collecting status |
| 67 | + type: string |
| 68 | + fencingHistory: |
| 69 | + description: fencingHistory provides recent fencing events |
| 70 | + type: array |
| 71 | + items: |
| 72 | + type: object |
| 73 | + required: |
| 74 | + - action |
| 75 | + - status |
| 76 | + - target |
| 77 | + properties: |
| 78 | + action: |
| 79 | + description: action is the fencing action performed (e.g., "reboot", "off", "on") |
| 80 | + type: string |
| 81 | + completed: |
| 82 | + description: completed is the timestamp when the fencing completed |
| 83 | + type: string |
| 84 | + format: date-time |
| 85 | + status: |
| 86 | + description: status is the status of the fencing operation (e.g., "success", "failed") |
| 87 | + type: string |
| 88 | + target: |
| 89 | + description: target is the node that was fenced |
| 90 | + type: string |
| 91 | + lastUpdated: |
| 92 | + description: lastUpdated is the timestamp when this status was last updated |
| 93 | + type: string |
| 94 | + format: date-time |
| 95 | + nodeHistory: |
| 96 | + description: nodeHistory provides recent operation history for troubleshooting |
| 97 | + type: array |
| 98 | + items: |
| 99 | + type: object |
| 100 | + required: |
| 101 | + - node |
| 102 | + - operation |
| 103 | + - rc |
| 104 | + - resource |
| 105 | + properties: |
| 106 | + lastRCChange: |
| 107 | + description: lastRCChange is the timestamp when the RC last changed |
| 108 | + type: string |
| 109 | + format: date-time |
| 110 | + node: |
| 111 | + description: node is the node where the operation occurred |
| 112 | + type: string |
| 113 | + operation: |
| 114 | + description: operation is the operation that was performed (e.g., "monitor", "start", "stop") |
| 115 | + type: string |
| 116 | + rc: |
| 117 | + description: rc is the return code from the operation |
| 118 | + type: integer |
| 119 | + rcText: |
| 120 | + description: rcText is the human-readable return code text (e.g., "ok", "error", "not running") |
| 121 | + type: string |
| 122 | + resource: |
| 123 | + description: resource is the resource that was operated on |
| 124 | + type: string |
| 125 | + nodes: |
| 126 | + description: nodes provides detailed information about each node in the cluster |
| 127 | + type: array |
| 128 | + items: |
| 129 | + type: object |
| 130 | + required: |
| 131 | + - name |
| 132 | + - online |
| 133 | + properties: |
| 134 | + name: |
| 135 | + description: name is the name of the node |
| 136 | + type: string |
| 137 | + online: |
| 138 | + description: online indicates if the node is online |
| 139 | + type: boolean |
| 140 | + standby: |
| 141 | + description: standby indicates if the node is in standby mode |
| 142 | + type: boolean |
| 143 | + rawXML: |
| 144 | + description: rawXML contains the raw XML output from pcs status xml command. |
| 145 | + type: string |
| 146 | + maxLength: 262144 |
| 147 | + resources: |
| 148 | + description: resources provides detailed information about each resource in the cluster |
| 149 | + type: array |
| 150 | + items: |
| 151 | + type: object |
| 152 | + required: |
| 153 | + - name |
| 154 | + properties: |
| 155 | + active: |
| 156 | + description: active indicates if the resource is active |
| 157 | + type: boolean |
| 158 | + name: |
| 159 | + description: name is the name of the resource |
| 160 | + type: string |
| 161 | + node: |
| 162 | + description: node is the node where the resource is running |
| 163 | + type: string |
| 164 | + resourceAgent: |
| 165 | + description: resourceAgent is the resource agent type (e.g., "ocf:heartbeat:IPaddr2", "systemd:kubelet") |
| 166 | + type: string |
| 167 | + role: |
| 168 | + description: role is the current role of the resource (e.g., "Started", "Stopped") |
| 169 | + type: string |
| 170 | + summary: |
| 171 | + description: summary provides high-level counts and flags for the cluster state |
| 172 | + type: object |
| 173 | + properties: |
| 174 | + hasQuorum: |
| 175 | + description: hasQuorum indicates if the cluster has quorum |
| 176 | + type: boolean |
| 177 | + nodesOnline: |
| 178 | + description: nodesOnline is the count of online nodes |
| 179 | + type: integer |
| 180 | + nodesTotal: |
| 181 | + description: nodesTotal is the total count of configured nodes |
| 182 | + type: integer |
| 183 | + pacemakerdState: |
| 184 | + description: pacemakerdState indicates if pacemaker is running |
| 185 | + type: string |
| 186 | + recentFailures: |
| 187 | + description: recentFailures indicates if there are recent operation failures |
| 188 | + type: boolean |
| 189 | + recentFencing: |
| 190 | + description: recentFencing indicates if there are recent fencing events |
| 191 | + type: boolean |
| 192 | + resourcesStarted: |
| 193 | + description: resourcesStarted is the count of started resources |
| 194 | + type: integer |
| 195 | + resourcesTotal: |
| 196 | + description: resourcesTotal is the total count of configured resources |
| 197 | + type: integer |
| 198 | + served: true |
| 199 | + storage: true |
| 200 | + subresources: |
| 201 | + status: {} |
0 commit comments