Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(trait): Add startup probes into health trait #4305

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions addons/strimzi/duck/client/internalclientset/fake/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions addons/strimzi/duck/client/internalclientset/scheme/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

64 changes: 64 additions & 0 deletions config/crd/bases/camel.apache.org_integrationplatforms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,38 @@ spec:
times out.
format: int32
type: integer
startupFailureThreshold:
description: Minimum consecutive failures for the startup
probe to be considered failed after having succeeded.
format: int32
type: integer
startupInitialDelay:
description: Number of seconds after the container has started
before the startup probe is initiated.
format: int32
type: integer
startupPeriod:
description: How often to perform the startup probe.
format: int32
type: integer
startupProbeEnabled:
description: Configures the startup probe for the integration
container (default `false`).
type: boolean
startupScheme:
description: Scheme to use when connecting to the startup
probe (default `HTTP`).
type: string
startupSuccessThreshold:
description: Minimum consecutive successes for the startup
probe to be considered successful after having failed.
format: int32
type: integer
startupTimeout:
description: Number of seconds after which the startup probe
times out.
format: int32
type: integer
type: object
ingress:
description: The configuration of Ingress trait
Expand Down Expand Up @@ -2412,6 +2444,38 @@ spec:
times out.
format: int32
type: integer
startupFailureThreshold:
description: Minimum consecutive failures for the startup
probe to be considered failed after having succeeded.
format: int32
type: integer
startupInitialDelay:
description: Number of seconds after the container has started
before the startup probe is initiated.
format: int32
type: integer
startupPeriod:
description: How often to perform the startup probe.
format: int32
type: integer
startupProbeEnabled:
description: Configures the startup probe for the integration
container (default `false`).
type: boolean
startupScheme:
description: Scheme to use when connecting to the startup
probe (default `HTTP`).
type: string
startupSuccessThreshold:
description: Minimum consecutive successes for the startup
probe to be considered successful after having failed.
format: int32
type: integer
startupTimeout:
description: Number of seconds after which the startup probe
times out.
format: int32
type: integer
type: object
ingress:
description: The configuration of Ingress trait
Expand Down
32 changes: 32 additions & 0 deletions config/crd/bases/camel.apache.org_integrations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6577,6 +6577,38 @@ spec:
times out.
format: int32
type: integer
startupFailureThreshold:
description: Minimum consecutive failures for the startup
probe to be considered failed after having succeeded.
format: int32
type: integer
startupInitialDelay:
description: Number of seconds after the container has started
before the startup probe is initiated.
format: int32
type: integer
startupPeriod:
description: How often to perform the startup probe.
format: int32
type: integer
startupProbeEnabled:
description: Configures the startup probe for the integration
container (default `false`).
type: boolean
startupScheme:
description: Scheme to use when connecting to the startup
probe (default `HTTP`).
type: string
startupSuccessThreshold:
description: Minimum consecutive successes for the startup
probe to be considered successful after having failed.
format: int32
type: integer
startupTimeout:
description: Number of seconds after which the startup probe
times out.
format: int32
type: integer
type: object
ingress:
description: The configuration of Ingress trait
Expand Down
32 changes: 32 additions & 0 deletions config/crd/bases/camel.apache.org_kameletbindings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6862,6 +6862,38 @@ spec:
probe times out.
format: int32
type: integer
startupFailureThreshold:
description: Minimum consecutive failures for the startup
probe to be considered failed after having succeeded.
format: int32
type: integer
startupInitialDelay:
description: Number of seconds after the container has
started before the startup probe is initiated.
format: int32
type: integer
startupPeriod:
description: How often to perform the startup probe.
format: int32
type: integer
startupProbeEnabled:
description: Configures the startup probe for the integration
container (default `false`).
type: boolean
startupScheme:
description: Scheme to use when connecting to the startup
probe (default `HTTP`).
type: string
startupSuccessThreshold:
description: Minimum consecutive successes for the startup
probe to be considered successful after having failed.
format: int32
type: integer
startupTimeout:
description: Number of seconds after which the startup
probe times out.
format: int32
type: integer
type: object
ingress:
description: The configuration of Ingress trait
Expand Down
32 changes: 32 additions & 0 deletions config/crd/bases/camel.apache.org_pipes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6859,6 +6859,38 @@ spec:
probe times out.
format: int32
type: integer
startupFailureThreshold:
description: Minimum consecutive failures for the startup
probe to be considered failed after having succeeded.
format: int32
type: integer
startupInitialDelay:
description: Number of seconds after the container has
started before the startup probe is initiated.
format: int32
type: integer
startupPeriod:
description: How often to perform the startup probe.
format: int32
type: integer
startupProbeEnabled:
description: Configures the startup probe for the integration
container (default `false`).
type: boolean
startupScheme:
description: Scheme to use when connecting to the startup
probe (default `HTTP`).
type: string
startupSuccessThreshold:
description: Minimum consecutive successes for the startup
probe to be considered successful after having failed.
format: int32
type: integer
startupTimeout:
description: Number of seconds after which the startup
probe times out.
format: int32
type: integer
type: object
ingress:
description: The configuration of Ingress trait
Expand Down
49 changes: 49 additions & 0 deletions docs/modules/ROOT/partials/apis/camel-k-crds.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5993,6 +5993,55 @@ int32

Minimum consecutive failures for the readiness probe to be considered failed after having succeeded.

|`startupProbeEnabled` +
bool
|


Configures the startup probe for the integration container (default `false`).

|`startupScheme` +
string
|


Scheme to use when connecting to the startup probe (default `HTTP`).

|`startupInitialDelay` +
int32
|


Number of seconds after the container has started before the startup probe is initiated.

|`startupTimeout` +
int32
|


Number of seconds after which the startup probe times out.

|`startupPeriod` +
int32
|


How often to perform the startup probe.

|`startupSuccessThreshold` +
int32
|


Minimum consecutive successes for the startup probe to be considered successful after having failed.

|`startupFailureThreshold` +
int32
|


Minimum consecutive failures for the startup probe to be considered failed after having succeeded.


|===

Expand Down
28 changes: 28 additions & 0 deletions docs/modules/traits/pages/health.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,34 @@ The following configuration options are available:
| int32
| Minimum consecutive failures for the readiness probe to be considered failed after having succeeded.

| health.startup-probe-enabled
| bool
| Configures the startup probe for the integration container (default `false`).

| health.startup-scheme
| string
| Scheme to use when connecting to the startup probe (default `HTTP`).

| health.startup-initial-delay
| int32
| Number of seconds after the container has started before the startup probe is initiated.

| health.startup-timeout
| int32
| Number of seconds after which the startup probe times out.

| health.startup-period
| int32
| How often to perform the startup probe.

| health.startup-success-threshold
| int32
| Minimum consecutive successes for the startup probe to be considered successful after having failed.

| health.startup-failure-threshold
| int32
| Minimum consecutive failures for the startup probe to be considered failed after having succeeded.

|===

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