Skip to content

Commit

Permalink
Add MachineDisruptionBudget CRD
Browse files Browse the repository at this point in the history
  • Loading branch information
Artyom Lukianov committed Apr 4, 2019
1 parent f4a13fb commit 6e314db
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: machinedisruptionbudgets.healthchecking.openshift.io
spec:
group: healthchecking.openshift.io
names:
kind: MachineDisruptionBudget
listKind: MachineDisruptionBudgetList
plural: machinedisruptionbudgets
singular: machinedisruptionbudget
shortNames:
- mdb
- mdbs
scope: Namespaced
additionalPrinterColumns:
- name: Healthy
type: integer
description: The number of healthy machines
JSONPath: .status.currentHealthy
- name: Total
type: integer
description: The total number of machines
JSONPath: .status.ExpectedMachines
- name: Desired
type: integer
description: The desired number of healthy machines
JSONPath: .status.desiredHealthy
validation:
openAPIV3Schema:
properties:
apiVersion:
type: string
kind:
type: string
metadata:
type: object
version: v1alpha1
5 changes: 3 additions & 2 deletions kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ resources:
- install/0000_30_machine-api-operator_05_cluster.crd.yaml
- install/0000_30_machine-api-operator_06_machineclass.crd.yaml
- install/0000_30_machine-api-operator_07_machinehealthcheck.crd.yaml
- install/0000_30_machine-api-operator_08_rbac.yaml
- install/0000_30_machine-api-operator_09_deployment.yaml
- install/0000_30_machine-api-operator_08_machinedisruptionbudget.crd.yaml
- install/0000_30_machine-api-operator_09_rbac.yaml
- install/0000_30_machine-api-operator_10_deployment.yaml

0 comments on commit 6e314db

Please sign in to comment.