Skip to content

Commit

Permalink
Add option to fully disable the storage canary.
Browse files Browse the repository at this point in the history
  • Loading branch information
haasad committed Aug 9, 2024
1 parent 80e83a9 commit 199d518
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
4 changes: 3 additions & 1 deletion class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ parameters:
tcp:
preferred_ip_protocol: ip4

storage_canary:
enabled: ${openshift4_slos:slos:storage:canary:enabled}

network_canary:
enabled: ${openshift4_slos:slos:network:canary:enabled}
namespace: appuio-network-canary
Expand All @@ -184,7 +187,6 @@ parameters:
key: 'storagenode'
operator: 'Exists'


canary_scheduler_controller:
enabled: true
manifests_version: ${openshift4_slos:images:canary_scheduler_controller:tag}
Expand Down
2 changes: 1 addition & 1 deletion component/main.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ local storageCanaries = std.flattenArrays(std.filterMap(
'10_secrets': com.generateResources(params.secrets, function(name) com.namespaced(params.namespace, kube.Secret(name))),
[if params.canary_scheduler_controller.enabled then '30_canaryImageStream']: canaryImageStream,
[if params.canary_scheduler_controller.enabled then '30_canary']: canary,
[if params.canary_scheduler_controller.enabled then '32_storageCanary']: storageCanaries,
[if params.canary_scheduler_controller.enabled && params.storage_canary.enabled then '32_storageCanary']: storageCanaries,
}
+ blackbox.deployment
+ blackbox.probes
Expand Down
13 changes: 13 additions & 0 deletions docs/modules/ROOT/pages/references/parameters.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,19 @@ kustomize_input:
The input passed to the Kustomize renderer.
See https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/[The Kustomization File] for all available options.

== `storage_canary`
[horizontal]
type:: dictionary

`storage_canary` allows configuring the storage canary used for periodically performing storage operations for the storage SLO.

=== `storage_canary.enabled`:
[horizontal]
type:: boolean
default:: `${openshift4_slos:slos:storage:canary:enabled}`

Whether the canary should be deployed.
By default the component will deploy the canary if the storage canary SLO is enabled.

== `network_canary`
[horizontal]
Expand Down

0 comments on commit 199d518

Please sign in to comment.