helper-status-checker

by tjungbauer

Helm chartv4.0.21Apache-2.0Verified publisher

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

Shipped values.yaml is intentionally empty so this subchart renders nothing until the parent chart sets values.

The parameter table below and the full documented example (including # -- comments and defaults) are taken from values-example.yaml in this chart directory—not from values.yaml. Use that file as the reference when configuring this chart as a subchart or for local testing (helm template … -f values-example.yaml). CI helm-docs reads the same file (see .helm-docs.yml).

Maintainers

NameEmailUrl
tjungbauer[email protected]https://blog.stderr.at/

Sources

Source:

Source code: https://github.com/tjungbauer/helm-charts/tree/main/charts/helper-status-checker

Parameters

Values below reflect values-example.yaml. Install-time defaults in the packaged chart remain empty in values.yaml.

Values

KeyTypeDefaultDescription
additionalAnnotationsobject{}Additional annotations on all status-checker hook resources.
additionalLabelsobject{}Additional labels on all status-checker hook resources.
approverboolfalseEnable automatic approval of an InstallPlan. Useful if the installation must be approved manually and you want to initially deploy the Operator using GitOps.
checkslistnoneOptional Argo CD sync-options for all hook resources. syncOptions: Replace=true List of checks that shall be performed.
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].maxretriesint20Maximum number of retries before the checks will fail
checks[0].namespaceobject{"name":"openshift-logging"}Namespace where the status-checker Job shall be scheduled.
checks[0].serviceAccountobjectinherits ttlSecondsAfterFinished from chart rootOptional override for Job cleanup TTL in seconds ttlSecondsAfterFinished: 600
checks[0].serviceAccount.namestring"status-checker"Name of the Service Account.
checks[0].sleeptimerint20If the Operator is not yet ready wait this amount of seconds.
checks[0].subscriptionNamestring"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].syncwaveint0Syncwave for the status-check Job. 0 is the recommended value.
enabledboolfalseEnable or disable the status-checker configuration
ttlSecondsAfterFinishedint600Seconds to retain finished status-checker Jobs before Kubernetes deletes them

Example

Minimal install example (see values-example.yaml for all keys, comments, and defaults):

---
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 tjungbauer/<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.14.2

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charthelper-status-checker is pinned at v4.0.21 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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