Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

Commit

Permalink
upstream: add rook operator
Browse files Browse the repository at this point in the history
Create a new operator under community-operators for Rook the Storage
Orchestrator for Kubernetes. This is the upstream version.

Signed-off-by: Sébastien Han <seb@redhat.com>
  • Loading branch information
leseb committed May 13, 2019
1 parent 959f1df commit 8ff7aed
Show file tree
Hide file tree
Showing 9 changed files with 711 additions and 0 deletions.
89 changes: 89 additions & 0 deletions upstream-community-operators/rook/ceph_crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# TAG: BEGIN CEPH CRD
# The CRD declarations
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: cephclusters.ceph.rook.io
spec:
group: ceph.rook.io
names:
kind: CephCluster
listKind: CephClusterList
plural: cephclusters
singular: cephcluster
scope: Namespaced
version: v1
validation:
openAPIV3Schema:
properties:
spec:
properties:
cephVersion:
properties:
allowUnsupported:
type: boolean
image:
type: string
name:
pattern: ^(luminous|mimic|nautilus)$
type: string
dashboard:
properties:
enabled:
type: boolean
urlPrefix:
type: string
port:
type: integer
dataDirHostPath:
pattern: ^/(\S+)
type: string
mon:
properties:
allowMultiplePerNode:
type: boolean
count:
maximum: 9
minimum: 1
type: integer
preferredCount:
maximum: 9
minimum: 0
type: integer
required:
- count
network:
properties:
hostNetwork:
type: boolean
storage:
properties:
nodes:
items: {}
type: array
useAllDevices: {}
useAllNodes:
type: boolean
required:
- mon
additionalPrinterColumns:
- name: DataDirHostPath
type: string
description: Directory used on the K8s nodes
JSONPath: .spec.dataDirHostPath
- name: MonCount
type: string
description: Number of MONs
JSONPath: .spec.mon.count
- name: Age
type: date
JSONPath: .metadata.creationTimestamp
- name: State
type: string
description: Current State
JSONPath: .status.state
- name: Health
type: string
description: Ceph Health
JSONPath: .status.ceph.health
# TAG: END CEPH CRD
5 changes: 5 additions & 0 deletions upstream-community-operators/rook/rook.package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
packageName: rook
channels:
- name: alpha
currentCSV: rook.v0.1.0

Loading

0 comments on commit 8ff7aed

Please sign in to comment.