Skip to content

Commit

Permalink
chore(doc): Generate PDB trait documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
astefanutti committed Nov 17, 2020
1 parent 7e71966 commit d8adb7d
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
17 changes: 17 additions & 0 deletions deploy/traits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,23 @@ traits:
- name: target-labels
type: '[]string'
description: The set of labels to be transferred
- name: pdb
platform: false
profiles:
- Kubernetes
- Knative
- OpenShift
description: The PDB trait allows to configure the PodDisruptionBudget resource for the Integration pods.
properties:
- name: enabled
type: bool
description: Can be used to enable or disable a trait. All traits share this common property.
- name: min-available
type: string
description: The number of pods for the Integration that must still be available after an eviction.It can be either an absolute number or a percentage.Only one of `min-available` and `max-unavailable` can be specified.
- name: max-unavailable
type: string
description: The number of pods for the Integration that can be unavailable after an eviction.It can be either an absolute number or a percentage (default `1` if `min-available` is also not set).Only one of `max-unavailable` and `min-available` can be specified.
- name: platform
platform: true
profiles:
Expand Down
1 change: 1 addition & 0 deletions docs/modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
** xref:traits:master.adoc[Master]
** xref:traits:openapi.adoc[Openapi]
** xref:traits:owner.adoc[Owner]
** xref:traits:pdb.adoc[Pdb]
** xref:traits:platform.adoc[Platform]
** xref:traits:prometheus.adoc[Prometheus]
** xref:traits:pull-secret.adoc[Pull Secret]
Expand Down
41 changes: 41 additions & 0 deletions docs/modules/traits/pages/pdb.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
= Pdb Trait

// Start of autogenerated code - DO NOT EDIT! (description)
The PDB trait allows to configure the PodDisruptionBudget resource for the Integration pods.


This trait is available in the following profiles: **Kubernetes, Knative, OpenShift**.

// End of autogenerated code - DO NOT EDIT! (description)
// Start of autogenerated code - DO NOT EDIT! (configuration)
== Configuration

Trait properties can be specified when running any integration with the CLI:
```
kamel run --trait pdb.[key]=[value] --trait pdb.[key2]=[value2] integration.groovy
```
The following configuration options are available:

[cols="2,1,5a"]
|===
|Property | Type | Description

| pdb.enabled
| bool
| Can be used to enable or disable a trait. All traits share this common property.

| pdb.min-available
| string
| The number of pods for the Integration that must still be available after an eviction.
It can be either an absolute number or a percentage.
Only one of `min-available` and `max-unavailable` can be specified.

| pdb.max-unavailable
| string
| The number of pods for the Integration that can be unavailable after an eviction.
It can be either an absolute number or a percentage (default `1` if `min-available` is also not set).
Only one of `max-unavailable` and `min-available` can be specified.

|===

// End of autogenerated code - DO NOT EDIT! (configuration)

0 comments on commit d8adb7d

Please sign in to comment.