This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
OPERATORS_NAMESPACE="openshift-operators" | |
LINUX_BRIDGE_NAMESPACE="linux-bridge" | |
set -e | |
# Create a subscription | |
cat <<EOF | oc create -f - | |
apiVersion: operators.coreos.com/v1alpha1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: rook-ceph-tools | |
namespace: rook-ceph | |
labels: | |
app: rook-ceph-tools | |
spec: | |
replicas: 1 | |
selector: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: ocs-osd-removal-{FAILED_OSD_ID} | |
# ocs-osd-removal-3 | |
namespace: openshift-storage | |
labels: | |
app: ceph-toolbox-job | |
spec: | |
template: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
creationTimestamp: "2020-05-19T17:41:35Z" | |
labels: | |
app: ceph-toolbox-job | |
name: ocs-osd-removal-5 | |
namespace: openshift-storage | |
resourceVersion: "53763253" | |
selfLink: /apis/batch/v1/namespaces/openshift-storage/jobs/ocs-osd-removal-5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: template.openshift.io/v1 | |
kind: Template | |
metadata: | |
creationTimestamp: "2020-05-26T17:43:58Z" | |
name: ocs-osd-removal | |
namespace: openshift-storage | |
ownerReferences: | |
- apiVersion: ocs.openshift.io/v1 | |
blockOwnerDeletion: true | |
controller: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: rook-ceph-purge-osd | |
namespace: rook-ceph | |
labels: | |
app: rook-ceph-purge-osd | |
spec: | |
template: | |
spec: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% oc get job rook-ceph-purge-osd -o yaml | |
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
creationTimestamp: "2020-10-13T09:06:23Z" | |
labels: | |
app: rook-ceph-purge-osd | |
managedFields: | |
- apiVersion: batch/v1 | |
fieldsType: FieldsV1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% oc get job ocs-osd-removal-0 -o yaml | |
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
annotations: | |
template.alpha.openshift.io/wait-for-ready: "true" | |
creationTimestamp: "2020-10-13T18:32:08Z" | |
labels: | |
app: ceph-toolbox-job-0 | |
managedFields: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% diff rook-job ocs-job | |
4c4,6 | |
< creationTimestamp: "2020-10-13T09:06:23Z" | |
--- | |
> annotations: | |
> template.alpha.openshift.io/wait-for-ready: "true" | |
> creationTimestamp: "2020-10-13T18:32:08Z" | |
6c8 | |
< app: rook-ceph-purge-osd | |
--- |
OlderNewer