helper-status-checker
A helper Chart that creates a job to verify if the deployments of an operator are running. To do so it creates a service account with a role to read the status of the Deployments.
About this chart
helper-status-checker
Description
A helper Chart that creates a job to verify if the deployments of an operator are running. To do so it creates a service account with a role to read the status of the Deployments.
This chart is used the check the installation status of an Operator. Whenever a new Operator gets installed, this Chart can be called to verify if the status of the Operator is ready. This is useful when you want to install an Operator AND configure it in the same Helm Chart. Typically, Argo CD will fail in such case, because it would try to configure the CRD that the Operator provides immediately after the Subscription object becomes ready. However, the CRD is not available yet, since the Operator is still installing itself.
It is best used as a Subchart, for example, https://github.com/tjungbauer/helm-charts/tree/main/charts/rhacm-full-stack
helper-status-checker will create a Service Account (incl. a ClusterRole and a ClusterRoleBinding) and a Job that will try to check the status of the Operator. If the Operator is not available after some time (configurable with mx_retries), the Job will fail.
NOTE: This chart can also be used to automatically approve an InstallPlan
Maintainers
| Name | Url | |
|---|---|---|
| tjungbauer | [email protected] | https://blog.stderr.at/ |
Sources
Source:
Source code: https://github.com/redhat-cop/helm-charts
Parameters
Values
| Key | Type | Default | Description |
|---|---|---|---|
| approver | bool | false | Enable automatic approval of an InstallPlan. Useful if the installation must be approved manually and you want to initially deploy the Operator using GitOps. |
| checks[0] | object | {"maxretries":20,"namespace":{"name":"openshift-logging"},"operatorName":"name-of-operator","serviceAccount":{"name":"status-checker"},"sleeptimer":20,"subscriptionName":"name-of-subscription","syncwave":0} | Name of operator to check. Use the value of the currentCSV (packagemanifest) but WITHOUT the version !! |
| checks[0].maxretries | int | 20 | Maximum number of retries before the checks will fail |
| checks[0].namespace | object | {"name":"openshift-logging"} | Namespace where the status-checker Job shall be scheduled. |
| checks[0].serviceAccount.name | string | "status-checker" | Name of the Service Account. |
| checks[0].sleeptimer | int | 20 | If the Operator is not yet ready wait this amount of seconds. |
| checks[0].subscriptionName | string | "name-of-subscription" | OPTIONAL: Name of subscription that shall be approved. In some cases the name of the Subscription is different to the name of the operator. @default --operatorName |
| checks[0].syncwave | int | 0 | Syncwave for the status-check Job. 0 is the recommended value. |
| enabled | bool | false | Enable or disable the status-checker configuration |
Example
---
enabled: true
approver: true
checks:
- operatorName: name-of-operator
sleeptimer: 20
maxretries: 20
namespace:
name: openshift-logging
syncwave: 3
serviceAccount:
name: "status-checker"
Installing the Chart
To install the chart with the release name my-release:
helm install my-release repo/<chart-name>>
The command deploys the chart on the Kubernetes cluster in the default configuration.
Uninstalling the Chart
To uninstall/delete the my-release deployment:
helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Autogenerated from chart metadata using helm-docs v1.12.0
Deploy helper-status-checker with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has helper-status-checker on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charthelper-status-checker is pinned at v4.0.10 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply