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

Solution-level Goss checks (complex examples) #121

Closed
wants to merge 42 commits into from

Conversation

MichaelThamm
Copy link
Contributor

@MichaelThamm MichaelThamm commented Oct 1, 2024

Issue

As part of OPENG-2677, we want to Investigate goss to see how much of the cos doctor capacities we could possibly fulfil with goss. The OB046 - Solution-level Goss checks doc highlights how these self-tests are integral in solution-level Goss checks.

See also: PR#118

Solution

This PR aims to provide:

This architecture is generic (using Goss templates) making it applicable to variations of COS-Lite deployments or (with restructuring) to other deployments.

Context

  • This PR assumes that each charm included in COS-Lite has extensive Pebble health checks (self-tests) which can be queried with the /charm/bin/pebble health API.
  • External tests are expected to be configured in the goss.yaml file which has access to the host's juju and k8s context (installing these is a prerequisite).
    • Therefore, we can run tests like juju status --relations ... and kubectl describe ....
  • In case a Goss check is too long/complex to be a one-liner, a helper .sh script can be placed in the scripts dir and called in the goss.yaml.

@MichaelThamm MichaelThamm requested a review from a team as a code owner October 1, 2024 20:22
@MichaelThamm MichaelThamm changed the title Investigate goss complex Solution-level Goss checks (complex examples) Oct 1, 2024
@MichaelThamm MichaelThamm deleted the investigate-goss-complex branch October 4, 2024 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant