(refactor): Rename the openebs control plane validation to openebs control plane chaos (#159)

Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>
This commit is contained in:
Shubham Chaudhary
2020-03-03 17:01:54 +05:30
committed by GitHub
parent 9531c82296
commit d45616903c
7 changed files with 13 additions and 13 deletions

View File

@@ -0,0 +1,35 @@
apiVersion: litmuschaos.io/v1alpha1
kind: ChaosEngine
metadata:
name: control-plane-chaos
namespace: openebs
spec:
# It can be true/false
annotationCheck: 'false'
# It can be active/stop
engineState: 'active'
appinfo:
appns: 'openebs'
applabel: 'name=maya-apiserver'
appkind: 'deployment'
chaosServiceAccount: control-plane-sa
monitoring: false
# It can be delete/retain
jobCleanUpPolicy: 'delete'
experiments:
- name: openebs-control-plane-chaos
spec:
components:
env:
- name: OPENEBS_NAMESPACE
value: 'openebs'
## Period to wait before injection of chaos
- name: RAMP_TIME
value: '10'
- name: FORCE
value: ''
- name: LIB
value: ''

View File

@@ -0,0 +1,70 @@
---
apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Kill all openebs control plane pod and check if gets scheduled again
kind: ChaosExperiment
metadata:
labels:
litmuschaos.io/name: openebs
name: openebs-control-plane-chaos
version: 0.1.1
spec:
definition:
scope: Namespaced
permissions:
- apiGroups:
- ""
- "litmuschaos.io"
- "batch"
- "apps"
resources:
- "pods"
- "deployments"
- "jobs"
- "configmaps"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
verbs:
- "create"
- "list"
- "get"
- "patch"
- "update"
- "delete"
- apiGroups:
- ""
resources:
- "nodes"
verbs:
- "get"
- "list"
image: "litmuschaos/ansible-runner:latest"
args:
- -c
- ansible-playbook ./experiments/openebs/openebs-control-plane-chaos/openebs_control_plane_chaos_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0
command:
- /bin/bash
env:
- name: ANSIBLE_STDOUT_CALLBACK
value: 'default'
- name: OPENEBS_NAMESPACE
value: 'openebs'
## Period to wait before injection of chaos
- name: RAMP_TIME
value: ''
- name: FORCE
value: ''
## env var that describes the library used to execute the chaos
## default: litmus. Supported values: litmus, powerfulseal
- name: LIB
value: ''
labels:
name: openebs-control-plane-chaos

View File

@@ -0,0 +1,37 @@
apiVersion: litmuchaos.io/v1alpha1
kind: ChartServiceVersion
metadata:
name: openebs-control-plane-chaos
version: 0.1.1
annotations:
categories: OpenEBS
vendor: CNCF
support: https://slack.openebs.io/
spec:
displayName: openebs-control-plane-chaos
categoryDescription: >
Kill all openebs control plane pods and check if gets scheduled again.
keywords:
- Kubernetes
- OpenEBS
platforms:
- GKE
maturity: alpha
chaosType: infra
maintainers:
- name: Raj Babu Das
email: raj.das@mayadata.io
minKubeVersion: 1.12.0
provider:
name: Mayadata
links:
- name: Source Code
url: https://github.com/litmuschaos/litmus/tree/master/experiments/openebs/openebs-control-plane-chaos
- name: Documentation
url: https://docs.litmuschaos.io/docs/openebs-control-plane-chaos/
- name: Video
url:
icon:
- url: ""
mediatype: ""
chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/openebs/openebs-control-plane-chaos/experiment.yaml

View File

@@ -0,0 +1,39 @@
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: control-plane-sa
namespace: openebs
labels:
name: control-plane-sa
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: Role
metadata:
name: control-plane-sa
namespace: openebs
labels:
name: control-plane-sa
rules:
- apiGroups: ["","litmuschaos.io","batch","apps"]
resources: ["pods","deployments","jobs","configmaps","chaosengines","chaosexperiments","chaosresults"]
verbs: ["create","list","get","patch","update","delete"]
- apiGroups: [""]
resources: ["nodes"]
verbs : ["get","list"]
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: RoleBinding
metadata:
name: control-plane-sa
namespace: openebs
labels:
name: control-plane-sa
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: control-plane-sa
subjects:
- kind: ServiceAccount
name: control-plane-sa
namespace: openebs