Skip to content

Instantly share code, notes, and snippets.

@xenolinux
Created October 12, 2020 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xenolinux/fa0caa67af8839282ae0fa243297b808 to your computer and use it in GitHub Desktop.
Save xenolinux/fa0caa67af8839282ae0fa243297b808 to your computer and use it in GitHub Desktop.
OCS temp
% oc get template ocs-osd-removal -o yaml
apiVersion: template.openshift.io/v1
kind: Template
metadata:
creationTimestamp: "2020-10-12T05:08:57Z"
managedFields:
- apiVersion: template.openshift.io/v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:ownerReferences:
.: {}
k:{"uid":"5abb7000-9e63-4d90-b8dd-59b80a75bc63"}:
.: {}
f:apiVersion: {}
f:blockOwnerDeletion: {}
f:controller: {}
f:kind: {}
f:name: {}
f:uid: {}
f:objects: {}
f:parameters: {}
manager: ocs-operator
operation: Update
time: "2020-10-12T05:08:57Z"
name: ocs-osd-removal
namespace: openshift-storage
ownerReferences:
- apiVersion: ocs.openshift.io/v1
blockOwnerDeletion: true
controller: true
kind: StorageCluster
name: ocs-storagecluster
uid: 5abb7000-9e63-4d90-b8dd-59b80a75bc63
resourceVersion: "33704"
selfLink: /apis/template.openshift.io/v1/namespaces/openshift-storage/templates/ocs-osd-removal
uid: 739e8c0c-f903-46c2-8f4b-195aef1b8822
objects:
- apiVersion: batch/v1
kind: Job
metadata:
annotations:
template.alpha.openshift.io/wait-for-ready: "true"
creationTimestamp: null
labels:
app: ceph-toolbox-job-${FAILED_OSD_IDS}
name: ocs-osd-removal-${FAILED_OSD_IDS}
namespace: openshift-storage
spec:
template:
metadata:
creationTimestamp: null
spec:
containers:
- command:
- ceph
- osd
- remove
- --osd-ids=${FAILED_OSD_IDS}
- --namespace=openshift-storage
image: quay.io/rhceph-dev/rook-ceph@sha256:fd829950e1f0a1ca1b1485a50b8b0cd07b9ef43144b8021d5c71a1fb2b76a0f6
name: operator
resources: {}
restartPolicy: Never
serviceAccountName: rook-ceph-system
status: {}
parameters:
- description: "\nThe parameter OSD IDs needs a comma-separated list of numerical
FAILED_OSD_IDs \nwhen a single job removes multiple OSDs. \nIf the expected comma-separated
format is not used, \nor an ID cannot be converted to an int, \nor if an OSD ID
is not found, errors will be generated in the log and no OSDs would be removed."
displayName: OSD IDs
name: FAILED_OSD_IDS
required: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment