Skip to content

Commit

Permalink
support 1.22 k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
MandssS authored and xcaspar committed Dec 31, 2021
1 parent 2077598 commit f6190f0
Show file tree
Hide file tree
Showing 5 changed files with 421 additions and 424 deletions.
279 changes: 139 additions & 140 deletions deploy/crds/chaosblade.io_chaosblades_crd.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: chaosblades.chaosblade.io
Expand All @@ -10,146 +10,145 @@ spec:
plural: chaosblades
singular: chaosblade
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
description: ChaosBlade is the Schema for the chaosblades API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: ChaosBladeSpec defines the desired state of ChaosBlade
properties:
experiments:
description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
Important: Run "operator-sdk generate k8s" to regenerate code after
modifying this file Add custom validation using kubebuilder tags:
https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html'
items:
properties:
action:
description: Action is the experiment scenario of the target,
such as delay, load
type: string
desc:
description: Desc is the experiment description
type: string
matchers:
description: Matchers is the experiment rules
items:
properties:
name:
description: Name is the name of flag
type: string
value:
description: 'TODO: Temporarily defined as an array for
all flags Value is the value of flag'
items:
type: string
type: array
required:
- name
- value
type: object
type: array
scope:
description: Scope is the area of the experiments, currently support
node, pod and container
type: string
target:
description: Target is the experiment target, such as cpu, network
type: string
required:
- action
- scope
- target
type: object
type: array
required:
- experiments
type: object
status:
description: ChaosBladeStatus defines the observed state of ChaosBlade
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: ChaosBlade is the Schema for the chaosblades API
properties:
expStatuses:
description: 'Important: Run "operator-sdk generate k8s" to regenerate
code after modifying this file Add custom validation using kubebuilder
tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html'
items:
properties:
action:
type: string
error:
type: string
resStatuses:
description: ResStatuses is the details of the experiment
items:
properties:
error:
description: experiment error
type: string
id:
description: experiment uid in chaosblade
type: string
identifier:
description: 'Resource identifier, rules as following: container:
Namespace/NodeName/PodName/ContainerName pod: Namespace/NodeName/PodName'
type: string
kind:
description: Kind
type: string
state:
description: experiment state
type: string
success:
description: success
type: boolean
required:
- kind
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: ChaosBladeSpec defines the desired state of ChaosBlade
properties:
experiments:
description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
Important: Run "operator-sdk generate k8s" to regenerate code after
modifying this file Add custom validation using kubebuilder tags:
https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html'
items:
properties:
action:
description: Action is the experiment scenario of the target,
such as delay, load
type: string
desc:
description: Desc is the experiment description
type: string
matchers:
description: Matchers is the experiment rules
items:
properties:
name:
description: Name is the name of flag
type: string
value:
description: 'TODO: Temporarily defined as an array for
all flags Value is the value of flag'
items:
type: string
type: array
required:
- name
- value
type: object
type: array
scope:
description: Scope is the area of the experiments, currently support
node, pod and container
type: string
target:
description: Target is the experiment target, such as cpu, network
type: string
required:
- action
- scope
- target
type: object
type: array
required:
- experiments
type: object
status:
description: ChaosBladeStatus defines the observed state of ChaosBlade
properties:
expStatuses:
description: 'Important: Run "operator-sdk generate k8s" to regenerate
code after modifying this file Add custom validation using kubebuilder
tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html'
items:
properties:
action:
type: string
error:
type: string
resStatuses:
description: ResStatuses is the details of the experiment
items:
properties:
error:
description: experiment error
type: string
id:
description: experiment uid in chaosblade
type: string
identifier:
description: 'Resource identifier, rules as following: container:
Namespace/NodeName/PodName/ContainerName pod: Namespace/NodeName/PodName'
type: string
kind:
description: Kind
type: string
state:
description: experiment state
type: string
success:
description: success
type: boolean
required:
- kind
- state
- success
type: object
type: array
scope:
description: experiment scope for cache
type: string
state:
description: State is used to describe the experiment result
type: string
success:
description: Success is used to judge the experiment result
type: boolean
target:
type: string
required:
- action
- scope
- state
- success
type: object
type: array
scope:
description: experiment scope for cache
type: string
state:
description: State is used to describe the experiment result
type: string
success:
description: Success is used to judge the experiment result
type: boolean
target:
type: string
required:
- action
- scope
- state
- success
- target
type: object
type: array
phase:
description: Phase indicates the state of the experiment Initial ->
Running -> Updating -> Destroying -> Destroyed
type: string
required:
- expStatuses
- target
type: object
type: array
phase:
description: Phase indicates the state of the experiment Initial ->
Running -> Updating -> Destroying -> Destroyed
type: string
required:
- expStatuses
type: object
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
served: true
storage: true
subresources:
status: {}
Loading

0 comments on commit f6190f0

Please sign in to comment.